eas-hosting
What it does
EAS Hosting is a paid service that publishes your web app and API routes (small programs that respond to requests) on Expo's infrastructure. It allows you to create functionalities that need to run on the server, like database access or using secret keys.
When to use it
- βWhen you need to store secret information (like database passwords) that shouldn't appear in your app's code.
- βTo perform operations on a database directly from your app.
- βTo create an 'intermediary' that communicates with other online services, hiding your access keys.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/eas-hosting/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHow can I make my app securely access a database?β
5 new skills a week. 1 minute to read.
How it works
You write small pieces of code called 'API routes' in a specific folder of your project. When your app needs something from the server, it sends a request to these routes, which process the information and return the result.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
EAS Hosting
EAS service - costs apply. EAS Hosting is a paid Expo Application Services product with free-tier limits; production deploys use your plan's request and bandwidth allowance. See https://expo.dev/pricing. Authoring API routes and exporting the web bundle are free and open source, and you can self-host the exported server output instead of EAS Hosting.
EAS Hosting deploys your Expo web app and API routes to Expo's managed edge (Cloudflare Workers). Export the web bundle with npx expo export -p web and ship it with eas deploy - the same command deploys any Expo Router API routes bundled alongside it. This skill covers deploying a website, authoring API routes, and the hosting runtime; see the Deployment section below for the deploy workflow.
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
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
Basic API Route
// app/api/hello+api.ts
export function GET(request: Request) {
return Response.json({ message: "Hello from Expo!" });
}
HTTP Methods
Export named functions for each HTTP method:
// app/api/items+api.ts
export function GET(request: Request) {
return Response.json({ items: [] });
}
export async function POST(request: Request) {
const body = await request.json();
return Response.json({ created: body }, { status: 201 });
}
export async function PUT(request: Request) {
const body = await request.json();
return Response.json({ updated: body });
}
export async function DELETE(request: Request) {
return new Response(null, { status: 204 });
}
Dynamic Routes
// app/api/users/[id]+api.ts
export function GET(request: Request, { id }: { id: string }) {
return Response.json({ userId: id });
}
Request Handling
Query Parameters
export function GET(request: Request) {
const url = new URL(request.url);
const page = url.searchParams.get("page") ?? "1";
const limit = url.searchParams.get("limit") ?? "10";
return Response.json({ page, limit });
}
Headers
export function GET(request: Request) {
const auth = request.headers.get("Authorization");
if (!auth) {
return Response.json({ error: "Unauthorized" }, { status: 401 });
}
return Response.json({ authenticated: true });
}
JSON Body
export async function POST(request: Request) {
const { email, password } = await request.json();
if (!email || !password) {
return Response.json({ error: "Missing fields" }, { status: 400 });
}
return Response.json({ success: true });
}
Environment Variables
Use process.env for server-side secrets:
// app/api/ai+api.ts
export async function POST(request: Request) {
const { prompt } = await request.json();
const response = await fetch("https://api.openai.com/v1/chat/completions", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.OPENAI_API_KEY}`,
},
body: JSON.stringify({
model: "gpt-4",
messages: [{ role: "user", content: prompt }],
}),
});
const data = await response.json();
return Response.json(data);
}
Set environment variables:
β¦
FAQ
What are 'API routes'?
They are like small programs within your app that run on the server. They receive requests (like 'give me user X's data') and respond with the requested information or perform an action.
Can I use this for free?
EAS Hosting has a free tier with limits. For heavier use, there may be costs. Creating API routes and exporting the code to run elsewhere is free.
How does EAS Hosting work?
It uses Cloudflare Workers infrastructure to run your API routes and web app. You deploy your code using the 'eas deploy' command.
Details
Original description by the author
Curated upstream guidance for Eas Hosting; use when the workflow matches the user goal.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4507
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.