Back to blog

AI prototyping tools that build on your real codebase, data and design system

A decision table for AI prototyping tools: where the prototype lives, whose data and design system it uses, and whether it reaches a pull request.

ModeinspectUpdated

AI prototyping tools that build on your real codebase, data and design system

The AI prototyping tools that build on your real codebase are Cursor, Claude Code, Builder Code, Onlook and Modeinspect. On an imported repo, v0, Figma Make, Bolt and Replit do the same. Those prototypes can use your data and components, and most reach the product as a pull request an engineer reviews.

Lovable, Magic Patterns, Claude Design and Google Stitch work outside your repo, which suits a new product or a first look at an idea. Pick by where the prototype has to end up. The decision table below sorts the four routes by where the prototype lives, whose data it shows, whose components it uses and how it reaches a pull request.

Key takeaways

  • A prototype can become the feature only when it is built where the product lives: a branch of your repo, with your components and your backend.
  • Prompt-to-app tools are the quick start for a new product. For a change to a product that already ships, they make a second app that someone rebuilds.
  • Real data comes from where the prototype runs, not from the prompt. A prototype on your codebase, pointed at a staging API, shows the accounts that backend holds.
  • To make a throwaway prototype shippable, keep what it decided and rebuild the change on a branch, with the components that already exist.

AI prototyping tools compared by where the prototype ends up

AI prototyping tools put the prototype in one of four places: a design canvas, a new app, a copy of your repo or a branch of your product. Only the last two can use your data and your components and end up in your repo without a rebuild.

Route and toolsWhere the prototype livesReal dataReal design systemPath to a pull requestPick it for
Prompt to UI: Claude Design, Magic Patterns, Google StitchThe tool's canvasMock content in the design or its codeImported as a referenceNone. An agent or an engineer rebuilds itScreens to compare before anyone builds
Prompt to app, new project: Lovable, Bolt, v0, Replit, Figma MakeA new app in the tool's hosted environmentThe tool's own database, seeded by youImported where the tool supports it, otherwise the tool's defaultsA new repository, so someone ports the codeA new product, or a demo of an idea
Prompt to app on your repo: v0 Git Import, Figma Make, Bolt, ReplitA copy of your repo in the tool's environmentYour APIs, where the tool takes your keys (v0 does)The repo's components, if the agent is told to use themv0 and Figma Make open one. Bolt commits to main, and Replit pushes with GitA small change, if your app runs in their environment
On your codebase: Cursor, Claude Code, Builder Code, ModeinspectA branch of your productWhatever backend the app's environment points atThe components already in the repoA pull request, reviewed like any other changeA change to a product that already ships

Onlook also runs on an existing Next.js and Tailwind project, which you import into it (Onlook).

Prices, free plans and the wider field, from Figma click-throughs to ProtoPie, are in prototyping tools for product teams. Which of these tools offer SOC 2 and SSO, and on which plan, is covered in AI prototyping tools with SOC 2, SSO and SCIM.

AI prototyping tools that generate real working code

Every prompt-to-app tool and every codebase tool generates real working code. What differs is where that code runs and whether it can join the product.

Sarah Gibbons and Huei-Hsin Wang of Nielsen Norman Group sum up the gain: "Vibecoding has shrunk the gap between an idea and something testable" (NN/g). The limit is in another NN/g study, by Huei-Hsin Wang and Megan Brown. It tested eight tools on a real redesign and found them "best suited for ideation, concept exploration, and early-phase prototype testing, rather than later stages" (NN/g). A change to a product that already ships is a later stage.

What tools provide live prototyping or coding environments?

Bolt, Lovable, Replit, Figma Make and v0 provide live prototyping environments: the app runs in your browser or on the tool's servers while you prompt, with nothing to install. v0 and Figma Make do the same for a repo you import.

