Intermediate

Frameworks & Templates

Explore the wide range of frameworks supported by Bolt.new, learn to use templates, and understand framework-specific tips for the best results.

Supported Frameworks

Bolt.new supports all major JavaScript/TypeScript frameworks. Simply mention the framework in your prompt and Bolt will scaffold the project accordingly.

React

The most popular UI library. Excellent support in Bolt with hooks, context, routing (React Router), and component libraries like Material UI, Chakra UI, and shadcn/ui.

Next.js

React framework with server-side rendering, API routes, file-based routing, and built-in optimization. Great for SEO-focused and full-stack apps.

💚

Vue 3

Progressive framework with Composition API, Vue Router, and Pinia for state management. Excellent for both simple and complex applications.

🔥

Svelte / SvelteKit

Compiler-based framework with minimal boilerplate. SvelteKit adds routing, SSR, and API endpoints. Known for small bundle sizes and performance.

Additional Frameworks

FrameworkTypeBest For
NuxtVue meta-frameworkServer-rendered Vue apps, SEO
AngularFull frameworkEnterprise apps, TypeScript-first
AstroStatic site builderContent sites, blogs, docs
ExpressBackend frameworkREST APIs, middleware, servers
RemixFull-stack ReactWeb standards, progressive enhancement

Template Gallery

Bolt.new offers a template gallery with pre-built starting points:

  • Blank templates: Framework scaffolds with minimal setup (React, Vue, Svelte, etc.)
  • Starter apps: Pre-built applications like to-do lists, dashboards, and landing pages
  • Full-stack templates: Apps with database and authentication already configured

Templates vs From Scratch

ApproachProsCons
From templateFaster start, proven structure, pre-configured toolingMay include features you don't need, opinionated setup
From scratchFull control, only what you need, learn the setupSlower start, may miss best practices

Framework-Specific Tips

React / Next.js

  • Specify whether you want client or server components in Next.js
  • Mention the component library you prefer (Material UI, Tailwind, shadcn/ui)
  • Request TypeScript explicitly if type safety matters to you

Vue / Nuxt

  • Specify Composition API vs Options API preference
  • Mention Pinia for state management when needed
  • For Nuxt, specify if you need SSR or static generation

Svelte / SvelteKit

  • Svelte's simplicity means prompts can be shorter
  • For SvelteKit, mention if you need server-side load functions
  • Svelte stores are simpler than Redux/Pinia — let the AI use them naturally

Adding Libraries and Packages

You can add npm packages at any time through conversation:

# Example prompts for adding packages:
"Add Tailwind CSS for styling"
"Install and configure Recharts for data visualization"
"Add react-hook-form for form handling with validation"
"Install date-fns for date formatting"
"Add Framer Motion for animations"

Bolt will install the package, configure it, and use it in the appropriate files — all automatically.

Pro tip: When using a specific framework, mention it in your initial prompt. For example, "Build a blog using Astro with Tailwind CSS" gives Bolt clear direction. If you don't specify, Bolt typically defaults to React with Vite.

💡 Try It: Explore Different Frameworks

Build the same simple app (a counter or a to-do list) in two different frameworks (e.g., React and Svelte). Compare the generated code structure, bundle size, and development experience.

Understanding multiple frameworks helps you choose the right tool for each project!