Expo API Routes

Guidelines for creating API routes in Expo Router with EAS Hosting

49 stars 5 forksMobile Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add robinebers/skills --skill expo-api-routes
Manual install
git 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-routes

Personal 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 Route
Read the full skill on GitHub

Details

Skill name
expo-api-routes
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

49

robinebers/skills

Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.

Frontend & Design

Code Upgrade

49

robinebers/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".

Software Development

Expo Cicd Workflows

49

robinebers/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.

Productivity & Notes

Expo Deployment

49

robinebers/skills

Deploying Expo apps to iOS App Store, Android Play Store, web hosting, and API routes

Mobile Development

Warehouse Mobile App

49

dynamics365ninja/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.

Mobile Development26

Expo Dev Client

49

robinebers/skills

Build and distribute Expo development clients locally or via TestFlight

Mobile Development

Browse the most popular Claude skills, all mobile development skills, or write your own with the skills generator.