expo-api-routes

expo-api-routes is a skill for Claude Code, Codex from sickn33/agentic-awesome-skills. It costs 18 tokens per session (2,460 once invoked), scanned B, original, MIT.

A guide to API routes in Expo Router with EAS Hosting. An API route is server-side code that receives requests and can keep secrets and database access away from the app.

In plain words
What is it for?
Use it for server-side validation, database operations, third-party API proxies, webhooks, rate limiting, and heavy computation.
Why use it?
It helps decide when server-side code is appropriate instead of exposing credentials or placing unsuitable work on a mobile device.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { requireAuth } from "../../utils/auth";.

Part of the agentic-awesome-skills plugin — 197 skills, 1 plugin shipped together

Good fit Use it for server-side validation, database operations, third-party API proxies, webhooks, rate limiting, and heavy computation.

Compare 6 skills from other repositories ↓
About the project

AAS Core is a local control plane for coding agents that lets them search a large catalogue of skills, choose a stack, validate it, and create a reproducible plan. It is used to assemble and review agent workflows through its CLI, local MCP server, catalogue, plugins, and Workbench. The catalogue add-ons provide the skills, plugins, bundles, and workflows that AAS Core helps agents select and validate.

sickn33/agentic-awesome-skills · 50,561 stars · on GitHub · aaskills.tech

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills
agentmods
npx agentmods add skills/sickn33/agentic-awesome-skills/expo-api-routes

Made for: Claude Code, Codex.

Or install agentic-awesome-skills, the plugin that ships this one along with the rest of its 197 skills, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for expo-api-routes

README.md
[![agentmods](https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/expo-api-routes/github.svg)](https://agentmods.dev/skills/sickn33/agentic-awesome-skills/expo-api-routes)
Your own site
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/expo-api-routes"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/expo-api-routes/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for expo-api-routes

Your own site · 80×15
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/expo-api-routes"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/expo-api-routes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,460 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.02460
Opus 5.5 $0.00007 $0.00984
Sonnet 5.5 $0.00004 $0.00492
Haiku 4.5 $0.00002 $0.00246

Measured 18d ago against content hash d7a323205cc8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

expo-api-routes scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const response = await fetch("https://api.openai.com/v1/chat/completions", { method: "POST",

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Test with curl:
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/aasb-aas-mobile-app-builder/skills/expo-api-routes/SKILL.md · 387 lines

How it starts

The opening of the file, as written. The whole thing — 387 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to Use API Routes

Use API routes when you need:

  • Server-side secrets — API keys, database credentials, or tokens that must never reach the client
  • Database operations — Direct database queries that shouldn't be exposed
  • Third-party API proxies — Hide API keys when calling external services (OpenAI, Stripe, etc.)
  • Server-side validation — Validate data before database writes
  • Webhook endpoints — Receive callbacks from services like Stripe or GitHub
  • Rate limiting — Control access at the server level
  • Heavy computation — Offload processing that would be slow on mobile

When NOT to Use API Routes

Avoid API routes when:

  • Data is already public — Use direct fetch to public APIs instead
  • No secrets required — Static data or client-safe operations
  • Real-time updates needed — Use WebSockets or services like Supabase Realtime
  • Simple CRUD — Consider Firebase, Supabase, or Convex for managed backends
  • File uploads — Use direct-to-storage uploads (S3 presigned URLs, Cloudflare R2)
  • Authentication only — Use Clerk, Auth0, or Firebase Auth instead

File Structure

Confirm the installed Expo/EAS version and configure web output for server routes. Fragments are incomplete demos: header presence and nonempty password fields do not authenticate anyone. Implement token verification, per-user authorization, body/schema/size limits and rate/cost limits before exposing database or paid AI proxy routes. Keep secrets out of EXPO_PUBLIC variables/client imports. Native callers need the configured server origin; do not assume a relative URL works identically on every platform. Validate webhook signatures over the required raw body and deduplicate events. Bound upstream requests, check response.ok and return only approved fields; the weather endpoint is illustrative, not a verified API contract.

API routes live in the app directory with +api.ts suffix:

app/
  api/
    hello+api.ts          → GET /api/hello
    users+api.ts          → /api/users
    users/[id]+api.ts     → /api/users/:id
  (tabs)/
    index.tsx

Read the full file on GitHub · 387 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago First seen · 387 lines · 18 tokens per session scan B d7a323205cc8

Subscribe to this mod's changes

expo-api-routes is a skill published in the GitHub repository sickn33/agentic-awesome-skills (50,561 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 2,460 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

expo-api-routes compared with skills from other repositories

expo-api-routes next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
expo-api-routessickn33/agentic-awesome-skillsSkill51kyesterdayMITB18Claude Code, Codex
offline-firstAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA26Claude Code, Codex
build-nitro-modulesMarshanda14816/agent-skillsSkill21mo agononeA84Claude Code, Codex
android-playstore-builderAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA38Claude Code, Codex
websocket-architectAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA33Claude Code, Codex
openapi-designerAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA33Claude Code, Codex
flutter-developerAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA33Claude Code, Codex