Bolt runs on StackBlitz's WebContainers, "so you don't have to install anything or set up a local environment before you start building" (Bolt). v0's Git Import gives your repo "a full development environment", and "the first code change creates a working branch and preview deployment" (v0 docs). Lovable, Replit and Figma Make host the running app too. Cursor and Claude Code usually run on your own machine, so a teammate sees the prototype only after you push it.

What's the simplest way to prototype a full-stack app without switching tools?

The simplest way to prototype a full-stack app without switching tools is a prompt-to-app tool with a built-in backend, such as Lovable or Bolt. The database comes with the project, and in Lovable sign-in does too.

Lovable's built-in backend gives you "a database, real-time updates, user authentication, and storage, with none of the manual setup steps" (Lovable docs). In Bolt, "When your app needs a database, Bolt automatically creates one for you" (Bolt). That works for a new product. For a feature in a product you already have, the built-in backend is the problem: it holds whatever you seed into it, not your customers.

Can Magic Patterns replace Bolt for frontend prototyping?

Magic Patterns can replace Bolt for exploring frontend screens, but not for a running app. Its prototypes ship with "no API calls, no auth, no backend" (Magic Patterns docs), while Bolt builds full-stack apps with a database.

Magic Patterns calls its code "a high-fidelity design spec" that "is NOT meant to be pasted into a codebase as-is" (Magic Patterns docs). It leaves as a zip, a new GitHub repo, a Figma export or a handoff to a coding agent (Magic Patterns docs). Pick Magic Patterns to compare screens, and Bolt when the prototype has to save data. For a change to a frontend you already ship, the table's last two rows are the shorter route. How Magic Patterns sits beside v0 is in what replaces v0 on an existing app.

AI prototyping tools that connect to your real codebase and customer data

The tools that connect to your real codebase are the codebase tools, plus v0 (Git Import), Figma Make (it clones a GitHub repository), Bolt and Replit (GitHub import). Customer data follows the codebase: a prototype shows real accounts when it runs in an environment that points at a real backend.

Figma Make clones the repository, works in branches and opens pull requests (Figma Help Center). Lovable is the exception among the app builders: "Git sync always creates a new repository" (Lovable docs). Onlook "will run on any Next.js + TailwindCSS project", and you import your project into it (Onlook). Other options for a team that already has a codebase are in Lovable alternatives.

Which tool can build a prototype that fetches real data?

A prototype fetches real data when it runs where your data already is. v0 is the prompt-to-app tool that says so outright: "You can call external services in your v0 prototypes by storing access keys as environment variables. This works for both third-party and your own APIs" (v0 docs).

Codebase tools need no keys of their own. The app already calls its API, so the prototype shows whatever the app's environment points at. Lovable and Bolt default to a database of their own.

A prototype shows your customers' data only when it runs where that data already is.

Prompt to UIRows written into the prompt
  • Acme Corp12 orders
  • Acme Corp12 orders
Prompt to appThe tool's own database, or your API with keys (v0)
  • Test Customer 13 orders
  • Test Customer 25 orders
On your codebaseYour API, in the environment the app runs in
  • Northwind Freight and Customs Brokerage1,284 orders
  • Kestrel LabsNo orders yet

The same orders list, built three ways. Names are examples. Only the third lane shows a long name and an empty account without anyone drawing them.

Ramp shows what that buys. Its senior product designer Pavan Garidipuri "used Cursor to prototype a redesign of the expense-policy editor". In testing, "participants received a link to the working prototype, loaded with their own sanitized data" (NN/g).

Where should a team start with prototyping with real data?

Start with the engineer who owns the app's environments, and ask for access to push a branch to the repo, and for a staging API or sanitized seed data. Both are an engineer's call, so ask before the first prompt.

Then prototype the next small change on a branch, not a new product from scratch. One thing a live app does badly is hold a state still. An upload that finishes in a second is hard to design against, so ask the agent for a stubbed state, or draw that one screen. The full procedure, from a Figma click-through to a branch, is in how to create a software prototype.

