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.
Drawing of the dayOne Folio drawing for every day of the year, the same for everyone. Step through the days and download the card.by Levni studio
Name stickerYour name on a round die-cut sticker around a drawing you pick from the Folio. PNG with the scene inside.by Levni studio
Word posterOne word, three of your colours, a pattern: an A-size poster ready to print or post. Change the pattern until it feels right.by Levni studio- Your space hereOne folder, two files: space.json and space.js. The engine is handed to you; write the tool, open a pull request.How to make a space →
Make a space
- Fork Levni-Dev/levni and add
site/src/spaces/your-tool/. space.json: title, description, author, licence, tags and a preview scene.space.js:export function mount(root, api). Draw withapi.url,api.png,api.gif, find drawings withapi.find.- Run
node test/spaces.mjs, then open a pull request. We review every space by hand.
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();
}