Skip to main content
Glama

A post-AI center for designers. Open-source design engine for AI agents: covers, icons, brand boards and poster series from a few lines of JSON. No image model. No API key. No credit card. About 0.15 s a cover, on your laptop.

npm MCP Registry Levni MCP server Code: MIT Drawings: CC BY 4.0

levni.dev · Editor · Gallery · Library · Docs · MCP · Community · Manifesto

        .   .   .
       /|\ /|\ /|\
      ( @@@@@@@@@ )      we are not an AI company.
       \@@@@@@@@@/       we are not against AI either.
        \@@@@@@@/        we just draw, and leave the source open.
          \@@@/
            |            claude mcp add levni -- npx -y @levni/levni mcp
       \\   |   //
        \\  |  //        try ↑ ↑ ↓ ↓ ← → ← → B A on levni.dev
    ~~~~~~~~|~~~~~~~~

Branding posters, a brand board, stickers, a dithered sunset, a soft 3D cover, an isometric city, wireframe terrain, an ASCII card and a riso cover, all drawn by Levni

make

one line to start

a series of eight branding posters

npx @levni/levni poster brand.json posters/

a nine-tile brand board

npx @levni/levni board brand.json board.png

a cover, sticker sheet or dithered hero

npx @levni/levni render scene.json cover.webp

all of it from your assistant

claude mcp add levni -- npx -y @levni/levni mcp

a design by hand, no install

levni.dev/editor

Why Levni exists

Every other layer of the web went open source: the code, the fonts, the icons. The pictures did not. Making one small cover now means a credit card, an API key and a model in a good mood. Clients want it free, AI brought the fear of missing out, and every tool has a free trial.

We are living in a Tulip Era. Between 1718 and 1730 the Ottoman court fell in love with tulips and art bloomed; Levni, the painter this project is named after, painted it in colours that still look alive. Then it ended. The generative age blooms the same way. Levni is the other bet: a design commons, drawn as JSON you can read, diff and keep, made by people who still like making things.

We use AI every day. We just do not rent our taste from it. Read the manifesto.

Related MCP server: pixelbolt

Quick start

Try it in your browser first. The Levni editor runs the same engine in the page: drag drawings onto a canvas, turn them into 3D icons or ASCII, download PNG or SVG. The README banner maker turns a GitHub link into a 1280 × 640 banner. Both are free, with no sign-up.

Free in your agent. Levni draws on your machine, so the $20 Claude or ChatGPT plan you already have is enough: no image credits, no second bill. If Levni is useful to you, a star on GitHub helps others find it.

With an AI assistant (MCP). Claude Code:

claude mcp add levni -- npx -y @levni/levni mcp

Claude Desktop, Cursor and other clients (claude_desktop_config.json, .cursor/mcp.json, …):

{ "mcpServers": { "levni": { "command": "npx", "args": ["-y", "@levni/levni", "mcp"] } } }

Codex (~/.codex/config.toml):

[mcp_servers.levni]
command = "npx"
args = ["-y", "@levni/levni", "mcp"]

Then ask: "Illustrate this article with Levni and fix what the critic reports."

From the terminal.

npm install @levni/levni
npx @levni/levni render scene.json out.png        # or .webp / .svg; --format og|square|story|youtube; --preview
npx @levni/levni list coffee                      # search the library
npx @levni/levni sheet props.png rocket phone     # contact sheet of props, every variant

From code.

import { compose, critique, render } from '@levni/levni';

const scene = { seed: 4, elements: [{ type: 'prop', name: 'rocket', x: 600, y: 336, size: 360, shadow: true }] };
const { notes } = await render(scene, 'rocket.png');   // writes the file, returns the critic's notes
const { svg, used } = await compose(scene);            // or just the SVG

In the browser. The same engine runs in a page (it powers the editor). Load the drawings and fonts a scene uses, then compose:

// vite.config.js: plugins: [levni()]   (import levni from '@levni/levni/vite')
import { compose, registerProps, registerFont, toBlob } from '@levni/levni/browser';

registerProps([await (await fetch('/props/rocket.json')).json()]);
const { svg } = await compose({ seed: 4, elements: [{ type: 'prop', name: 'rocket', x: 600, y: 336, size: 360 }] });
const png = await toBlob(svg);

The browser build skips what needs native code: print screens and the icon set.

Node 20+. Two dependencies: sharp (SVG to PNG and WebP) and fontkit (reads the bundled OFL fonts for posters and display type).

