expo-api-routes
Build server-side API routes in Expo apps using +api.ts files for backend logic and secure database access.
Install
npx skills add https://github.com/expo/skills --skill expo-api-routesStats
| Total installs | 12,870 |
| Weekly installs | 12.8K |
| GitHub stars | 1.6K |
| First seen | Jan 19, 2026 |
| Source | @expo/skills |
Summary
- Create routes with +api.ts suffix in the app directory; export named functions for HTTP methods (GET, POST, PUT, DELETE)
- Handle query parameters, headers, JSON bodies, and dynamic route segments; add CORS headers for web clients
- Access server-side secrets via process.env; set variables locally in .env or via eas env:create for production
- Deploy to EAS Hosting (Cloudflare Workers) with eas deploy; use cloud databases (Turso, Supabase, PlanetScale) since filesystem and Node.js modules are unavailable
- Test locally with npx expo serve and curl; call routes from client with standard fetch to relative paths like /api/hello
Tags
Related skills
| Skill | Installs | vs expo-api-routes |
|---|---|---|
| baoyu-danger-gemini-web | 11,911 | -959 |
| gws-sheets | 11,120 | -1,750 |
| agent-ui | 13,880 | +1,010 |
| testing-strategies | 11,232 | -1,638 |
| python-sdk | 14,067 | +1,197 |
FAQ
- How many installs does expo-api-routes have?
- expo-api-routes has 12,870 total installs and 12.8K installs this week.
- Where is expo-api-routes hosted?
- expo-api-routes is published by @expo/skills at https://github.com/expo/skills.
- How many GitHub stars does expo-api-routes have?
- expo-api-routes has 1.6K GitHub stars.
- When was expo-api-routes first indexed?
- OrangeBot.AI first indexed expo-api-routes on Jan 19, 2026.
- How do I install expo-api-routes?
- Run: npx skills add https://github.com/expo/skills --skill expo-api-routes