expo/skills · Official

expo-api-routes

Guidelines for creating API routes in Expo Router with EAS Hosting

All-time #774 First seen Jan 19, 2026
8-week activity · all time api

Installation

$ npx skills add https://github.com/expo/skills
Feature your product here Skill page unit · reach builders installing agent skills View pricing →

Summary

  • API routes in Expo Router for server-side logic, secrets, and third-party integrations on EAS Hosting.
  • 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

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Security audits

Partner security reviews for this skill.

agent-trust-hub Reviewed

Analyzed Feb 17, 2026

snyk Reviewed

Analyzed Feb 17, 2026

socket Score 0.9000 · 0 alerts

Analyzed Mar 18, 2026

  • license 1
  • maintenance 1
  • quality 0.9
  • supply chain 1
  • vulnerability 1

0 alerts

Also in this package

Other skills from expo/skills · top by installs.

npx skills add https://github.com/expo/skills

Browse all from expo/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2.5K
License LICENSE
Default branch main
Open issues 21
Status Active

History

  1. First seen on skills.sh
  2. First recorded snapshot · 37,900 installs