Levni Spaces

Small tools, made with Levni, by anyone.

A space is one small tool that draws with the engine in your browser. Each is a single file anyone can read, and adding one is a pull request. Free, no account, nothing leaves the page.

Make a space

  1. Fork Levni-Dev/levni and add site/src/spaces/your-tool/.
  2. space.json: title, description, author, licence, tags and a preview scene.
  3. space.js: export function mount(root, api). Draw with api.url, api.png, api.gif, find drawings with api.find.
  4. Run node test/spaces.mjs, then open a pull request. We review every space by hand.

The Spaces guide →

export function mount(root, api) {
  root.innerHTML = '<input id="w" value="Hello"><img id="o">';
  const draw = async () => {
    root.querySelector('#o').src = await api.url({
      canvas: [800, 500], background: 'paper',
      elements: [{ type: 'type', font: 'black',
        text: root.querySelector('#w').value,
        x: 60, y: 180, w: 680, h: 140, fit: 'box' }],
    });
  };
  root.querySelector('#w').oninput = draw;
  draw();
}

Free, for real

Make one now. Keep making them for free.

Try Levni in your browser, then add it to Claude or Codex: it draws on your machine, so the $20 plan you already have is enough. No image credits, no second bill.