Renders are fast: a hand-inked cover takes about 0.15 s on a laptop (an M4 Mac), because Levni applies its crayon finish to the pixels itself instead of asking the SVG renderer to (about seven times faster, same picture). Batches of hundreds of images run in a minute or two, with no GPU. How it works.

Free makers in your browser

Each maker opens a finished example in the editor: change the words, the drawing and the colours, then download PNG or SVG. No install, no sign-up. When you want more, add the MCP server and ask your agent.

What it draws

The Levni Folio

1,628 drawings, 3,409 variants (481 of them pixel icons), on 15 shelves, searchable in English and Turkish through ~11,800 tags. Each drawing in the Library has its tags, related drawings, copy-ready code and an SVG download. Renamed drawings keep their old names. No brand logos. CC BY 4.0. Browse

Scenes and the critic

73 element types on a 1200 × 673 canvas. Pressure-brush ink, riso plate misregistration, paper grain. Same seed, same picture. Every render returns layout notes: off-canvas, accidental crops, lopsided weight, no focal point.

Style packs and your inks

riso (default), miniature (Tulip Era colours, with its own tulips, carnations, cypresses and medallion), or your own colour map: every drawing follows your brand.

Soft 3D finish

"finish": "soft": clean edges and film grain. A real little 3D renderer (pure JS, no GPU): glossy ribbon3d bands (loop, Möbius, spiral, knot), torus3d, sphere3d, capsule3d, blob3d, cubes3d, interlocking shapes in one soft3d scene, extrude3d that turns any Folio drawing into a 3D icon, and soft3d cover presets ("preset": "auto", five palettes) with room for a title and an image badge. Guide

Little 3D worlds

iso dioramas: one line ("preset": "cafe", also room, desk, street, city, office, classroom) lays out a seeded world on a floating slab with soil layers and a soft shadow. 37 object kinds (walls with windows, doors and arches, stairs, roofs, fences, ponds, roads, trees, lamps, furniture, cars, people, posters hung on walls), soft occlusion, painter's order from real 3D boxes, in the riso hand or "style": "soft" toy 3D.

Faceless people

person in 15 poses (walking, pointing, reading, phone, cheering, …), people in a row. Round heads, no faces, by design.

Fusion slots

Put any drawing inside another: a chart on a TV screen, a tulip in a magnifier's lens. 64 hosts have slots.

Hand-inked data

bars, linechart, pie, donut, isochart from plain numbers.

Every format, plus a title

cover, og, square, story, youtube: recomposed, not cropped. Optional headline, kicker and brand layer.

Brand assets

dither fields (Bayer squares, dots, lines, several inks) and a screen print pass that turns any scene into a 1-bit, riso, blueprint, Game Boy or newsprint image; grainy meshgrad colour fields and orbs; glyphfill (ASCII, block and dot-matrix silhouettes, a shaded globe); seal, ringtext, stub tickets and die-cut stickers; wireframe terrain, ridgelines and engrave etchings. Recipes at the end of docs/scene.md

Branding posters

levni poster: one brand spec ({ "brand": { name, tagline, mark, inks, words } }) becomes eight portrait posters (split, map, bauhaus, echo, camo, vertical, summit, launch) and a series sheet. Big type comes from the type element, which draws text as paths from bundled open fonts (Space Grotesk, Archivo Black, JetBrains Mono, Departure Mono), so it looks the same everywhere. Also block, amtone, camo, grain, shapegrid, echo, dotmatrix and furniture. Guide

Brand boards

levni board: mark, wordmark, palette, web page, social card, tote, sticker, pattern and business card in one image, from four fields ({ "brand": { name, tagline, mark, inks } }). Guide

Calm images for hard news

A blue-only pack for loss, disaster, illness, courts and grief. Guide

The miniature pack, the soft finish and soft 3D, iso dioramas, people, slots and charts:

The isometric room in miniature colours

A blue-teal gradient ribbon arching across a pale background

Three mint tube rings on deep purple

A floating island city in riso colours: towers, gabled houses, roads and a park

An isometric cafe diorama with a counter, a barista and guests at round tables

A pastel street diorama in the soft style: houses, a road, lamp posts and trees

Pictogram people walking, cheering and handing over an object

A chart drawn inside an old TV screen

Hand-drawn bar, line and donut charts with sample data

A soft 3D cover: a glossy teal-to-indigo ribbon loop on pale blue, a title and a badge

