Teaspoon

Run Teaspoon locally

In your workspace, choose Export app for one running deployment or Export workspace for your project history and all deployments. The ZIP records the Teaspoon source commit in the build field in manifest.json. A single-app archive also records its deployment ID in revision. Keep the ZIP private because it contains your application data.

Download the Linux tools

Use tsprun for a single app. A full workspace also uses tspideio. These downloads match the current website build. Keep a copy alongside your ZIP if you plan to restore it later.

For example, on Linux x86-64, unpack the two downloads and put them on your path.

mkdir -p "$HOME/.local/bin"
gzip -dc tsprun-linux-amd64.gz > "$HOME/.local/bin/tsprun"
gzip -dc tspideio-linux-amd64.gz > "$HOME/.local/bin/tspideio"
chmod +x "$HOME/.local/bin/tsprun" "$HOME/.local/bin/tspideio"
export PATH="$HOME/.local/bin:$PATH"

Restore a single app

  1. Use the download for your backup's build, or build tsprun from the source commit recorded in build.
  2. Extract the ZIP into a new directory and change into that directory.
  3. Start tsprun using the manifest’s revision and the bundled data directory.
tsprun main.tsp --addr 127.0.0.1:8080 --local-only \
  --revision <manifest-revision> --log-dir data

Open the local app or request GET http://127.0.0.1:8080/apis. Check a value you recognize from the browser before making new writes.

Restore a workspace on Linux

Install tsprun and tspideio from the commit recorded in build, then extract the workspace ZIP into a new directory. In that directory, start the I/O service in one terminal.

tspideio --addr 127.0.0.1:8090 --data-dir io \
  --tsprun "$(command -v tsprun)"

In a second terminal in the same directory, create the local service configuration and start the restored IDE.

printf '%s\n' '{"io":{"url":"http://127.0.0.1:8090"}}' > services.json
tsprun tspide.tsp --addr 127.0.0.1:8091 --local-only \
  --log-dir ide --services services.json --revision tspide_v1

Open the restored IDE. The actor=operator query selects the account used by the browser workspace. Its project metadata, revisions and deployment state are in the restored ide and io directories. AI relay sessions and public app links belong to the web deployment.