expo-api-routes

Implement serverless API routes in Expo Router apps with EAS Hosting.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on creating and deploying serverless API routes within an Expo Router application, enabling developers to build backend functionality directly within their frontend project.

Core Features & Use Cases

  • Server-Side Logic: Implement secure operations like handling secrets, database interactions, and third-party API proxies.
  • Expo Router Integration: Understand the file structure (+api.ts) and routing conventions for API endpoints.
  • EAS Hosting Deployment: Learn how to deploy these API routes to EAS Hosting (Cloudflare Workers).
  • Use Case: Securely handle user authentication tokens or process sensitive payment information from a client application without exposing credentials.

Quick Start

Create a new API route at app/api/hello+api.ts that responds with a JSON message.

Frequently Asked Questions about expo-api-routes

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

FAQPage Schema
How do I build serverless API routes with Expo Router?

Build serverless API routes in Expo Router by creating `+api.ts` files within your app directory to define endpoints. This Skill guides you through file structure setup, HTTP method handling, and request parsing to implement backend functionality.

Can I manage server-side secrets and connect to a database using EAS Hosting?

Yes, you can manage server-side secrets and connect to a database using EAS Hosting. This Skill details environment variable management and secure database interactions to handle sensitive operations like authentication tokens without exposing credentials.

Does Expo Router API route deployment work with Cloudflare Workers?

Yes, Expo Router API route deployment works with Cloudflare Workers through EAS Hosting. This Skill covers deployment specifics and local testing to ensure your serverless endpoints run correctly on the Cloudflare Workers runtime.

What is the best way to handle webhooks and proxy external APIs in an Expo app?

The best way to handle webhooks and proxy external APIs in an Expo app is using `+api.ts` routes. This Skill explains how to configure CORS, parse requests, and implement error handling for secure proxying and webhook processing.

What are the limitations of using Expo Router for backend serverless APIs?

Limitations of using Expo Router for serverless APIs stem from its Cloudflare Workers runtime environment. This Skill details specific constraints regarding local testing, error handling, and deployment configurations to navigate these runtime boundaries.