A chain of four interlocking glossy mint and violet rings on deep purple

Five library drawings as 3D icons: rocket, light bulb, tulip, trophy, heart

Brand assets: dither, screen, mesh gradients, glyph fills, seals, terrain, etching and a whole brand board:

A dithered sunset: blue-to-coral pixel sky, a mustard sun, line-dithered water

Grainy mesh-gradient hero with a mono title

A globe drawn in ASCII characters with a lit side and a shadow side

A sticker sheet: seals with ring text, a ticket and die-cut stickers

Wireframe terrain at dusk with glowing streams and a rocket on the horizon

Etched mountains and a sun in blue lines on paper

Branding posters: one spec, eight posters in one series (split, map, bauhaus, echo, camo, vertical, summit, launch):

A series of eight branding posters for a coffee roaster, sharing inks, type and a dove mark

A brand board for a ferry company made with one brand call: mark, wordmark, web page, palette, social card, tote, sticker, pattern, business card

Full element reference: docs/scene.md · JSON Schema: docs/scene.schema.json · all example scenes: examples/

Use it from an agent (MCP)

levni mcp runs an MCP server over stdio, on your machine. Tools:

tool

what it does

scene_guide

the scene format (docs/scene.md); read it once

list_props

search the Folio by word, tag or shelf

show_props

a contact image of chosen props, every variant numbered

render_scene

draw a scene: critic notes, a 560 px preview, and with out the full file (.png/.webp/.svg)

critique_scene

only the critic's notes, for quick iterations

render_board

a brand board from { brand: { name, tagline, mark, inks } } or your own tiles; guide: true returns docs/board.md

render_poster

eight branding posters and a series sheet from { brand: { name, tagline, mark, inks, words } }; scenes: true returns the scenes to edit, guide: true returns docs/poster.md

From a checkout, use "command": "node", "args": ["/path/to/levni/bin/levni.mjs", "mcp"]. Files from render_scene are written relative to the client's working directory. Agents without MCP can use the CLI the same way.

Ghost: images for your drafts

Add your Ghost Admin credentials to the server's env and three more tools appear:

{ "mcpServers": { "levni": { "command": "npx", "args": ["-y", "@levni/levni", "mcp"],
  "env": { "GHOST_ADMIN_API_URL": "https://your-site.com", "GHOST_ADMIN_API_KEY": "<id>:<secret>" } } } }

tool

what it does

ghost_drafts

read-only: drafts without images, their h2 headings, and one draft's full text

ghost_preview

dry run: renders the cover and inline images, shows where each goes, returns a token

ghost_apply

writes, only with the token from a preview of the same plan on the unchanged draft

The assistant shows you the preview and applies after you say yes. Drafts only: nothing is published or emailed, a draft that already has images is skipped, at most one image per section. The key stays in your MCP config; Levni has no server of its own. Without the two variables the Ghost tools do not exist. The same flow from the terminal: levni ghost drafts and levni ghost attach plan.json [--apply]. Details: docs/ghost.md.

CLI

command

what it does

levni render <scene.json> <out>

draw a scene (--format, --preview) and print the critic's notes

levni list [query]

search props by name, old name or tag (English or Turkish)

levni sheet <out.png> [prop …]

contact sheet, every variant on paper and on blue (--recolor)

levni board <spec.json> <out.png>

brand board: {"brand": {name, tagline, mark, inks}} makes a nine-tile board in one call; or place tiles yourself, with browser/card/tote/phone mockups (docs)

levni poster <spec.json> <out-dir>

branding posters: {"brand": {name, tagline, mark, inks, words}} makes eight 1200 × 1600 posters and series.png (docs)

levni add <file> [--sheet out.png]

import props a chat model wrote: check, write, draw, print style notes (prompt, guide)

levni check [prop …]

measure props for agents that cannot see images; with names, also style notes

levni mcp

the MCP server

levni ghost drafts / attach

the Ghost adapter (docs)

levni judge score / pick

optional: rate renders with your own OpenRouter key (docs)

Optional extras: the icon and ascii elements use Tabler Icons when installed (npm install @tabler/icons, or LEVNI_ICONS=/path). Your own prop folders: LEVNI_PROPS=/path/to/props (several, separated by :).

LEVNI_RASTER=rsvg switches back to the SVG renderer's own filter (slower; useful to compare). In code: import { rasterize } from '@levni/levni' turns any Levni SVG into a PNG (or raw pixels with { raw: true }, at any density).

