What vibe coding is – and is not
The word covers two different things. One is tools like Lovable, where you chat your way to a finished web app and never see the code. The other is developers using an AI assistant to write code faster and reading it before it goes live. Assistants for developers are covered on ai-kodning.best-choice.dk; this page is about the first kind, where nobody in the company reads the code.
We use the second kind every day. Claude Code writes the code for our products, but inside fixed limits: a security scan stops secret keys from being written to files, and a guard blocks commands that could harm the system. Since 25 October 2026 a git check also stops every commit or push that contains .env files, keys or credential files, and it cannot be switched off. A Lovable app has none of these limits unless someone sets them up.
Prototype or product?
A prototype has to convince. A product has to survive strangers. The difference is not the code but everything around it.
Prototype and product – what separates them
| Area | A prototype gets by with | A product needs |
|---|---|---|
| Users | You and three testers | Strangers with their own accounts and roles |
| Data | Made-up examples | Real personal data, protected per user |
| Keys | Irrelevant if nothing is real | Only on the server, never in the browser |
| Errors | You notice them yourself | Logging and someone who gets alerted |
| Backup | Not needed | Every night, with a tested restore |
| Changes | Just rebuild | Tests before release and a way back |
For comparison: in our own product bkg.dk we back up the database every night with a copy elsewhere, take a dump before each release and keep a script that rolls back with one command. The release on 2 November 2026 carried six new migrations and 2,782 tests that had to pass. That is not to impress; it is what a product with customer data requires. The first PWA prototype of the booking system, by the way, never went live – it was archived once we knew what we wanted. That is a perfectly normal fate for a prototype.
The 80 % trap
The first 80 % of an app goes fast, because the AI has seen thousands of similar apps. The last 20 % is what is specific to you: your rules, your data, your exceptions. This is where each new message to the AI fixes one thing and breaks another, and credits disappear without the app getting better.
Three signs you are in the trap: you ask for the same fix for the third time; a fix in one place breaks something elsewhere; you no longer dare to change anything because you do not know what will happen. Then it is time to have a developer read the code, or to consider moving to your own code.
The trap catches people who can code, too. In our accounting product JaKonto, reports showed wrong figures while every test was green, because the tests used made-up responses instead of the real system. A test against a real demo account found the bug. Green ticks in an AI tool mean the same: what was tested works – not that the app does.
Security: what actually goes wrong
The most common flaw in AI-built apps is not clever hacking. It is a database without access rules. Lovable and others often use Supabase as the database, and one rule applies: a table without row-level security (RLS) can be read and written by anyone holding the public key, which sits in the browser. In 2025 a vulnerability was registered as CVE-2025-48757: insufficient RLS rules in apps built with Lovable let outsiders read and write the database. Lovable disputes the record. Lovable’s documentation now says itself that wrong RLS rules are a common source of data leaks, and that you remain responsible for your app’s security.
It is not only a Lovable problem. Veracode tested more than 100 language models on 80 coding tasks in 2025: when the models could choose between a secure and an insecure solution, they chose the insecure one 45 % of the time.
In our own CRM, JaKun, every request runs under a database role that cannot bypass row-level security, and we have tried it live with two customers against each other. That is exactly the test you can run on a Supabase app:
-- 1. Turn on row-level security for every table the app uses
alter table public.orders enable row level security;
-- 2. Each user may only read and change their own rows
create policy "own orders are readable"
on public.orders for select
to authenticated
using ( (select auth.uid()) = user_id );
create policy "own orders are editable"
on public.orders for update
to authenticated
using ( (select auth.uid()) = user_id )
with check ( (select auth.uid()) = user_id );
And the outside test: take the public key anyone can find in the browser’s developer tools and ask for the table without logging in. If you get rows back, so can everyone else.
# Replace project id and table; put the public (publishable/anon) key in $SUPABASE_ANON_KEY
curl "https://PROJECT.supabase.co/rest/v1/orders?select=*" \
-H "apikey: $SUPABASE_ANON_KEY" \
-H "Authorization: Bearer $SUPABASE_ANON_KEY"
# Expected answer: [] – anything else means the table is open
The checklist before customer data goes in
- Row-level security on for every table, tested with curl as above and with two real users.
- No secret keys in the browser. Payment, mail and AI keys are called from the server. Our own product LynBro AI keeps key, prompts and model choice on the server, and the customer’s site only has a thin proxy.
- One key per project. We use only the project’s own AI key, never one borrowed from another project.
- Login on every page with data, including the ones the AI “forgot”.
- Security checks before publishing. Lovable runs automatic checks, and on Business an admin can block publishing while critical findings are open.
- Backup and a plan for who restores it.
- A privacy policy and a processing agreement – see Data and GDPR.
Sources
- Lovable – Security — automatic checks, RLS, keys, own responsibility, checked 1 Dec 2026
- NVD – CVE-2025-48757 and Tenable mirror — RLS in Lovable apps, marked “disputed”, checked 1 Dec 2026
- Supabase – Row Level Security — tables without RLS are open, policy example, checked 1 Dec 2026
- Veracode – GenAI Code Security Report — 45 % insecure choices, 30 Jul 2025
Questions about vibe coding
What does vibe coding mean?
Describing what a program should do and letting an AI write the code. The word is used both for tools aimed at non-developers, like Lovable, and for developers working with an AI assistant.
Can a vibe-coded app run in production?
Yes, once someone has checked access rules, keys, login and backup. Without that it is a prototype, however finished it looks.
Is Lovable safe?
The tool has security checks and states that the app’s security is your responsibility. The biggest risk is wrong access rules in the database. Run the public-key test.
How long does it take to make a prototype production-ready?
It depends on the number of roles and the data. A review of access rules and keys is usually the first step; rebuilding comes only if the review shows the need.
Fixed price, no commitment
Get a fixed price for your no-code project
Tell us briefly what you use today and what you want to achieve. A person answers by e-mail with a proposal and a fixed price before any work starts.
- A fixed price before we start
- An answer by e-mail, no calls
- Your details are used only to answer you