From a Lovable or Bolt prototype to a built app
A prototype from Lovable or Bolt is already code in a GitHub repository, so the move reshapes code you already have. Each screen goes into a module, becomes one of 9 screen types, loads its data through one api file with four states, and asks one permission table before it shows an action. Every one of those changes is held by a check that fails the build, so the app keeps its shape after the next prompt.
By Bohuslav PoláčekChecked
| In the prototype | In Meadowstack | What holds it |
|---|---|---|
| A folder of pages and a router | A module per kind of record: domain/, data/, pages/, components/, a manifest.tsx with lazy routes | ESLint: a module never imports another, a manifest never imports its data |
| A page laid out by hand | A <Screen archetype="index | record | form | overview…"> | Types: a slot the archetype does not have does not compile |
| Data fetched inside a component | useResource() calling data/api.ts, rendered through <AsyncState> | check:states fails a page that loads data without loading, error and empty |
| Database calls spread across components | One adapter per module (api.http.ts, or an api.supabase.ts from the recipe) behind a typed contract | The contract test runs against every implementation |
| A role compared in the markup | domain/permissions.ts and can(action, record) through <Can> or useCan() | A unit test of the table; the server enforces the same rules |
| A UI library and colours of its own | Kit components and tokens | ESLint blocks radix-ui, sonner, motion and others outside the kit; check:tokens blocks hex and rgb |
| A status as a coloured badge | StatusLabel: the glyph in the state's colour beside the word, from domain/status.tsx | One table of states that every screen reads |
| A delete that runs on click | ConfirmButton or useConfirm, and an event in the record's history | The rules in AGENTS.md your coding tool reads, and the module's e2e |
Why teams move
- The prototype convinced people, and now real records, several roles and an approval have to run through it.
- Each new prompt changes more than it should, because nothing in the code says where a rule lives or what a screen must look like.
- The team wants the code in a repository of its own, with checks a reviewer and an AI coding tool both follow.
Both tools keep the code in GitHub: Lovable syncs one branch of one repository both ways, and Bolt commits every change that does not break the project and pulls edits made outside it. So the prototype is a starting point you can read line by line.
How the move goes
- Make a new repository with
npm run new-app -- ../my-app(docs/recipes/start-your-own-app.md). Do not paste the framework into the prototype's repository: the new app comes with the kit packed invendor/, the rules for your coding tool and the checks, and the prototype stays as the reference. - Read the prototype and list its kinds of record, their states, the actions on them and who may take each. That list is the five questions of
docs/recipes/new-module.md, and it decides every file. - Copy the sample module
requests, rename it, and writedomain/first: types, the states and their moves, the permission table. - Move the screens one by one. Keep the prototype's copy and its order of fields; replace its layout with a
Screenof the right type and its components with the kit's (find_componentin the kit's MCP server says which). - Move every database call into the module's api file. With Supabase, keep the project and its row level security, and mirror
domain/permissions.tsin the policies as the framework's Supabase example does (Supabase). - Run
npm run checkandnpm run e2euntil both pass, then remove the sample withnpm run remove-sample.
Before launch
- No page reads the database directly;
data/api.tsis the only import. - Every action is hidden for people who may not take it, and the database or your server refuses it too.
- Real sign-in replaces the starter's development sign-in, which in 2.1 is simulated (Security).
What comes across and what does not
- Copy, fields, the order of a form and the flow come across: they are what the prototype proved.
- Your database comes across. A Supabase project stays as it is; the adapter maps its rows to the module's types.
- Server code needs a home. Lovable apps created from 13 May 2026 run on TanStack Start, which runs server code, while older Lovable apps are React and Vite and build to static files. The framework's apps are React and Vite too, so a server function from the prototype moves to your backend or to a database function.
- The prototype's components and styling do not come across: screens are rebuilt from kit components and tokens, which is where the consistency comes from.
- Lovable or Bolt editing stops for the new repository. Keep the prototype's repository as it is, and make changes in the new app with your coding tool.
When to stay in Lovable or Bolt
- You are still finding out what the app should be, and a new idea should be on screen in minutes.
- The app is a landing page, a form or a tool for one person, with no roles and no approvals.
- Nobody will review code or run checks, and the prompt is the only way the app changes.
The guide an app builder or a coded framework weighs the two in more depth.
Four states, not a fetch in an effect
<AsyncState
resource={resource}
onRetry={reload}
loading={frame(<FormSkeleton />)}
error={(_error, retry) => frame(<ErrorState onRetry={retry} />)}
>
{(request) =>
(request ? can("request.edit", request) : can("request.create")) ? (
<RequestFormView request={request} title={title} />
) : (
frame(
<NoAccess description="You can edit your own drafts and your requests that were rejected. Admins can edit all of them." />,
)
)
}
</AsyncState>Questions
Can I copy the prototype's files into the starter?
You can copy pieces, but not whole pages as they are: each page has to become a Screen of one type, load data through its module's api and ask the permission table. The checks fail until it does, which is the point.
Do I have to leave Supabase?
No. The framework's recipe for connecting data includes a Supabase example: a migration with row level security that mirrors the permission table, and an adapter that maps rows to the module's types.
My Lovable app runs on TanStack Start. Does that matter?
Only for server code. The framework's apps are React and Vite and build to static files, so anything the prototype ran on the server moves to your backend or into the database.
Can I keep using Lovable or Bolt after the move?
On the prototype, yes. The new app lives in its own repository, so changes to it go through your coding tool and its checks, not through the builder's sync.
Two ways
Build it yourself, or have it built
Have it built
Have us build your app
Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.
After launch, Care keeps it improving, from €99 a month.
from €1,990
Describe your appBuild it yourself
Build your app on the framework
Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.
One payment, lifetime updates
Get the framework