SWISSVERSE does not keep your scenes. When the Builder opens to everyone, your scenes and your My Assets shelves live in a database you own, on Supabase. This guide says when you need one, what it costs, and how to connect it in about ten minutes, all in the browser.
Why your own database
- It stays yours. Your scenes, objects, skies, music and building templates sit in a project in your name. Stop using SWISSVERSE and you keep all of it.
- You control the cost. You pay Supabase directly. The free plan is enough to start.
- Nobody else can read it. The key the Builder holds opens nothing on its own. Every read and every save goes through a small function in your project that checks your wallet signature first.
Do you need one?
- Building scenes: yes, once the Builder opens to everyone. It asks for it right after you sign in.
- Curating a gallery: no. The gallery page hangs NFTs and image links from where they already live. You will only need your own database to upload your own image files, which is planned but not available yet.
- Visiting Worlds: never.
What it costs
The Supabase free plan includes 2 active projects, a 500 MB database, 1 GB of file storage and 5 GB of egress. That holds a lot of scenes. The paid Pro plan starts at $25 a month.
One catch: Supabase pauses a free project after a week without activity, and a paused project cannot save. Open your Supabase dashboard and restore it, or move to Pro once a World you care about reads live settings from it.
Set it up in four steps
The Builder shows the same four steps on its CONNECT YOUR DATABASE screen, with a copy button for everything you paste. Keep that screen open in one tab and Supabase in another.
1. Create a Supabase project
- Sign up at Supabase and create a new project. Pick the region closest to you. Keep the database password somewhere safe; SWISSVERSE never asks for it.
- Open Project Settings → API, or the Connect panel, and copy two values: the Project URL (it ends in
.supabase.co) and the publishable key (called anon on older projects).
Never paste the service_role key or any secret key into SWISSVERSE. The Builder never needs it, and whoever has it controls your project.
2. Run the setup script
- On the Builder's CONNECT YOUR DATABASE screen, press COPY SQL.
- In Supabase, open SQL Editor → New query, paste it and press Run.
This creates every table the Builder uses, plus a storage bucket for your music, and locks them: the publishable key can read or write nothing by itself. Running it again later is safe. It only adds what is missing.
3. Deploy the save-build function
Everything the Builder reads or writes goes through one small function in your project, called save-build. It checks your wallet signature and only ever touches rows that belong to your wallet.
- On the Builder's screen, open DASHBOARD PASTE: SAVE-BUILD.TS and copy the whole file.
- In Supabase, open Edge Functions → Deploy a new function → Via editor.
- Name it exactly
save-build, paste the code, turn Verify JWT off, and deploy.
Verify JWT has to be off because the function does its own wallet check, and a running World reads your live app settings from it without a login.
Prefer a terminal? The Builder also shows the one-line Supabase CLI command with a copy button.
4. Lock it to your wallet, then connect
- In Supabase, open Edge Functions → Secrets and add a secret named
SAVE_BUILD_OWNER_WALLETSwith your wallet address as the value. Several wallets can be listed, separated by commas. - Back in the Builder, paste the Project URL and the publishable key and press TEST AND CONNECT.
Without the lock, anyone who signs with their own wallet could store rows in your project, on your quota. The test tells you whether the lock is on.
If the test says something is wrong
- Key rejected: copy the publishable key again.
- save-build is not deployed: do step 3.
- save-build refused the call: turn Verify JWT off for
save-build. - save-build is an older version: deploy it again with the current code.
- Missing a table, column or bucket: run the setup script again.
When it says Connected — your database is ready, you are done. Later, the same fields sit under Settings → Database in the Builder.
Signing with your wallet
The first time the Builder reads or writes your database, your wallet asks you to sign a short message. Its last line names your project, and the signature lasts seven days. It only opens your own database: it cannot sign you in anywhere else, and it does not work on anyone else's project.