A tool to prototype with your company's real design system

To prototype with your company's real design system, use a tool that builds inside the repo where the components live: Cursor, Claude Code, Builder Code, Onlook or Modeinspect. Prompt-to-UI tools, and prompt-to-app tools on a new project, import a design system as a reference, and the output imitates it. On an imported repo, v0 and Figma Make can use the repo's components when the agent is told to.

Wang and Brown found that the tools "often default to component libraries like Shadcn and front-end frameworks like Tailwind CSS" (NN/g). One Hacker News commenter was blunter about Figma Make: "It generates pages that ignore your components, skip your tokens, and treat every screen like a fresh snowflake" (Hacker News).

We hear the same thing on our calls with customers: design system and token adherence decides whether a prototype is usable at all. Teams forgive rough edges elsewhere, but not invented buttons and hardcoded colors.

Imports narrow the gap. Lovable works "natively with design systems that are implemented as React components" (Lovable docs). Claude Design can "Import from GitHub, design files, or your local codebase so Claude can build with your real components" (Anthropic). Builder Code says it will "Use your components, tokens, and usage patterns so new UI follows the system your team already ships with" (Builder.io).

Even in the repo, an agent can recreate a component it should reuse. Name the one you want, such as "use our DataTable", not "add a table".

What's the best tool to produce a coded prototype an engineer can actually reuse?

The best tool for a coded prototype an engineer can reuse writes it on a branch of the product and opens a pull request. Claude Code and Builder Code do, and so do v0 through Git Import and Figma Make on a cloned repo.

A prototype in its own repo is a second product: the engineer keeps its decisions and rewrites its code. Vercel's launch post for the new v0 names the cost: "Prototypes fail because they live outside real codebases, require rewrites before production, and create handoffs between tools and teams" (Vercel).

If you are the one designer on a team of ten engineers, you may have lived this already. You built the flow in Lovable or Figma Make, and the demo landed. Then the first engineer to read the code asked which of your components it used. None.

The generated prototype looks right on screen. Review finds a second product.

Generated, in a new repo
orders-prototype/app/orders/page.tsx
const orders = [
{ customer: "Acme Corp", total: 1200, status: "Paid" },
{ customer: "Acme Corp", total: 1200, status: "Paid" },
];
<button className="rounded-md bg-[#3B5BFD] px-4 py-2
text-white" onClick={exportCsv}>
Export
</button>
The same lines in your codebase
app/(dashboard)/orders/page.tsx
const orders = await getOrders(account.id);
<Button variant="primary" onClick={exportCsv}>
Export
</Button>
  1. Sample rows typed into the file. Every tester sees the same two orders, never an empty or very long account.
  2. A button built from scratch with a raw hex value, where the product has a Button component and a theme color.

An example of a prompt-to-app prototype's orders page, next to the same lines in the product's codebase. The generated file lives in a repo that is not the product, so an engineer rewrites it before it can ship.

Modeinspect is built for the designer in that seat. It puts the team's running app on a canvas in a cloud environment, and a coding agent writes the changes you apply into the codebase. One click opens a pull request with a preview link anyone can open. It supports Next.js React codebases that use Tailwind. Tokens from the team's Tailwind theme are offered in the panel, not enforced. How these tools handle a finished design is in design-to-code tools compared.

How to replace a throwaway prototype with something shippable

To replace a throwaway prototype with something shippable, keep what it decided and rebuild the change on a branch of the real codebase. Don't try to convert the code: merging a generated app into the product is a rewrite.

The common advice is a better generator. Figma's Make kits post names the problem well: "The components aren't yours, the copy is placeholder, and the edge cases that actually matter are nowhere to be found." Its answer is context, so that "prototypes start from real components, data, and constraints" (Figma). A kit makes the demo look more like the product. It does not put the demo in the product. Magic Patterns' own integration skill says where the work ends up: "when the Magic Patterns code and the target codebase disagree, the codebase wins" (Magic Patterns docs).

