expo-api-routes

Create secure Expo API routes with +api.ts files and environment variables.

28|1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/bidah/react-native-hifi --skill expo-api-routes-bidah
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expo-api-routes
Source: https://github.com/bidah/react-native-hifi/tree/main/skills/expo-api-routes
Command: npx skills add https://github.com/bidah/react-native-hifi --skill expo-api-routes-bidah

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill keeps Expo API routes secure and manageable by centralizing server-only logic while preventing secrets from leaking into the client bundle.

Core Features & Use Cases

  • Server-only routing: Define app/api endpoints with the +api.ts suffix to handle GET, POST, DELETE, and dynamic parameters without shipping code to the client.
  • Credential-safe integrations: Use environment variables managed through eas env to connect to Neon, Supabase, Turso, or Stripe while safeguarding secrets.
  • Production-ready deployments: Deploy to EAS Hosting with Cloudflare Workers in mind, supporting webhooks, rate limiting, and database queries with Response helpers.

Quick Start

Create an app/api/users+api.ts handler that reads queries, connects to your configured database, and returns JSON so you can test it locally before deploying 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 keep database credentials out of my Expo client bundle?

You can keep credentials secure by defining server-side Expo API routes with the +api.ts suffix, which centralizes backend logic and prevents secrets from leaking into the client bundle.

How do I create API routes for handling webhooks in an Expo managed app?

Handle webhooks in Expo by creating app/api endpoints with the +api.ts suffix, using Response helpers to process requests securely on the server without exposing logic to the client.

Can I use Expo API routes with Supabase or Neon for database access?

Yes, Expo API routes connect to Neon, Supabase, Turso, or Stripe by using environment variables managed through eas env, safeguarding credentials while performing database queries or API proxying.

Does Expo API routing work when deploying to EAS Hosting with Cloudflare Workers?

Yes, Expo API routing is designed for production-ready deployments to EAS Hosting with Cloudflare Workers in mind, supporting webhooks, rate limiting, and database queries using Response helpers.

What is the +api.ts file convention used for in Expo server-side routing?

The +api.ts file convention defines server-only routes in Expo to handle GET, POST, DELETE, and dynamic parameters, ensuring backend code executes securely without shipping to the client bundle.