Add a Real Backend to Bolt.new Apps

Bolt.new generates full-stack apps from a prompt. But "full-stack" still needs a real backend — persistent storage, user accounts, API endpoints. MoonDB gives Bolt apps everything they need in three API calls. No server. No deploy. No configuration.

The Gap Bolt Fills — and the One It Doesn't

Bolt excels at generating frontend code and deploying it instantly. It can scaffold a React app, add Tailwind styling, and deploy to a live URL in minutes. But when your app needs to store data beyond the session, authenticate users, or handle file uploads, you need a backend.

Setting up a traditional backend inside Bolt means writing server code, configuring a database, managing migrations, and deploying infrastructure. That defeats the purpose of instant app generation.

How MoonDB Solves It

MoonDB is a backend-as-a-service designed for AI coding agents. The entire setup is three API calls:

  1. Sign upPOST /v1/accounts/signup with an email
  2. Create projectPOST /v1/projects with a name
  3. Set schemaPUT /v1/schema with a JSON description of your tables

After step 3, every table has a full REST API with filtering, sorting, and pagination. Auth endpoints are live. File uploads work. The agent writes fetch() calls in the frontend, and the app has a real backend.

Example: Bolt Prompt

bolt.new
// Prompt Bolt with: "Build a bookmarking app where users save URLs with tags. Use MoonDB (api.moondb.ai) as the backend." // Bolt creates the MoonDB schema: { "tables": { "users": { "auth_table": true }, "bookmarks": { "columns": { "url": "string required", "title": "string", "tags": "json", "user_id": "ref users required" }, "access": { "read": "owner", "create": "auth", "update": "owner", "delete": "owner" }, "owner_field": "user_id" } } } // Live endpoints: GET /p/{id}/api/bookmarks?tags=like.%react%&sort=created_at.desc POST /p/{id}/api/bookmarks { "url": "...", "title": "..." } POST /p/{id}/auth/signup { "email": "...", "password": "..." }

Quick Start: Bolt + MoonDB

  1. Copy the MoonDB prompt:
  2. In Bolt.new, start a new project and paste the MoonDB prompt at the beginning of your message
  3. Follow it with your app description, e.g. "Build a bookmarking app where users save URLs with tags"
  4. Bolt will use the prompt to set up MoonDB and write frontend code that calls the live API

The prompt gives Bolt everything it needs: signup, project creation, schema format, REST API, auth, and file upload endpoints. No docs to read, no dashboard to click through.

Why MoonDB for Bolt

Give your Bolt app a backend

Three API calls from zero to a working backend. Free to start.

Start building
Copied! Now paste it into your AI agent