On this page

Motion

Promo

New in Levni 0.6.0 levni promo needs 0.6.0 or newer.

A promo for Kumru, a coffee roaster, from a five-line brand file: levni promo kumru.json promo.mp4. 11.6 s, 540 px, 140 KB.

levni promo makes a short moving promo, about ten seconds, from a website or a brand, in one command. It reads the brand, picks a drawing for it, and plays four or five shots as one reel in the brand's own colours.

npx @levni/levni promo https://example.com promo.gif
npx @levni/levni promo brand.json promo.mp4 --format story
npx @levni/levni promo "Simitçi Kemal" promo.webp --look stamp

What it plays#

  1. The mark and the name: the brand's drawing pops in on a disc, the name types itself, the site's address below.
  2. The line: the first clause of the tagline, typed out big.
  3. The words (when the brand gives words): up to four, one after another.
  4. The inks (when the colours are real: given, or read from the page): the swatches rise with their codes.
  5. Where to go: the address, the line, and a button.

Shots join with a push. Every shot is drawn in the brand's full colour map, the same one a brand kit uses, so the promo matches the kit. A light accent moves the last card onto the brand's deep colour so its words read.

Where the brand comes from#

  • A URL: that one page is fetched (10 s, HTML only, nothing else): its name, description and colours (theme-color, CSS variables, inline styles). See brand kits, "From a website".
  • A brand file: { "brand": { "name", "tagline", "inks": ["#…"], "mark", "url", "words" } }, the same spec as levni brand.
  • A name: a promo with a mark picked from the name and seeded colours.

The command prints what it read, so you can correct it in a brand file and run it again.

Options#

option default what it does
--format square story (1080 × 1920), youtube, cover, og…
--look none an illustration look for every shot: stamp, marker, halftone…
--cta the site's address the last card's title
--width 540 for GIF, full size otherwise pixel width; smaller is faster and lighter

A GIF at 540 px takes about half a minute on a laptop. MP4 needs ffmpeg.

For agents and code#

MCP tool render_promo takes url or brand, out, format, look and width.

import { renderPromo, promoReel, promoBrand } from '@levni/levni';
await renderPromo('https://example.com', 'promo.gif', { format: 'square' });
const reel = promoReel(await promoBrand({ brand: { name: 'Ada', tagline: 'Hand-drawn maps' } }));  // the reel spec, to change before rendering

Found a mistake? These pages come from the docs folder and the CLI help; fix it there and open a pull request.

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.