AI Builder
The flagship workspace: describe an app, watch real generation stages, preview it in a sandbox and refine it through conversation or code — with every change saved as a version.
Workspace layout#
| Panel | What it holds |
|---|---|
| Left — conversation | Prompt input, attachments, generation history, task progress and suggested improvements. |
| Center — preview | The sandboxed live preview with desktop / tablet / mobile frames, refresh, fullscreen and the preview-mode switch. |
| Right — code (collapsible) | File explorer and editor, the approved architecture, contract configuration and deployment settings. |
| Top bar | Project name, save status, Preview / Code / Test modes, version history, Publish and Deploy. |
The generation pipeline#
A generation runs as a job with real, persisted stages. A stage is only marked complete when the operation behind it succeeded; failures stop the job and show the actual error.
- Understanding requirements — the prompt is analysed into features, pages and on-chain needs.
- Planning application architecture — uses the approved Architect plan when there is one.
- Generating components and Creating application logic — the model returns structured file operations, never free-form patches.
- Configuring blockchain integrations — wiring to
@blueprint/walletand the project network. - Compiling contracts and Running tests — only when the project contains contracts; otherwise the stage is skipped, not faked.
- Preparing preview — the files are validated and bundled into a sandboxed preview.
What a generated app looks like#
Generated apps follow Blueprint App Runtime v1 — a small, predictable shape that the build system can validate deterministically:
blueprint.json manifest (name, network, externalApis …)
src/main.tsx entry — renders <App/> into #root
src/App.tsx
src/pages/*.tsx
src/components/*.tsx
src/lib/*.ts
src/styles.css Tailwind v4 classes
contracts/*.sol optional Solidity sources
test/*.t.sol optional Foundry testsOnly these imports are accepted; anything else fails validation before a build starts:
import { useState } from "react";
import { Lock } from "lucide-react";
import { formatUnits } from "viem";
import { TokenGate, useWallet } from "@blueprint/wallet";
import { Link, useParams } from "@blueprint/router";
import { MemberCard } from "../components/MemberCard";| Allowed import | Purpose |
|---|---|
react, react-dom/client | UI runtime |
lucide-react | Icons |
viem | Encoding, formatting, low-level chain reads |
@blueprint/wallet | The wallet integration engine |
@blueprint/router | Hash router — one route per page (#/path) |
| Relative paths | Your own files |
Imports are checked with esbuild's own parser while bundling, so an import cannot hide in a comment or string. Builds also enforce hard limits:
| Limit | Value |
|---|---|
| Files per project | 120 |
| Size per file | 400 KB |
| Total source size | 2 MB |
| Bundled output | 6 MB |
| Path length / folder depth | 180 characters / 7 levels |
| Bundle time | 25 s |
Modifying an existing app#
Follow-up prompts modify the current project instead of regenerating it. The workflow is: analyse the project → identify affected files → propose the change → show the diff → run applicable checks → save a new version. Unrelated files are left untouched.
Change the theme to black and blue, add a leaderboard and improve the mobile layout.A modification is based on a specific version. If the project changed underneath it (for example you edited a file while it ran), the job asks you to review instead of overwriting your edit.
Versions and history#
- Every generation, modification, manual save, template clone and restore writes a full snapshot to
project_versions. - Name a version to mark a milestone; open any two to compare them as a diff.
- Restoring creates a new version from the old snapshot — history is never rewritten.
- Duplicating a project copies its files into a new private project.
Credit costs#
Credits are deducted before the model is called and refunded automatically if the operation fails before producing anything.
| Operation | Generation credits |
|---|---|
| Architecture plan | 2 |
| Full app generation | 12 |
| Modification | 5 |
| Build-error fix | 3 |
