Every Vibra Code session starts from a template — a pre-configured repository that gets cloned into an E2B cloud sandbox. The template sets the tech stack, installs the right dependencies, and starts the correct dev server before the AI agent begins generating code. Templates are defined inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/sa4hnd/vibra-code/llms.txt
Use this file to discover all available pages before exploring further.
vibracode-backend/config.ts and are selected by the user on the Create screen before writing their first prompt.
How templates work
When you start a session:- The backend clones the template’s repository into a fresh E2B sandbox
- The sandbox runs each
startCommandin sequence (installing dependencies, then starting the dev server) - A tunnel URL is created so you can preview the running app on your device
- The AI agent receives a template-specific system prompt and begins generating code based on your description
Available templates
Expo React Native
ID:
expoBuild cross-platform mobile apps with Expo SDK, TypeScript, and NativeWind styling. This is the primary mobile template and the recommended starting point for any native iOS or Android app.Repository: github.com/sa4hnd/expo-templateTech: Expo SDK, TypeScript, NativeWind, Expo RouterStart command: npx expo start --tunnel --port 3000Next.js
ID:
nextjsBuild scalable web applications with server-side rendering, static site generation, and API routes. ShadCN UI is pre-installed with all components available.Repository: github.com/superagent-ai/e2b-nextjsTech: Next.js, ShadCN UI, TypeScriptStart commands: npm i → npm run devNext.js + Supabase + Auth
ID:
nextjs-supabase-authBuild a production-ready SaaS with authentication, database, and real-time features out of the box. Supabase CLI and Auth are pre-installed and ready to use.Repository: vercel/next.js with-supabase exampleTech: Next.js, Supabase, ShadCN UI, TypeScriptStart commands: npm i → npm run devNext.js + Convex + Clerk
ID:
nextjs-convex-clerkCreate collaborative apps with real-time sync, instant auth, and seamless user management. Convex dev server runs alongside Next.js for live schema updates.Repository: github.com/get-convex/convex-clerk-users-tableTech: Next.js, Convex, Clerk, ShadCN UI, TypeScriptStart commands: npm i → npm run dev + npx convex dev (parallel)Shopify Hydrogen
ID:
shopify-hydrogenBuild fast headless commerce storefronts with Shopify’s official Hydrogen framework. The Shopify CLI is pre-installed.Repository: github.com/superagent-ai/e2b-shopifyTech: Shopify Hydrogen, Remix, TypeScriptStart commands: npm i → install Shopify CLI → shopify hydrogen dev --codegen --hostFastAPI + Next.js
ID:
fastapi-nextjsBuild modern full-stack apps with a FastAPI Python backend and a Next.js frontend. Both servers run simultaneously — FastAPI on port 8000, Next.js on port 3000.Repository: github.com/tiangolo/full-stack-fastapi-templateTech: FastAPI, Next.js, ShadCN UI, Python, TypeScriptStart commands: npm i → npm run devThe Expo React Native template
Theexpo template is the heart of Vibra Code and is the only template with a custom E2B sandbox image (image: "YOUR_E2B_TEMPLATE_ID"). The custom image has all native build tools, Expo CLI, and the tunnel utilities pre-installed, so the sandbox starts and runs commands much faster than a generic Linux image.
Key differences from the web templates:
- Uses
npx expo start --tunnelso the preview is accessible on a physical phone via the Vibra Code app - The template repository (github.com/sa4hnd/expo-template) contains a clean Expo SDK project with NativeWind already configured
- The AI agent’s system prompt is loaded from an external
system-prompt.mdfile, making it easy to customise the mobile-specific guidance without touchingconfig.ts
Adding a custom template
To add your own template, append an entry to thetemplates array in config.ts:
status values in startCommands must match the valid session status literals (INSTALLING_DEPENDENCIES or STARTING_DEV_SERVER) so the UI shows the correct progress indicator.