Best tech stack for vibe coding with AI agents
The best tech stack for vibe coding has types and checks an agent can run: React and Vite over an existing API, Next.js for full-stack, Python for data.
The best tech stack for vibe coding is a familiar framework with types and checks you can run locally. For a React dashboard over an existing API, choose TypeScript with Vite. For a web app that needs its own server, Next.js is a reasonable default.
Choose Python when the application depends on Python libraries or data processing; FastAPI fits an API, and Streamlit fits an interactive data app. Your ability to review the code matters more than a claim that an agent prefers a language. A useful stack gives the agent conventions to follow and diagnostics it can act on before you review its work.
What makes the best tech stack for vibe coding?
A good stack makes mistakes visible early. Static types catch incompatible values and missing fields before a browser session. Tests check behavior that a typechecker cannot express. A startup check catches an app that compiles successfully but fails when it tries to bind a port or read its configuration.
Prefer established frameworks with maintained documentation and explicit conventions. An agent should have a clear place to put a route or a test without designing the repository again. You should be able to check its choices against the framework's current documentation. Keep the first version small: an existing API removes the need for a new backend, and local fixtures can remove a dependency on a live third-party service during tests.
Framework generators and repository scripts are a sufficient starting point. Generate the project with the framework's own tooling, then define a single check command that fails if lint, typechecking, tests or the build fail. Include starting the app and making an HTTP request. Deterministic tests with useful errors give the agent a repeatable repair loop; tests that require credentials or an unreliable external service complicate that loop.
Claude Code's built-in /init can draft a CLAUDE.md from an existing codebase. Review its commands and add the conventions it could not infer. Anthropic's project instruction documentation describes that workflow. A checked-in instruction file and a Makefile or package script are a practical way to keep the agent using the same checks you run yourself.
Which stack should I use for a web app built with AI?
Choose the web stack around the server work you actually need. A frontend for an existing service needs different plumbing from an application that owns its database and server-side behavior. A content site has different requirements again.
| Project | Starting choice | Why it fits |
|---|---|---|
| React dashboard with an existing API | React + Vite + TypeScript | Keeps the application focused on the browser and the existing API contract. |
| Full-stack React application | Next.js + TypeScript | Gives the frontend and server behavior a shared framework with routing conventions. |
| Blog or content site | Astro | Organizes the project around content and pages, with interactive components where needed. |
The framework's default scaffold still needs application checks. For example, Next.js provides TypeScript support, but its current build command does not run lint automatically. A separate lint script belongs in the check command. A browser test should also exercise a meaningful user action, such as submitting a form and seeing the saved result.
The recipes in stacks (@steamfield/stacks) make those checks explicit alongside the starting files. Version 0.7.0 includes react-vite, nextjs and astro-blog among its 41 recipes. Each ships a working, tested starting slice. The react-vite recipe checks types and component tests, builds the static site, runs Playwright and probes the preview server. The nextjs recipe also tests the production build in Playwright and probes /api/health. The astro-blog recipe runs Astro checking and tests, builds the site and probes a running server.
What's the best stack for an API or backend?
Use FastAPI for a Python service, especially when the implementation already needs Python packages. The python-api recipe uses uv and Make targets. Its verification includes strict mypy checking and pytest coverage, checks the committed OpenAPI document for drift, and starts the API to probe /healthz.
Go is a good alternative when you want a backend built around its standard HTTP library. The go-api recipe includes formatting and lint checks, go vet, a build and race-enabled tests. It also tests the built binary and probes /healthz on the running server.
Your existing backend is usually the cheapest one to keep. Adding a Python service to a working TypeScript application creates another runtime and another boundary to test. Add it when a requirement needs it. An agent can draft that integration, but you still own its deployment and failures.
What about CLIs, mobile and data apps?
Choose a recipe that tests the artifact people will use. A CLI needs checks on the executable's output and exit behavior. A mobile bundle needs device testing beyond a successful compilation. A data pipeline needs expected results for known input.
| Project | Recipe | What its verification covers |
|---|---|---|
| Go command-line tool | go-cli |
Build, lint and vet, unit and integration tests, plus a smoke check. |
| TypeScript command-line tool | typescript-cli |
Lint, typechecking and unit tests, plus tests of the compiled binary. |
| React Native application | mobile-expo |
Workspace types and tests, database setup and checks, an app bundle, Expo dependency checks and an API readiness probe. |
| Python pipeline and notebooks | python-data |
Lint, strict types and coverage, a fixture pipeline compared with expected output, and headless notebook execution. |
| Interactive Python data app | streamlit |
Lint, strict types and coverage, page tests through AppTest, and a headless server health probe. |
Mobile verification leaves device behavior for you to exercise. The Expo recipe's API probe confirms that its backend starts; it cannot establish that every interaction works on a device. For a data pipeline, add a fixture that includes malformed input so the checks cover how your application rejects or reports it.
Does the language matter for AI coding agents?
Language matters through the tools and libraries your project needs. TypeScript is a sensible web default because type errors give concrete feedback across application code. Python fits projects that need its data libraries, provided typechecking is part of the workflow. Existing Go expertise is a good reason to keep a service in Go.
The evidence here does not establish which language AI agents write best. Comparing a small Go CLI with a full-stack Python and React app changes the task as well as the language. A success-rate ranking would hide those differences. Choose code you can review, then check your agent on a representative feature.
Dependency versions also affect repeatability. stacks recipes leave versions unpinned and tell the agent to resolve current stable versions that work together. A historical passing build therefore does not promise that today's dependency resolution will pass. Keep the resulting project's dependency decisions reviewable.
How can I check a stack works with my agent before committing to it?
Try a small feature that crosses the boundaries your application will use. For a dashboard, load a fixture response and show an error state. For an API, accept a request and return a validated response. Run the checks yourself and read the implementation before expanding the scope.
I need a React dashboard. We may add Python reports, but there’s an API already. Which stack fits?
I’ll search for the Python-backed option, then compare it with a frontend-only recipe.
●Bash(stacks search "React dashboard Python API" --kind stack --limit 2 --local)
●Bash(stacks show python-react)
python-react covers both Python and React, with checks behind make targets. I’ll compare the option that uses your existing API.
●Bash(stacks show react-vite)
Use the API we have. The reports can wait.
I’d choose react-vite. It’s a TypeScript frontend for an existing API, with lint, typecheck and tests. python-react adds a Python backend if we later need one in this project.
The demo selects react-vite because the user already has an API and can defer Python reports. It shows search results and excerpts of two recipes, then a recommendation. No project is created. The commands and output were captured from stacks 0.7.0; the conversation is scripted.
You can inspect the same candidates before writing files:
stacks search "React dashboard Python API" --kind stack --limit 2 --local
stacks show python-react
stacks show react-viteThe --local flag keeps the search request on your machine. A strong match describes relevance to the request; it does not establish that the recipe will build your application successfully. The search reference explains the ranking and caveats.
Project creation records the checks that define a green result. stacks new copies starter files and writes a brief and manifest; it installs nothing and runs no generator. The agent completes the project, and stacks verify runs the manifest's steps. The new-project guide explains choosing fragments and previewing a composition. The concepts guide explains how the CLI and agent divide that work, and starting a new project with Claude Code walks through the first session.
What does the build ledger actually prove?
The ledger shipped in 0.7.0 records 50 maintainer runs: 49 passes and one failure, with every one of the 41 stacks reaching green at least once. The harness scaffolded throwaway projects, ran an agent under a time limit and verified independently. These were full-permission local runs. Every record used the sandbox preset in headless mode with default compositions and no added fragments.
The records cover October 27 through November 2, 2026. There are 43 Codex 0.165.0 runs and seven Claude Code runs: five on 2.1.311 and two on 2.1.316. Recorded CLI versions are 0.1.0 for five runs, 0.3.1 for three and 0.6.0 for 42. None was recorded with CLI 0.7.0.
Most stacks have one Codex run. The exceptions are astro-blog with three runs, go-cli with three, python-react with five and typescript-cli with two. The single failure was python-react with Codex on October 28 using CLI 0.3.1; it never reached green and recorded two interventions. Its other four runs passed.
Recorded medians were 1.8 minutes to green across 49 populated records, 2.0 agent minutes, 138 seconds between project creation and the end of a verify run, and one verify run. The slowest green was approximately 9.4 minutes for typescript-cli with Claude Code on October 27. Forty-nine records had no interventions. These are maintainer runs of recipes that already ship working slices, not user outcomes or predictions for a new feature. In stacks list, a historical pass means a composition passed on the recorded date.