Skip to content

Bolt.new

AI-powered full-stack web development platform by StackBlitz that generates, runs, and deploys applications entirely in the browser.

Getting Started

Access & Setup

CommandDescription
Navigate to bolt.newOpen Bolt.new in browser
Sign in with GitHub or GoogleCreate account for project persistence
Type a prompt in the chatStart building an application
Click “Deploy” when readyDeploy to Netlify or other hosts
Fork to StackBlitzContinue editing in StackBlitz IDE
Download projectGet source code as zip

How It Works

Bolt.new Architecture:

1. You describe what you want in natural language
2. AI generates the full project (frontend + backend + config)
3. WebContainer runs the app in-browser (no server needed)
4. Live preview updates as AI makes changes
5. You iterate by chatting — AI modifies code in real-time
6. Deploy directly to Netlify or download source

Technology: Runs on StackBlitz WebContainers
  - Node.js runs IN the browser (not a remote server)
  - npm install, build, and dev server all run locally
  - No Docker, no VMs, no cloud compute

Prompting

Effective Prompts

Prompt StyleDescription
”Build a todo app with React and Tailwind”Specify framework and styling
”Create a REST API with Express and MongoDB”Backend-focused prompt
”Make a landing page for a SaaS product”Design-focused prompt
”Add authentication with email/password”Add features to existing project
”Fix the bug where the form doesn’t submit”Debug existing issues
”Change the color scheme to dark mode”Style modifications
”Add a dashboard page with charts”New page/feature request
”Refactor the code to use TypeScript”Code quality improvements

Prompt Best Practices

Good prompts:
  "Build a blog platform with Next.js, Tailwind CSS,
   and MDX support. Include a homepage listing posts,
   individual post pages, and a tag filtering system."

  "Create a weather dashboard using React that fetches
   from the OpenWeatherMap API. Show current weather,
   5-day forecast, and a search by city feature."

Bad prompts:
  "Make me a website"          → Too vague
  "Build Facebook"             → Too broad
  "Fix everything"             → No specific target

Tips:
  - Specify the tech stack (React, Vue, Svelte, etc.)
  - Describe the features you need
  - Mention styling preferences (Tailwind, CSS modules)
  - Reference specific APIs or data sources
  - Break large apps into incremental prompts

Supported Frameworks

Frontend Frameworks

FrameworkDescription
ReactComponent-based UI library
Next.jsReact framework with SSR/SSG
Vue.jsProgressive JavaScript framework
NuxtVue framework with SSR/SSG
SvelteCompile-time reactive framework
SvelteKitSvelte full-stack framework
AstroContent-focused static site builder
Solid.jsFine-grained reactive UI library
AngularFull-featured TypeScript framework

Backend & Full-Stack

FrameworkDescription
Express.jsMinimal Node.js web framework
FastifyFast Node.js web framework
HonoLightweight edge-first framework
NestJSTypeScript enterprise framework
tRPCEnd-to-end type-safe APIs
RemixFull-stack React framework

Styling & UI Libraries

LibraryDescription
Tailwind CSSUtility-first CSS framework
shadcn/uiReact component library
DaisyUITailwind component library
Material UIGoogle’s design system for React
Chakra UIAccessible React components
Radix UIUnstyled accessible components

File Editor

Working with Files

CommandDescription
Click file in sidebarOpen file in editor
Edit code directlyManual code changes
Ctrl + SSave file changes
Right-click file → New FileCreate new file
Right-click file → DeleteRemove file
Right-click folder → New FolderCreate directory
File changes auto-detectedHot reload updates preview

Terminal Access

CommandDescription
Click terminal panel at bottomAccess WebContainer terminal
npm install packageInstall npm packages
npm run devStart development server
npm run buildBuild for production
npx prisma migrate devRun Prisma migrations
node script.jsRun Node.js scripts

Iterative Development

Chat-Based Editing

CommandDescription
”Add a navbar with logo and links”Add new components
”Make the button bigger and blue”Style modifications
”Add form validation for email”Add functionality
”The page crashes when I click submit”Bug reports
”Show loading spinner while data fetches”UX improvements
”Add error handling for the API call”Robustness
”Make it responsive for mobile”Responsive design
”Add dark mode toggle”Theme switching

Version Control

CommandDescription
Chat history shows all changesTrack what AI modified
”Undo the last change”Revert AI modifications
”Go back to the version with the blue header”Reference previous states
Download project at any pointSave snapshots locally
Fork to StackBlitz for gitFull git integration

Deployment

Netlify Deployment

