Interactive shell over repos in a Mesa org running inside a Sprites sandbox, written in TypeScript.
Spins up a disposable Sprite, installs Mesa, mounts your org's repos via FUSE, and drops you into a minimal shell. Commands execute inside the sprite against the mounted filesystem.
npm install
# Create a .env in this directory (gitignored)
cp .env.example .env
# Now populate your .env file with the required values
# Run
npm startStarting sprite...
Mounting your-org...
Connected to /mnt/mesa/your-org. Type "exit" or Ctrl+C to quit.
$ ls
repo-one repo-two repo-three
$ cd repo-one
$ ls
README.md src/ package.json
$ exit
Cleaning up sprite...
Bye!
- Creates a disposable Sprite via the Sprites SDK
- Installs Mesa CLI and FUSE inside the sprite
- Starts the FUSE daemon (
mesa mount --daemonize) with your org credentials - Drops you into a REPL rooted at the mounted org directory
| Variable | Description |
|---|---|
MESA_ORG |
Your Mesa organization slug |
MESA_API_KEY |
Mesa API key (get one here) |
SPRITES_TOKEN |
Sprites token (get one here) |
- Node.js >= 18
- Mesa account with an API key
- Sprites account with a token