@volter/world
v2.0.56
Published
Run your app against a world of twins. `World` and `Repo` — one method per verb: init, up, run, log, diff, reset, branch, checkout, clone, fetch, changeset, push — and the `volter` command, one client of them.
Readme
@volter/world
Run your app against a world of twins. This package is the volter command and the SDK behind
it: World and TwinLog, one method per verb.
bun add -d @volter/world @volter/twin-stripe
volter world init # reads the app, writes .volter/world.json beside the code
volter world up # starts the twins, loads their default data
volter world run -- npm test
volter world log # every write the app made
volter world downimport { World } from '@volter/world';
const world = World.open(); // the world of the cwd, on its checked-out branch
await world.up();
world.run(['npm', 'test']);
console.log(world.log());
await world.down();