Projects and sharing
A board in Lab mode is a project: its parts, wires, code files, groups and world settings, plus the random seed that makes its runs reproducible. Projects live in this browser and need no account. Signed in, they are also saved to your account, so you can open them on another device.
What is open, and how the URL says it
The address bar names the project you are looking at:
| URL | Opens |
|---|---|
/lab | The last project you had open here, or the demo board the first time. |
/lab/project/<id> | One of your projects. |
/lab/share/<id> | A shared board, read-only and forkable. |
/lab/example/<id> | A ready-made example board. |
/lab/bench/<n> | A stress-test board with n part pairs, for performance work. |
Switching projects updates the URL, so it is always safe to copy the address bar as a bookmark. Links from before Lab mode became a tab (?lab, ?share=<id> and so on) and old /share/<id> links still work: they open the matching /lab/… address.
An example, the demo or a new blank board is not a project yet: your first edit makes it one.
Saving
The name field in the top bar renames the project. Next to it, the save status tells you where you stand:
- In this browser — kept here only (you are signed out, or the project isn't in your account).
- Saving… / Saved to your account — the project is in your account too.
- Offline — will sync — the account can't be reached; the project saves when it can.
- Read-only — a shared board or someone else's project.
- Not saved to your account — the save failed; the project is still safe in this browser.
- Changed elsewhere — see below.
Every edit is written to this browser a moment later, so a reload or a closed tab loses nothing. A project in your account is saved there as a whole, a few seconds after you stop editing, and also when you switch tabs or close the page.
If another tab or device saved the project after this copy was opened, a banner asks which one to keep: Keep this version saves yours over the account's, Use the account's takes the other one (yours goes to the project's history), and Keep both makes yours a separate project.
The Projects dialog
Projects in the top bar opens the project browser:
- This board — Export for a real Pi (see Building it on a real Pi), Export file, Import file… and New blank board (a bare Raspberry Pi and a stub
main.py). - In this browser — every project kept here, with its part count and last update. Copy makes a copy and opens it; Delete removes it (from your account too, if it is there). Signed in, a project marked only here has a To account button.
- In your account — signed in, the projects saved from another browser or device. Opening one keeps a copy here.
- Examples — the built-in example boards.
When you sign in with projects that are only in this browser, a banner offers to add them to your account.
History: snapshots
History keeps snapshots of the open project in this browser: one for every ten minutes or so of editing, and any you save yourself. Type what changed — the message is optional and capped at 500 characters — and click Save snapshot. The table lists the last 30 with their number, message and time; Restore puts that board back, keeping the current one as a snapshot first.
History stays in this browser: your account keeps only the latest version of each project.
Share links
Share makes a read-only link ending /lab/share/<id>. It needs an account; signed out, the dialog offers Export file instead, so you can send the board as a file. Create link publishes the board as it is now. Anyone with the link can open it and fork their own copy; share again after changes to update it, and the link stays the same.
The read-only banner at the top of a shared board has Fork to edit, which copies it into a project of your own.
Export and import
Export file writes a .raspsim.json bundle: the project's settings and seed, its parts, wires, files, groups and recordings. Import file… reads a bundle back as a new project in this browser.
Import file… also takes a Download my data file (from Your account, by clicking your name in the top bar): its projects, components and progress are restored into this browser. Recordings and history only live in this browser, so exporting is the way to keep them safe or move them.