Vercel or Backlit: who writes the security code when AI builds your app?
On a general host, sign-in, access rules and database permissions are code your AI writes and you have to trust. On Backlit they are part of the platform, and your assistant is told how to use them. Here's the difference.
Most people who build an app with Claude or ChatGPT are not security engineers. That’s fine until the app holds real data and gets shared with real people. Then something has to decide who can sign in, who can see what, and where the data lives. The question is who writes that part.
The short answer
On a general-purpose host like Vercel, the security layer is code your AI writes. Getting that code right is a security engineer’s job. Most people building with AI aren’t security engineers, and they shouldn’t need to be. On Backlit, sign-in, access control and data separation are part of the platform, enforced on Backlit’s servers. Your app has no server code at all. And when your assistant builds for Backlit, the connector gives it the rules for using those pieces correctly.
What happens on a general host
Vercel is excellent at running code. That’s the point of it. So when your app needs a login and saved data, the usual path is:
- Pick an auth provider and wire it in.
- Pick a database and set its access rules.
- Write server functions that check who is asking before returning data.
- Keep API keys somewhere the browser can’t read them.
An AI can write every one of those steps. But each one is a security decision: how a session is checked, which rows each person can read, where a key is kept. A security engineer knows what good looks like. Most people don’t, and nothing in the app tells them. A login screen can look finished while the server never checks the session. A database can work perfectly while every signed-in user can read every row. A key can end up in the page source. None of these break the app, so nothing warns you. That’s how most leaks from AI-built apps happen. We covered the common failures in how to keep an app you built with AI from getting hacked.
What happens on Backlit
Backlit doesn’t run your code on its servers. Your app is HTML that runs in the browser. Everything sensitive sits on Backlit’s side:
- Sign-in is the platform’s job. A private app sends anyone without a session to sign in before your page loads. Only people you’ve added get in.
- Permissions are checked on the server. Each person is an admin, a user or a viewer. If a viewer tries to change shared data, Backlit refuses it, whatever the page’s buttons say.
- Data stores have fixed rules. Private per-person data, shared data, entries each person owns, and write-only submissions. Each store enforces its own rule, so picking the store is the permission design.
- No keys in the page. There’s no database password for your app to leak, because your app never holds one.
So the riskiest code, the code that decides who sees what, is code you never wrote.
Your assistant gets the rules too
This is the part people miss. When Claude or ChatGPT is connected to Backlit, the connector gives it Backlit’s build reference before it writes your app. That reference says which store to use for which kind of data, how to hide controls a viewer can’t use, and how to handle visitors who aren’t signed in.
Backlit also checks the app when it’s deployed. An upload that tries to keep data in browser storage instead of Backlit’s stores is rejected, and every app ships with a short note describing its purpose and its data. The assistant isn’t guessing at security. It’s following a spec, and the platform enforces it.
An honest line
Backlit controls who gets into your app and keeps each person’s data where it belongs. It doesn’t audit what your app does once someone is inside. If your assistant puts private notes in a shared store, everyone with access will see them. That’s why the build rules matter, and why it’s worth asking your assistant “who can see this data?” before you share a new app.
Side by side
| General host (Vercel, Netlify) | Backlit | |
|---|---|---|
| Who writes sign-in | You or your AI, plus a provider | Built in |
| Where access is checked | Server code you deploy | Backlit’s servers |
| Database rules | You set and maintain them | Fixed per store |
| Secret keys in your project | Yes, to manage carefully | None for your app to hold |
| Guidance for your AI | General knowledge | Backlit’s build reference, via the connector |
| Best for | Developers running custom code | Sharing apps you built with AI |
When to use which
If you’re a developer with a framework, a repo and a reason to run server code, use Vercel. It’s built for that, and you know what secure looks like. If you built a tool with AI to replace a spreadsheet, or a game for your kids, and you want it private and shared without learning security first, that’s what Backlit is for. The general comparison is in Backlit vs Vercel: hosting a finished single-page app.
Built an app with Claude or ChatGPT? Get started with Backlit and share it in seconds.