The open-source Lovable alternative · a real database for every app

Describe it once.Get a real database and an app.

AI designs the schema, Boris writes the app. The data is yours: read it over the API, export it as SQL.

Free to start · 30 credits a month, metered by usage · no credit card

lovbase / customer crm

Chat

Build a CRM that tracks customers, contacts and follow-ups

Designed 3 tables, with contacts and follow-ups attached to customers.

  • CREATEcustomers
  • CREATEcontacts
  • CREATEfollow_ups

Every schema change can be undone from the chat.

SQLite schema

customers

  • id integer pk
  • name text
  • city text
  • created_at text

contacts

  • id integer pk
  • customer_id → customers
  • phone text

follow_ups

  • id integer pk
  • customer_id → customers
  • note text
  • due_on text

How it works

From one sentence to a live app, in four steps

There is no "export it and wire up a database yourself" step in the middle. The database is real from the first step.

  1. 01

    You describe what you need

    Explain the business in plain language: customers, orders, follow-ups. No need to settle on fields or draw tables first.

  2. 02

    It designs a real schema

    The agent writes the SQL itself and creates real tables in the project's own SQLite database. Every schema change can be undone from the chat.

  3. 03

    Boris writes the interface

    Boris, the coding agent, writes a React frontend in a sandbox container that reads and writes the tables you just created. It is clickable the moment it lands.

  4. 04

    Publish, then keep changing it

    Publish a share link in one click. Change the requirements later and the agent alters the tables in place; if a change goes wrong, undo it from the chat and the rows come back.

Start with a template

A considered starting point. An app of your own.

Why it is different

Other tools hand you a demo. Lovbase hands you infrastructure.

Generating an interface is something everyone can do. The difference is whether what comes out still belongs to you.

A real database for every project

Not a toy built-in store, and not a CSV export. Every project gets its own SQLite database, read and written through a REST data API and exportable as plain SQL.

  • One database per project
  • Export SQL anytime
  • REST data API

AI mistakes can be undone

The agent writes SQL one statement at a time, through a scanner that rejects PRAGMA, ATTACH and the like. Generated apps can only touch rows, never the schema. Every schema change takes a bookmark first, so you can undo it from the chat.

  • One statement, scanned first
  • Apps can only touch rows
  • Every schema change can be undone

Fully self-hostable

The database, the main app and the sandbox that runs the code can all live on your own machines. The databases are SQLite files on your own disk; the sandbox runner gives each app its own container on any Docker host.

  • docker compose for local
  • Self-hosted sandbox runner
  • Previews on your own domain

BYOK: bring your own model

From Pro up, point Lovbase at your own OpenAI-compatible endpoint and key, stored AES-GCM encrypted. Your model and your bill, including a model you host on your own network.

  • OpenAI-compatible endpoint
  • Keys stored encrypted
  • Pro and above

Data API

Once it is generated, the data is still yours

Every project gets its own SQLite database. Serve a frontend of your own through the REST endpoint, or export the whole thing as SQL.

  • One statement per request, checked by a scanner before it runs
  • App tokens can only touch rows; schema changes take a bookmark and can be undone
  • Export the whole database as SQL and take it with you
const res = await fetch(`/api/data/${projectId}/sql`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${apiToken}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    sql: 'select name, city from customers where city = $1',
    params: ['Shanghai'],
  }),
})

// One statement, in app scope: rows only, no schema changes.
// Reads run in a rolled-back transaction, capped at 1,000 rows.

Any frontend can read and write its own tables; auth is the project API token.

Open source, self-hosted

No logo wall, only facts you can check yourself

We are not going to line up avatars and numbers you have no way to verify. The more direct way to judge a data tool is to pull it down and run it yourself.

Run it locally
git clone <repo> && cd lovbase
cp .env.example app/.dev.vars # LLM key, or use BYOK
bun install && bun run dev    # localhost:3008
The whole codebase is readable
The engine, the SQL gateway and the sandbox runner are all in the repo. It is not just an open SDK.
It runs on your machine
bun install, bun run dev, and that is the full product. The databases are SQLite files on your disk.
The data lives in your database
When you self-host, the project databases live on your own infrastructure and we cannot reach them.
The model is swappable
Self-hosted, you configure the model endpoint yourself; on the hosted version, BYOK from Pro up.

Pricing

Priced per usage, not per seat

Credits are metered against what each turn actually costs, and your own model key costs nothing. Free gives you 30 a month, enough to get an idea built.

Save 20% yearly

Free

30 credits / mo

Try it and see what it builds

$0/ mo

Free forever, no credit card

Start free
  • 30 credits a month, metered by actual model usage
  • 2 projects, 200 MB of data
  • Real database tables and a data API
Most popular

Pro

500 credits / mo

For people shipping something real

$25/ mo

Billed monthly, cancel anytime

Choose Pro
  • 500 credits a month, metered by actual model usage
  • 25 projects, 5 GB of data
  • BYOK: your own model and key

Business

2000 credits / mo

Teams and production workloads

$99/ mo

Billed monthly, cancel anytime

Contact us
  • 2000 credits a month, metered by actual model usage
  • 200 projects, 20 GB of data
  • BYOK: your own model and key

Create one table before you decide whether to trust it

Sign up, create a project, and get an API token immediately. If it is not for you, export the data and take it with you.