LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/expo/skills --skill expo-api-routes
or paste the link and ask your coding assistant to install it
https://github.com/expo/skills/tree/main/plugins/expo/skills/expo-api-routes
View on GitHub

What This Skill Does

API routes in Expo Router let you run server-side code alongside your mobile and web app, using the same file-based routing convention. Routes are defined with a `+api.ts` suffix and deploy to Cloudflare Workers via EAS Hosting.

Instead of spinning up a separate Express or Next.js server, you get server-side endpoints in the same repo and routing system as your Expo app, deployed automatically with `eas deploy`.

When to use it

  • Proxying OpenAI or Stripe calls without exposing API keys to the client
  • Receiving Stripe or GitHub webhook callbacks in the same Expo project
  • Running server-side validation before writing to a database
  • Adding rate limiting to an endpoint shared across mobile and web clients
  • Querying a cloud database like Turso or Neon from a mobile app without a separate backend