Expo API Routes
Guidelines for creating API routes in Expo Router with EAS Hosting
Install
npx skills add robinebers/skills --skill expo-api-routesgit clone --depth 1 https://github.com/robinebers/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/expo-api-routes ~/.claude/skills/expo-api-routesPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
## When to Use API Routes
Use API routes when you need:
- **Server-side secrets** — API keys, database credentials, or tokens that must never reach the client
- **Database operations** — Direct database queries that shouldn't be exposed
- **Third-party API proxies** — Hide API keys when calling external services (OpenAI, Stripe, etc.)
- **Server-side validation** — Validate data before database writes
- **Webhook endpoints** — Receive callbacks from services like Stripe or GitHub
- **Rate limiting** — Control access at the server level
- **Heavy computation** — Offload processing that would be slow on mobile
## When NOT to Use API Routes
Avoid API routes when:
- **Data is already public** — Use direct fetch to public APIs instead
- **No secrets required** — Static data or client-safe operations
- **Real-time updates needed** — Use WebSockets or services like Supabase Realtime
- **Simple CRUD** — Consider Firebase, Supabase, or Convex for managed backends
- **File uploads** — Use direct-to-storage uploads (S3 presigned URLs, Cloudflare R2)
- **Authentication only** — Use Clerk, Auth0, or Firebase Auth instead
## File Structure
API routes live in the `app` directory with `+api.ts` suffix:
```
app/
api/
hello+api.ts → GET /api/hello
users+api.ts → /api/users
users/[id]+api.ts → /api/users/:id
(tabs)/
index.tsx
```
## Basic API RouteDetails
- Skill name
expo-api-routes- Repository
- robinebers/skills
- Path
skills/expo-api-routes/SKILL.md- Repo updated
- 25 June 2026
FAQ
What does the Expo API Routes skill do?
Guidelines for creating API routes in Expo Router with EAS Hosting
How do I install the Expo API Routes skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add robinebers/skills --skill expo-api-routes. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Expo API Routes popular?
It lives in robinebers/skills, which has 49 GitHub stars and 5 forks.
Related skills
Building Native UI
49robinebers/skills
Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.
Code Upgrade
49robinebers/skills
Engineering-discipline toolkit for non-technical users working with AI coders. Wields KISS, DRY, YAGNI, fail-fast, and idempotency as commands. Use when the user asks to audit, simplify, clean up, dedupe, or harden code; or says "make this simpler", "any duplicates?", "is this safe to run twice", "explain this app", "find dead code", "simplify the plan", or "find silent failures".
Expo Cicd Workflows
49robinebers/skills
Helps understand and write EAS workflow YAML files for Expo projects. Use this skill when the user asks about CI/CD or workflows in an Expo or EAS context, mentions .eas/workflows/, or wants help with EAS build pipelines or deployment automation.
Expo Deployment
49robinebers/skills
Deploying Expo apps to iOS App Store, Android Play Store, web hosting, and API routes
Warehouse Mobile App
49dynamics365ninja/d365fo-cli
Customize the D365FO warehouse app / mobile device flows — the stateless screen protocol, the ProcessGuide framework (controller/step/page builder/data processor/navigation agent/action), the legacy WHSWorkExecuteDisplay hierarchy, and the work-execution rules a scanner step must respect. Invoke when the user mentions the warehouse app, mobile device menu items, RF/handheld flows, ProcessGuide, work execution, or scanner screens.
Expo Dev Client
49robinebers/skills
Build and distribute Expo development clients locally or via TestFlight
Browse the most popular Claude skills, all mobile development skills, or write your own with the skills generator.