Skip to content

Demo data ​

make dev puts a working demo studio into an empty local database by itself. make seed resets the database to that demo.

The seed empties every table first. It runs only against a PostgreSQL on this machine.

Run it ​

sh
make dev                       # an empty database gets the demo; one with data is left alone
SEED=0 make dev                # never seed at start, even an empty database
make seed                      # reset to the demo: empty the database and seed it again
cd api && bun run seed         # the same seed, on the DATABASE_URL you give it
SEED_AGENTFY=fake make seed    # the fake, even when a local Agentfy answers

At start ​

make dev runs the seed's database steps before the servers. That holds in the root checkout and in any Orca working copy: Orca's own hooks only install and start Postgres, and the servers start with make dev. The steps are this checkout's database (chosen as below), then the migrations. Then it counts the rows of the user table. With no user at all, it runs the same seed as make seed and prints the same sign-ins and links. With one user or more it touches nothing and prints one line: Database <name> already has data — not seeding the demo. Reset to the demo: make seed. The seed runs before the API starts, because the fake Agentfy keeps its state in the API's memory.

If the seed fails at start, the reason is printed and make dev stops with a non-zero code instead of starting the servers on a half-filled database. SEED=0 make dev skips the step. A DATABASE_URL that is not on this machine is never seeded at start; make dev says so and goes on.

A working copy whose api/.env.dev still names the root's database is moved onto its own database at its first make dev, the same move make seed makes. A working copy never seeds or empties the root's data.

make seed picks this checkout's own database, creates it if needed, applies the migrations, then writes the data. The root checkout uses the database in api/.env.dev. A working copy never touches the root's database. If its api/.env.dev still names the root's database, the copy moves to bonsite_ws_<copy>, so its own make dev shows the seeded data. If .orca/.ports.env names a DB_NAME, that database is used instead. The links printed at the end follow the Makefile's ports: make seed APP_PORT=… ADMIN_PORT=… API_PORT=… when the checkout runs on other ports.

Running it again on the same database empties the tables and writes the same data with the same ids, so the printed links keep working. Another working copy, on its own database, gets other ids (see Stable ids). It also empties the storage folders inside api/storage: snapshots, exports, repositories and the memory outbox. Restart a running API after a seed so it does not keep the fake Agentfy's old state in memory.

Refusals: a DATABASE_URL that is not 127.0.0.1, localhost or ::1 stops the seed with exit code 2. It never runs against Neon or production. The seed is not in the production image. Only the local make dev runs it at start, and only on an empty database.

Sign in ​

WhoEmailPasswordWhere
Platform administrator[email protected]admin1234admin panel
Owner of Demo Studio[email protected]demo1234app
Member of Demo Studio[email protected]demo1234app
Invited, not answered[email protected]—the seed prints the accept link
Own team on Starter, credits nearly gone[email protected]demo1234app

All addresses are confirmed. Every account has a personal team, as after registration. Demo Studio is the owner's personal team, renamed. The cabinet opens a person's personal team first, so the owner lands in the studio. The member reaches it through the team switcher.

What is in it ​

DataWhat
PlansThe catalogue the migrations ship, the BONS-149 grid with BONS-155's Free: Free ($0, five pages per site, 50 AI credits a month, the Bonsite badge), Starter ($15 / $12 yearly, 20 pages, 500 credits a month), Pro ($39 / $31, 100 pages, 1 500 a month, carried one month), Agency ($129 / $103, no page limit, 5 000 a month, carried one month). No plan limits sites
TeamDemo Studio on the Pro plan: the owner, one member, one pending invitation. Sam Starter's own team on Starter. Every other personal team, the administrator's included, is on Free — registration puts it there
AI creditsThis month's answers, charged through the ledger the way a finished run is: Demo Studio has spent 380 of Pro's 1 500 (95 answers of 4 credits, plus one unmetered answer — what a real Agentfy gives until it reports usage); the Starter team 412 of 500, so its editor shows the low-credits mark. Everyone on Free starts with 50
SitesThree sites from the landing template: Demo Studio Landing, published at demo-studio.localhost, and Neon Nights, a draft in the neon style; and Sam’s Bakery, the Starter account's draft, whose editor shows the low-credits mark. Each has its page, files and repository
RequestsThree requests from the published site's contact form
API keysOne for the published site and one for the team. The seed prints each value once; only the hash is stored
GuestA visitor without an account who sent two ideas from the landing (a bakery and a bicycle repair shop): two demos with their pages built and their steps recorded. Both belong to this guest
SettingsOnly agent/agentfy: an organization connection when Agentfy answers and its keys are known, else the fake; either way with this checkout's MCP address
MailNot a setting. The seed sends with MAIL_TRANSPORT=memory, so no letter leaves the machine. Locally, keep MAIL_TRANSPORT=memory in api/.env.dev: letters land in api/storage/outbox