Four steps:

  1. Write down what the prototype settled. The flow, the states, the copy, and what testers did. This is the part worth keeping.
  2. Open a branch of the product. Ask for repo access and staging data, as above.
  3. Rebuild with the components that exist. Tell the agent to use the design system's table and button by name.
  4. Share a preview link from the branch, then open the pull request. The people who reacted to the throwaway react to the real thing. A first pass is walked through in your first pull request as a designer.

Sketch diagram. On the left, a dashed box labelled "Throwaway prototype" with the note "leave the code". A small card lifted out of it, noted "keep the decisions", moves right onto a lime arc labelled "Branch", which rises from the line labelled "Your product" and rejoins it at a point noted "pull request".

Knak's branch, and what it cost

Knak's design team works this way, with Claude Code. Jack Steele, Knak's director of engineering, writes that they "replaced Figma and Lovable handoffs with one git branch". One front-end developer said working from a handoff branch "cut his time-to-production roughly in half" (Knak).

It did not come free. Knak first "formed a tiger team of developers, which worked for six weeks to make the repo a safe, productive prototyping place for designers." On a codebase with no seed data and no staging environment, that setup is most of the work, and no tool in the table removes it.

Take the next change on your roadmap. If it touches the product you already ship, ask an engineer this week for repo access and a staging API, and prototype it on a branch. If it is a new product, start in v0 or Lovable, and decide before the first prompt whether its code will be kept.

Frequently asked questions

What prototyping tools integrate design, code, and AI features?

Figma Make, Paper, Subframe, Onlook, Builder Code, Cursor's Design Mode and Modeinspect combine a visual surface, real code and an AI agent. They differ in where the code lands. In Paper, your own coding agent reads the design over MCP and writes the code (Paper docs). Figma Make pushes to a new repo or opens a pull request on a cloned one. Subframe "reads and writes local files" (Subframe), and Onlook, Builder Code, Cursor and Modeinspect change your repo too.

What are the best AI prototyping tools in 2026?

The best AI prototyping tools in 2026 depend on where the prototype has to end up. For a new product, v0, Lovable, Bolt, Replit and Figma Make build a running app fast. For a change to a product you already ship, Cursor, Claude Code, Builder Code, Onlook and Modeinspect work in your repo with your components and data. Prices and free plans are in the prototyping tools comparison.

Can I turn a Lovable or v0 prototype into production code?

For a new product, yes: the generated repo can become the product if engineers accept its code. For a change to an existing product, rebuild it on a branch of your real codebase and keep the decisions, not the code. v0's Git Import skips the rebuild by working on your repo from the start. Lovable cannot connect to an existing repository.

What do design teams use to replace a throwaway prototype with something shippable?

Teams that ship from prototypes work on a branch of the product. They use a coding agent such as Claude Code or Cursor, or a canvas on the codebase such as Modeinspect. Knak's design team replaced Figma and Lovable handoffs with one git branch in Claude Code. The engineer then reviews a pull request instead of rebuilding a demo.

What's the fastest way to produce a coded prototype an engineer can actually reuse?

Build it on a branch of the product from the first prompt, with the components the repo already has. If your app runs in v0 or Figma Make, those can open the pull request, and otherwise a codebase tool does. A prototype in a separate project is fast to make and slow to reuse, because someone ports it.

Can AI prototyping tools use my design system?

Some import it, and fewer build with it. Claude Design, Magic Patterns and Lovable import components or rules as a reference. Codebase tools such as Cursor, Claude Code and Modeinspect work in the repo, so the components are already there. Name the component you want, because an agent can still recreate one.

What is AI prototyping?

AI prototyping is building an interactive version of a product idea from a prompt, a sketch or a design, with an AI tool writing the screens or the code. People click through the result instead of reading a spec, so feedback comes from use rather than description.