expo-api-routes

Build Expo Router API routes with EAS Hosting for Cloudflare Workers.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/raphaelmans/agent-skills --skill expo-api-routes-raphaelmans
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expo-api-routes
Source: https://github.com/raphaelmans/agent-skills/tree/main/expo-api-routes
Command: npx skills add https://github.com/raphaelmans/agent-skills --skill expo-api-routes-raphaelmans

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide a comprehensive guide to designing and hosting API routes using Expo Router with EAS Hosting, focusing on secure server-side logic, deployment patterns, and best practices.

Core Features & Use Cases

  • API routes for server-side secrets, database operations, and webhook endpoints in Expo apps
  • Guidance on file structure, HTTP methods, request handling, and environment variables
  • Deployment and hosting considerations for EAS Hosting (Cloudflare Workers) with security and performance in mind

Quick Start

Start by mapping app/api/+api.ts endpoints under app/api, implement GET/POST handlers, and follow the guidance to deploy to EAS Hosting.

Frequently Asked Questions about expo-api-routes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create server-side API routes in Expo Router?

To create server-side API routes in Expo Router, you map endpoints under `app/api/+api.ts` and implement GET or POST handlers. This approach securely exposes server-side logic for your Expo app.

Can I use Expo API routes for secure database operations and secrets management?

Yes, Expo API routes are specifically designed for secure server-side tasks like secrets management and database operations. They keep sensitive logic and environment variables separated from your client-side app.

Does EAS Hosting support webhook endpoints for Expo apps?

Yes, EAS Hosting supports webhook endpoints. You can implement webhook endpoints using Expo Router API routes, which are deployed to Cloudflare Workers environments for handling third-party integrations.

What is the best way to deploy Expo Router API routes?

The best way to deploy Expo Router API routes is through EAS Hosting. This method deploys your server-side logic to Cloudflare Workers, enforcing frontmatter metadata and following documented performance and security patterns.

Why do my Expo API routes require frontmatter metadata?

Expo API routes require frontmatter metadata to enforce structured deployment and documentation patterns. This metadata ensures your server-side endpoints function correctly when hosted on EAS Hosting environments.