CommandDescription
Click “Deploy” buttonStart deployment process
Connect Netlify accountAuthorize Netlify access
Auto-builds and deploysGets a live URL in seconds
Custom domain supportConfigure in Netlify dashboard
HTTPS includedAutomatic SSL certificates

Alternative Deployment

CommandDescription
Download project → deploy manuallyAny hosting provider
Fork to StackBlitz → connect CI/CDGitHub-based deployment
Fork to GitHub → Vercel/Netlify auto-deployGit-based workflows
Download → npm run build → upload dist/Manual static hosting

Deployment Example

Deployment workflow:

1. Click "Deploy" in Bolt.new
2. Select Netlify (or connect account)
3. Bolt.new builds the project
4. Uploads to Netlify automatically
5. Get your live URL: https://your-app.netlify.app

For custom domains:
  1. Deploy first to get Netlify URL
  2. Go to Netlify dashboard → Domain settings
  3. Add your custom domain
  4. Update DNS records at your registrar

WebContainers

How WebContainers Work

FeatureDescription
Node.js runs in browserNo remote server needed
npm/yarn/pnpm supportFull package management
File system in browserVirtual filesystem
Dev server in browserHot reload with local URLs
No Docker requiredEverything runs client-side
Works offline (after load)No continuous internet needed

WebContainer Capabilities

What runs in WebContainers:
  ✓ Node.js (most recent LTS)
  ✓ npm, yarn, pnpm
  ✓ TypeScript compilation
  ✓ Vite, Webpack, esbuild
  ✓ Express, Fastify, Hono
  ✓ SQLite (in-memory)
  ✓ Prisma (with SQLite)
  ✓ File system operations

What does NOT run:
  ✗ Docker containers
  ✗ PostgreSQL / MySQL / MongoDB
  ✗ Native binary dependencies
  ✗ Python / Ruby / Go
  ✗ System-level operations
  ✗ Long-running background processes

Database Options

Supported Databases

DatabaseDescription
SQLite (in-memory)Works directly in WebContainer
Prisma + SQLiteORM with local database
Supabase (remote)PostgreSQL via API
Firebase (remote)NoSQL via Firebase SDK
Turso (remote)Edge SQLite via libSQL
PlanetScale (remote)MySQL via API

Database Example

For local development in Bolt.new:
  SQLite + Prisma is the best combo
  - Runs entirely in WebContainer
  - No external services needed
  - Full ORM with migrations

For production:
  Connect to a hosted database
  - Supabase (free tier: 500MB)
  - Turso (free tier: 9GB)
  - PlanetScale (free tier: 5GB)

  Set connection strings as environment variables

Project Templates

Common Starting Points

TemplateDescription
”React + Vite + Tailwind starter”Modern React SPA
”Next.js app with shadcn/ui”Full-stack React
”Express API with Prisma + SQLite”REST API backend
”Vue + Nuxt + Tailwind”Vue full-stack
”Svelte + SvelteKit”Svelte full-stack
”Astro blog with MDX”Content site
”Landing page with Tailwind”Marketing page

Best Practices

  1. Start with a clear, specific prompt — Describe the tech stack, features, and design preferences upfront. “Build a task manager with React, Tailwind, and localStorage persistence” gets better results than “make a todo app.”

  2. Build incrementally — Start with the core feature, verify it works, then add features one at a time. Each prompt should focus on one thing rather than requesting everything at once.

  3. Reference the code when debugging — Instead of “it doesn’t work,” say “the handleSubmit function in ContactForm.tsx doesn’t send the POST request” for more targeted fixes.

  4. Use the terminal for verification — Check the terminal output for build errors, missing dependencies, or runtime issues before asking the AI to debug.

  5. Download backups regularly — Download your project periodically as a safety net. Browser-based projects can be lost if you clear browser data.

  6. Specify package versions when needed — If you need a specific library version, mention it: “Use react-query v5” or “Use Tailwind CSS v3, not v4.”

  7. Fork to StackBlitz for advanced editing — When you need git, multiple terminals, or more complex workflows, fork the project to the full StackBlitz IDE.

  8. Use environment variables for secrets — Never hardcode API keys in prompts. Ask the AI to use environment variables and set them in the deployment platform.

  9. Choose SQLite for in-browser databases — Since WebContainers can’t run PostgreSQL or MySQL, use SQLite with Prisma for local development and switch to a hosted DB for production.

  10. Leverage the command palette — Press Ctrl + K to quickly search files, run commands, and navigate your project without clicking through menus.