Projects
Projects define the development environment — image, features, IDE, repos, and lifecycle commands.
A project is a template for development environments. It defines everything that should be in a sandbox: the base Docker image, devcontainer features, whether it has an IDE, repositories to clone, and lifecycle commands to run.
Every sandbox and every task starts from a project. Many sandboxes can share the same project — each member gets their own isolated machine.
| Field | Description |
|---|---|
image | Base Docker image (e.g. mcr.microsoft.com/devcontainers/base:ubuntu-22.04) |
features | devcontainer features to install (Node.js, Docker-in-Docker, Python, etc.) |
featureAppIds | The apps its sandboxes get — ["ide"] (Spunto IDE, VS Code in the browser, on port 8080) by default, [] for none |
repositories | GitHub repos to clone into /workspace/ at first start |
postCreateCommand | Shell command run once after the sandbox is created |
postStartCommand | Shell command run on every sandbox start |
postSnapshotCommand | Shell command run once in a sandbox started from a snapshot, to catch up with what changed since it was taken (e.g. ./catch-up.sh) |
forwardPorts | Ports to expose (optional — on-demand port tunneling also works) |
Every sandbox of a project with an IDE runs Spunto IDE — VS Code in the browser (code-server), opened from Open IDE. Spunto IDE is an app your organization installs (Settings → Integrations), like an agent; switch it off in Edit project → Apps in sandboxes and the project's sandboxes have no editor at all, only their terminal.
Its settings live in the app itself, which you open with Connect with Spunto:
- the extension gallery your organization resolves extension ids against — Open VSX unless you set your own (a mirror, a company catalog);
- the extensions every project gets, and each project's own (opened from Edit project → Apps in sandboxes, or from the app's list of projects);
- the window color: each project's editor tinted with a hue of its own, so parallel tabs are told apart.
Changing an extension rebuilds the project's image at its next sandbox; sandboxes already running keep what they have.
Projects are compatible with the devcontainer spec. If your project already has a .devcontainer/devcontainer.json, you can import those settings directly into Spunto's project config.
Features are installed using the official OCI feature install scripts — the mechanism defined by the Dev Container spec.
A feature's own lifecycle commands run too: its onCreateCommand and postCreateCommand on the sandbox's first start, its postStartCommand on every start, each before the project's command of the same moment, as the vscode user from /workspace. Only the string form is run; the array and object forms are noted in the log and skipped. A command that fails is reported, and the next one still runs.
postSnapshotCommand is Spunto's own, not the devcontainer spec's. A sandbox started from a snapshot keeps its memory: its services are already running, but on the code of the day the snapshot was taken, and neither postCreateCommand nor postStartCommand runs again. Once the platform has stopped the commands it inherited and fetched its repositories, it runs this command, from the project's repository when it has only one, else from /workspace. It runs for at most 20 minutes, and its output goes to the sandbox's logs. A task started from a snapshot waits for it to finish. Meanwhile, the sandbox shows it as the last step of its setup, after postStartCommand (Running post-snapshot command…; setupStatus.postSnapshot in the API goes from pending to running, then done or error). If it fails, that step turns red, the sandbox's logs say why, and the sandbox is ready anyway. A fork of a sandbox does not run it, since it has the same code as its source.
Every change to a project creates an immutable version snapshot. The current version number is displayed in the sidebar as v{n}.
If a sandbox was started on an older project version, it says so. Rebuilding it (POST .../sandboxes/:id/rebuild) recreates it at the project's current version.
You can view the full version history and restore any previous version from the project page. Restoring creates a new version — nothing is mutated in place.
Tags sort projects: add them next to the project's name on its page, and remove them there. The Projects table shows them under each name, with a row of filters listing every tag of the organization, most used first. Pick several and only the projects carrying all of them remain; the search matches tags too.
A tag's colour comes from its name, so it is the same everywhere. Case counts: API and api are two tags. Spaces at the ends are dropped and inner runs of spaces become one; duplicates are removed. A tag is 40 characters at most, a project has 20 at most.
Tags are not part of the versioned configuration: setting them creates no version and rebuilds nothing, and they are not in a project's export. Over the API, PUT /api/orgs/{orgId}/projects/{projectId}/tags with {"tags": ["frontend", "demo"]} replaces the list (scope projects:write); the project's tags field returns it.
If you connect a GitHub App, Spunto can:
- Clone private repositories into sandboxes using per-project SSH deploy keys (read-only by default)
- Inject
GITHUB_TOKENand configure~/.git-credentialsfor HTTPS remotes - Write personal git credentials (SSH key registered on your GitHub account) for
git push
Cloning uses your organization's installation, but git push goes out as you: each member authorizes their own GitHub account, and what they push from their sandboxes and tasks carries it. Settings → Integrations → GitHub shows who you're authorized as (Your personal authorization: as @login).
If that account can't see a project's repository, git used to say only "Repository not found". The credential helper now says why, for example:
spunto: no git credential for acme/app - You are authorized on GitHub as @alice, which cannot see acme/app.
Either give @alice access to it on GitHub, or authorize another GitHub account:
Spunto, Settings → Integrations → GitHub → Reauthorize.Reauthorize asks GitHub which account to use, and replaces your previous authorization. Your authorization is per organization: every project of the org then pushes with the new account. Sandboxes started before the change keep the old helper and its generic message; new sandboxes and new tasks get the new one.