Spritessprites.sandbox.inevitable.fyi
Persistent little computers with names. The disk keeps everything, an idle sprite naps with its memory intact and wakes on the next request, and each one gets its own URL. This is the API the engine was born speaking.
- exec + streaming
- persistent disk
- suspend / wake warm
- checkpoints + restore
- a URL per sprite
- TCP proxy
- services
- network policy
- base URL
- https://sprites.sandbox.inevitable.fyi
- SPRITE_TOKEN
- your sandboxd key
- your URL
- https://<name>.sprites.sandbox.inevitable.fyi
Tested with sprites-py 0.7.1 through this URL. A sprite's URL wants your key until you set its url_settings.auth to "public". Names are global here, so pick something unlikely.
from sprites import SpritesClient # pip install sprites-py client = SpritesClient("<your key>", base_url="https://sprites.sandbox.inevitable.fyi") sprite = client.create_sprite("my-sprite") print(sprite.command("uname", "-a").output().decode()) sprite.command("sh", "-c", "echo remember me > ~/note").run() # ...walk away; it naps, and wakes with ~/note still there client.delete_sprite("my-sprite")
import { SpritesClient } from '@fly/sprites' // npm i @fly/sprites const client = new SpritesClient('<your key>', { baseURL: 'https://sprites.sandbox.inevitable.fyi' }) const sprite = await client.createSprite('my-sprite') const { stdout } = await sprite.exec('uname -a') console.log(stdout) await client.deleteSprite('my-sprite')