Trying the guest's sign-up ​

The seed prints a link under be that guest. Opening it puts this guest's cookie into the browser (the route exists only locally) and opens the first demo; "Your demos" lists both. Register a new account in that browser: both demos become its sites and the guest is gone. To see the plan limit instead, sign in as [email protected] after making Demo Studio's plan Free (two sites already there): one demo becomes a site, the other waits under "Unsaved demos". The link works once per seed — after a merge the guest no longer exists; make seed makes a new one.

The published site opens at http://demo-studio.localhost:<api port>/_site/. The browser sends *.localhost to this machine, and the API serves it the way nginx does in production.

Agentfy ​

The seed connects the local Agentfy when one is running. It asks GET <AGENTFY_URL>/health (default http://127.0.0.1:4022, the root checkout of Agentfy) and waits two seconds. On 200 the setting is an organization connection. The MCP address is this checkout's /mcp.

One organization key drives both agent creation and chat. The organization and its key depend on where AGENTFY_URL points:

AGENTFY_URLOrganization and key
localhost, 127.0.0.1 or ::1 (or unset)Bonsite's local partner values: the organization and the key that Agentfy's own make dev creates for Bonsite. They are fixed in the seed's code and exist only locally. AGENTFY_ORG_ID and AGENTFY_ORG_KEY, when set, replace them one by one
anything else, such as https://api.dev.agentfy.aiOnly AGENTFY_ORG_ID and AGENTFY_ORG_KEY from the environment or api/.env.dev, both. That Agentfy has never heard of the local values, so they are never sent there. Without both the seed writes the fake and says: AGENTFY_URL is not local; set the org id and key or point it at http://127.0.0.1:4022

The database seals the key like any secret setting, which needs SETTINGS_KEY. Without it the seed writes the fake and says that SETTINGS_KEY is not set, instead of failing after the tables are emptied.

When Agentfy does not answer, the setting is the fake: no network, and chats answer locally. Whatever the reason for the fake, the seed prints it in one line. SEED_AGENTFY=local requires the organization connection: for any of these reasons the seed stops before it empties anything. SEED_AGENTFY=fake always writes the fake.

Stable ids ​

Ids have the usual format, <prefix>-<adjective>-<noun>-<12>. Inside the seed's process, the id generator draws from a fixed seed instead of the cryptographic source (seedIds in setup/id). The running application never calls it, and production refuses it.

The seed it draws from is the fixed one plus the name of the database being seeded (prisma/seed/idSeed.ts). The same database gets the same ids on every run; two working copies, each on its own database, never share an id. That matters because every copy talks to the same local Agentfy: with equal ids two copies would claim the same demo team and site there, and Agentfy refuses the second (agentfy_team_conflict). The root checkout's database name does not change, so its ids do not change either. No id is written down in the code or the docs: take them from the seed's output or look them up by name. api/test/seed/idSeed.spec.ts checks that one database gives the same ids twice and two databases give different ones, in the usual format. The suite api/test/e2e/seed.e2e-spec.ts runs the seed twice on a clean database and expects the same rows and ids. It then signs in as the administrator and opens the panel's user list, and signs in as both demo people.

Bonsite — small websites for your big ideas.