Keys and privacy

Drawing needs nothing: no account, no key. Two optional integrations bring your own key, kept in your environment or MCP config: Ghost (GHOST_ADMIN_API_URL, GHOST_ADMIN_API_KEY) and the judge (OPENROUTER_API_KEY). Levni sends your scenes and keys nowhere else.

Community: open design, together

Levni is a commons, and there are five ways in. All of them are open: levni.dev/community.

door

how

Draw for the Folio

one JSON file per drawing in library/props/, check it with npx @levni/levni add my-drawing.json --sheet check.png, open a pull request. Your name goes in the file and the credits.

Ask for a drawing

prop request: say what scene needs it

Share a style pack

style pack: the whole library in your palette

Bring your brand, show your work

showcase: a brand.json, a README banner, a poster series, with the scene

Talk

issues, and the Code of Conduct for everyone

A drawing looks like this:

{
  "name": "watering-can",
  "category": "home",
  "tags": ["garden", "water", "sulama"],
  "author": "Your Name",
  "variants": [
    { "note": "side view, spout to the right", "paths": [
      { "d": "M20 40 L70 40 L66 86 L24 86 Z", "fill": "tone", "stroke": "ink", "weight": 9 },
      { "d": "M70 52 L92 30", "stroke": "ink", "weight": 9 }
    ] }
  ]
}

Rules: your own drawing (inspired by a style is fine, tracing a work is not), no faces, no hands, no logos, one object per file, readable at 120 px. Full guide: CONTRIBUTING.md, naming and tagging: docs/folio-guide.md, file schema: docs/prop.schema.json, why no logos: BRAND_LOGOS.md. Writing many at once with a chat model: docs/prop-prompt.md.

Wanted for the Folio crew: illustrators, type nerds, riso printers, icon pedants, agent tinkerers, prompt sceptics, OSS maintainers, brand people, miniature fans, people who still sketch. Reward: your name in every scene that uses your work.

Licensing

  • Code (src/, bin/, adapters/, test/): MIT.

  • Levni Folio (library/): CC BY 4.0. Use it anywhere, commercially too; credit "drawings by Ortak Alan (CC BY 4.0)". Origins and flagged drawings: library/NOTICE.md.

  • Tabler Icons (MIT, Paweł Kuna): an optional peer dependency, not shipped. Props redrawn from Tabler shapes say so in their files.

  • Images you render are yours; the CC BY credit applies when they contain library drawings.

Repository

folder

what

src/

the engine: compose, ink, pen, iso, assets, ribbons, people, charts, slots, formats, title, critic, styles, MCP

src/browser.mjs, src/browser/

the browser build (shims for node:fs, sharp and friends, a Vite plugin); src/banner.mjs builds README banners

bin/levni.mjs

the CLI

adapters/ghost/

the Ghost adapter

library/

the Levni Folio and its licence

docs/

scene reference and schema, prop schema, Ghost, judge, sensitive stories, the chat-model prompt

examples/

scenes and their renders

site/

levni.dev (Astro, static, Cloudflare Pages; images drawn by Levni: npm run assets, npm run library). The editor is site/src/components/Editor.astro; the free makers are site/src/data/make.ts (one entry per /make/ page) and site/src/data/make-links.ts (which feature, gallery group, post and docs page leads to which maker)

test/

npm test runs every test file: props, MCP, Ghost (mocked), formats, judge, critic (~2 min: it draws every variant)


Made and used by Ortak Alan, the same crew as cartcurt.xyz. Inspired by our friend Berk Boz and Zero Bytes Foundation: consume, curate, cogitate, create. Named after Levni, court painter of the Tulip Era (d. 1732).

No image model was harmed in the making of this README.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to convert natural-language briefs into structured visual specs, deterministically render typography and layouts, and run constraint-aware visual QA and targeted repair for image generation.
      41 npm
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables agents to author, validate, inspect, patch, and render editable JSON pixel-art and animation recipes through local tools, producing PNG contact sheets, APNGs, sprite atlases, and related export bundles.
      2
      8
      1,365 npm
      141
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to model, sculpt, rig, animate and bake particle effects by editing a semantic scene document, with built-in software rendering, measurable critics that flag floating or broken geometry, and game-ready glTF export. It exposes templates, atomic edit batches, motion and effect previews, undo history, and no GPU, browser, or Blender required.
      31 npm
      Apache 2.0