flowchart LR Website[Website: React Router SSG] --> Webapp[Webapp: React Router CSR] Webapp --> API[Backend: Bun and Hono] Mobile[Mobile branch: Expo] --> API API --> Database[(PostgreSQL)] Jobs[Scheduler or one-shot jobs] --> Database API --> Storage[Private S3 storage] Jobs --> Storage Jobs --> Email[Email provider] Contracts[Shared Zod contracts] -.-> Webapp Contracts -.-> API
A web product template for work with coding agents. The mobile branch adds an Expo application.
Set up https://github.com/di-sukharev/vibe as the base for a new project.
Before cloning, ask whether mobile is needed. Use mobile for yes and master for no.
Read AGENTS.md and follow "Agent setup instructions" in README.md.
Communicate in my language.
Use this section only when creating a new project. Keep it and CHECKLIST.md when maintaining the template.
- Ask whether mobile is needed before cloning. Select
masterormobile. For mobile, clone the full history and fetch both branches. Rungit merge-base --is-ancestor origin/master origin/mobile. If it fails, stop. The template owner must mergemasterintomobilefirst. - Use CHECKLIST.md to collect product and setup choices in the user's language. Ask only applicable questions. Choose technical details yourself.
- Remove the template remote with
git remote remove origin. Add a new remote only from the user's repository address or request to publish. Never publish a product to the template repository. Remove themobile:template:checkscript,scripts/check-mobile-template.mjs, and the instructions that use them. They check the template's own branches and need the template remote. Remove notes about the template'smasterandmobilebranches, for example inbackend/Dockerfileandbackend/README.md. - Install with the Bun version in
package.json. Remove the applications that the product does not need. Also remove their workspace entries, root scripts,theme.jsonkeys, README and AGENTS.md table rows, documentation, ignore entries, and other references. Configure the remaining applications from their.env.examplefiles. GenerateJWT_SECRETlocally. Keep secrets out of Git and tool output. - Set branding in
theme.jsonand runbun run theme. Rename the template identifiers in packages, databases, cookies, Docker configuration, and page metadata. Search forweb_app_demo,web-app-demo,vibecoding-template, andVibe Coding Template. Do not changeLICENSEorNOTICE. Regeneratebun.lockafter package changes. - Replace the template's own content with the product's content. Replace
webapp/public/favicon.svg,website/public/favicon.svg, andwebsite/public/favicon.icowith the product's icons. Inwebsite, replace the landing page copy, brand mark, footer credits, page titles and descriptions, and links to the template repository. Inwebsite/src/root.tsx, set the page language in thelangattribute and translate the skip link and error page text. Update the website tests and screenshot tour that the new content affects. - For mobile, select the user's Expo account and initialize EAS only when builds are needed. For a web-only project, delete the
mobiledirectory. Remove mobile, Expo, EAS, and Maestro mentions from the documentation, agent instructions,.gitignore, and.dockerignore. Remove the Expo development origins on ports 8081 and 19006 frombackend/src/env.tsandbackend/.env.example. Keep responsive layout code that uses the word mobile. - If deployment is requested, choose hosting from audience, data location, and operating needs. Use the independent static builds and backend image described in Deployment. Configure the chosen host in the new project.
- Install Google Chrome with
bun run e2e:install. Run the relevant checks and verify local startup. Keep required operating details in the project README and configuration. DeleteCHECKLIST.mdand this entire block, including its markers. Report local URLs, check results, and any remaining user actions.
| Path | Purpose | Guide |
|---|---|---|
backend |
API, PostgreSQL, authentication, jobs, email, and files | Backend |
webapp |
React Router CSR for signed-in users | Webapp |
website |
React Router SSG for public pages and SEO | Website |
packages/contracts |
Shared API schemas and types | Contracts |
mobile branch |
Expo application | Mobile |
Use the Bun version in package.json. Run commands from the repository root.
bun install --frozen-lockfile
bun run dev:webapp
bun run dev:websiteRun each application in its own terminal. Authentication and data need the backend and local PostgreSQL. The website can run alone.
The backend permits only origins in CORS_ORIGINS. localhost and 127.0.0.1 are different origins. If refresh fails with a CORS error, check the webapp origin and restart the backend.
Package scripts define the available commands. AGENTS.md defines architecture and working rules. CLAUDE.md imports those rules for Claude.
Run focused checks during development. bun run check runs the full local checks and needs Docker and package registry access. Before the first run, install Google Chrome with bun run e2e:install.
Testing explains database tests and E2E. UI explains theme generation and screenshots. Deployment covers production setup and recovery.
Apache License 2.0. Keep LICENSE and NOTICE when distributing this template or a derived project. Preserve the attribution to Dima Sukharev, his GitHub account, and the source repository.