expo-api-routes

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive guidelines and examples for creating server-side API routes directly within an Expo Router application, enabling secure data handling and backend logic without a separate server.

Core Features & Use Cases

  • Server-Side Secrets: Securely manage API keys and database credentials.
  • Database Operations: Perform direct database queries and mutations.
  • Third-Party API Proxies: Integrate with external services while protecting your keys.
  • Webhook Endpoints: Create endpoints to receive data from external services.
  • Use Case: Implement a secure endpoint to process user sign-ups, validating input and storing user data in a database using environment variables for credentials.

Quick Start

Use the expo-api-routes skill to create a GET endpoint at /api/hello that returns a JSON response.

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?

To build serverless API routes with Expo Router, you create endpoints directly within your application structure and deploy them using EAS Hosting. This enables backend logic and secure data handling without a separate server.

Can I handle HTTP methods and JSON bodies in Expo API routes?

Yes, Expo API routes support handling various HTTP methods, dynamic routes, request parameters, headers, and JSON bodies. You can validate input and process data securely within your route handlers.

Does Expo Router support webhook endpoints and third-party API proxies?

Expo Router supports creating webhook endpoints to receive external data and proxying third-party APIs. You can securely manage API keys and database credentials using environment variables within your route logic.

What are the runtime limitations of Expo API routes on Cloudflare Workers?

Expo API routes deployed via EAS Hosting run on Cloudflare Workers, which imposes runtime limitations requiring the use of Web APIs and cloud databases instead of traditional Node.js modules and local file storage.

How do I deploy Expo API routes to EAS Hosting?

You deploy Expo API routes to EAS Hosting by configuring your Expo Router application for serverless deployment. The Skill provides guidelines covering environment variables, CORS, and error handling for the deployment process.