New
Apps 6,341Makers 6,320This week 13
Promote your app−30%
snap-x screenshot 1 1 / 6
1views in
the last 30 days

snap-x

Render self-contained Satori .mjs design files to PNG — any size, no browser

Built with Claude Code/Windsurf

by ravikovind · Unclaimed · from INIndia · added Nov 3, 2026
no ratings0 comments

Branded graphics for every platform, made by your AI agent. Thumbnails, covers, banners, store graphics and more: sized right, checked, and repeatable.

snap-x-flame.vercel.app — formats, use cases, templates, examples, and docs.

YouTube thumbnail
YouTube thumbnail
LinkedIn cover
LinkedIn cover
App Store screenshot
App Store screenshot
Festival greeting poster
Festival greeting poster
Play feature graphic
Play feature graphic
OG / link preview card
OG / link preview card
E-commerce banner
E-commerce banner
Food-delivery promo banner
Food-delivery promo banner

All made with the same tool, from a design file — not screenshots or mockups. Every image above is real snap-x output; see Examples.

Get started with Claude Code

/plugin marketplace add ravikovind/snap-x
/plugin install snap-x@snap-x
/snap-x

Point it at a repo, a website URL, or just describe the brand — it finds your real logo, colors, fonts and copy, picks the formats you need, writes one design file per format, checks and renders them, and looks at every image before handing them over. Manual install: copy skills/snap-x/ to ~/.claude/skills/.

Use with Codex

Copy skills/snap-x/ to ~/.codex/skills/snap-x/, then ask Codex to use $snap-x with a repo, website URL, or written brief. Codex can also discover the skill automatically when you ask it to make branded graphics.

Use with Cursor, Windsurf, Claude Desktop, or any MCP agent

See INSTALL.md for step-by-step setup for every agent and the standalone CLI.

How it works

  1. Point. Give your agent a repo, a website URL or a written brief.
  2. Plan. It pulls your real logo, colors, fonts and copy, picks the formats you need, and writes a plan.
  3. Render and verify. It writes one design file per format, checks them, renders exact-size PNGs, overlays each platform's danger zones, and looks at every image before handing them over.

Network access

snap-x reads and writes files on your machine; it doesn't phone home, collect analytics, or need an account. The only things it fetches from the network: Google Fonts (font files, cached to disk after the first render) and Twemoji emoji images from jsdelivr/twitter's CDN. When a design needs a real photo you haven't supplied and you ask your agent to find one, it may also fetch an image from the web — only when you ask for it, and only images cleared for commercial use.

Correct for every platform

Danger-zone overlay for a LinkedIn cover
snap-x guides — profile photo and edge zones overlaid
Mobile crop of the same cover
the same cover, mobile-cropped

22 built-in formats with sizes and rules: link previews, YouTube thumbnails/Shorts/channel art, LinkedIn/X covers and posts, Instagram posts and stories, Google Play graphics and screenshots, App Store screenshots, and more (snap-x formats, or snap-x formats <id> for notes and zones — sizes checked against official docs are marked verified). snap-x guides overlays a format's danger zones — profile photo, duration badge, story UI, cropped edges — on your design and renders the mobile crop, so you can see whether text is covered. snap-x check catches characters the font can't draw. Store graphics get no alpha channel automatically: set alpha: false in FORMAT and check/render produce an opaque RGB PNG.

Exact and repeatable

The design is a code file, not a canvas someone can nudge. Your real logo is embedded, not redrawn; text is exactly what you wrote; the size is exact — no cropping to fit a platform. Change one word and only that word moves. Re-render a whole series or catalogue from one template. It renders locally, with no browser.

Use cases

Use case Formats Example
YouTube creators thumbnails, channel art, Shorts examples/creator-series, examples/kite
Personal brand LinkedIn cover, X header examples/ravikovind
App makers App Store screenshots, Play feature graphic examples/kite
Websites and projects OG/link previews, README cards, GitHub social preview examples/snap-x, examples/open-notifier, examples/heyreach
E-commerce / marketing sale and promo banners, Instagram posts and stories examples/storefront
Food & delivery apps promo banners, offer graphics examples/food-app-banners
Seasonal & festival marketing greeting posters, campaign graphics examples/diwali-poster

FAQ

Why not just use an AI image generator? Use one. Tools like Nano Banana and ChatGPT are great at pixels: photos, illustration, texture, mood. snap-x does the work around the art:

  • Exact sizes. Image models generate in preset aspect ratios, so exact platform sizes (a 1584×396 LinkedIn cover, a 1024×500 Play feature graphic) usually mean cropping. snap-x renders the exact size.
  • Your real logo. It's embedded from the file, not redrawn.
  • Precise edits. Change "Episode 12" to "Episode 13" and nothing else moves.
  • Series and batches. One template gives identical layouts across a thumbnail series, a catalogue of banners or localized screenshots.
  • Platform rules. Safe zones, mobile crops and store no-alpha rules are built in and checked.
  • Yours, locally. The design is a code file you can diff and version; renders run on your machine.

They combine well: generate a background or product shot, then let snap-x place it with your logo and copy at every size.

Do I need Claude Code? No. The MCP server works with any MCP agent (Claude Desktop, Cursor, Windsurf), and you can write designs by hand with the CLI — see below.

Can it make photos or illustrations? No. snap-x lays out text, shapes, logos and images you supply; it doesn't generate art. Bring your own images, or generate them elsewhere and let snap-x place them with your logo, copy and platform rules.

Write designs by hand (CLI)

npm install -g @snap-x/cli        # or skip installing: npx -y @snap-x/cli …

snap-x version                    # confirm installed version
snap-x check  designs/*.mjs       # validate (structure, a real render, blank-box glyphs, store-alpha)
snap-x render designs/*.mjs --out snap-output
snap-x render designs/*.mjs --format svg   # SVG output — skips resvg, resolution-independent
snap-x render designs/*.mjs --format png   # PNG output (default)
snap-x formats                    # YouTube, X, LinkedIn, Play Store, App Store … sizes + placement zones
snap-x guides designs/*.mjs       # draw a platform's danger zones (+ mobile crop) over your designs

Paths can be a file, a directory, or a * glob. Files starting with _ are shared helpers and are never rendered (even when your shell expands the glob). --out defaults to ./snap-output.

snap-x watch designs/*.mjs [--guides] is a dev tool: it renders once, opens a local preview page (prints the URL) listing every output image, then re-renders and auto-reloads the page whenever a design file changes. --guides also runs the placement check on every change.

--format <png|svg> (on render) sets the output format. Default is png. svg skips the resvg raster step and writes the Satori SVG string directly — useful for vector workflows, editors, or post-processing. --scale is ignored for SVG (it's resolution-independent). Note: on the guides command, --format takes a platform format id (e.g. youtube-thumbnail), not an output format.

--scale <n> (on render and check) renders sharp at n× resolution — the design's layout is unchanged; only the raster output grows, the same way a browser re-renders an SVG sharply at any zoom. Output is named <name>@<n>x.png (e.g. og@2x.png). Ignored when --format svg is set.

render renders concurrently by default — a small worker_threads pool sized to your CPU count (measured ~2× faster on a 6-file pack with large images). Console output always lists files in their original order regardless of which finishes first, and a failing file is reported without stopping the others. --jobs 1 renders one file at a time on the main thread, exactly as before this existed; --jobs <n> picks any other pool size.

A design file

.jsx and .tsx work too — same rules, transformed at load time (esbuild, no React), and usually easier to read:

export const FORMAT = { width: 1200, height: 630, name: "og.png" };
export const FONTS  = [{ family: "Inter", weights: [400, 700, 900] }]; // optional, default Inter

export default function () {                       // zero arguments; may be async
  return (
    <div style={{ width: 1200, height: 630, background: "#000", display: "flex", alignItems: "center", justifyContent: "center" }}>
      <div style={{ color: "#fff", fontSize: 64, fontWeight: 900, display: "flex" }}>Hello</div>
    </div>
  );
}

The equivalent .mjs (the plain object tree Satori actually receives — this is what .jsx/.tsx compile down to, and what the /snap-x skill writes by default):

export default function () {
  return {
    type: "div",
    props: {
      style: { width: 1200, height: 630, background: "#000", display: "flex", alignItems: "center", justifyContent: "center" },
      children: [{ type: "div", props: { style: { color: "#fff", fontSize: 64, fontWeight: 900, display: "flex" }, children: ["Hello"] } }],
    },
  };
}

Everything the image needs lives in the file: colors, copy, fonts, size. There's no config file and no auto-detection.

Rules (Satori): every container needs display: "flex"; children is always an array; text is a string in children; no z-index, CSS grid, animations or position: "fixed". snap-x check catches these.

In JSX: a function component (<Chip label="x" />) is called immediately with its props — there's no reconciliation to defer to for a one-shot render — so check sees the same fully-resolved tree either way. Fragments (<>...</>) splice their children straight in. A _-prefixed helper works exactly like it does for .mjs, imported with a normal relative path.

Fonts: any Google Font via FONTS, per file. Fonts are cached on disk ($SNAP_X_CACHE_DIR, else ~/.cache/snap-x/fonts) so repeat renders are fast and work offline. CJK, Korean, Arabic, Hebrew, Thai, Devanagari and Bengali get an automatic Noto fallback. Emoji work (drawn as Twemoji images, cached). Other symbols the font lacks (✓, and → in some fonts) render as blank boxes — snap-x check warns about them; draw them as SVG.

Logos and images: make the export async and embed base64 <img> nodes. Resolve paths from the design file so it renders from any directory:

import fs from "fs/promises";
import { fileURLToPath } from "url";
const asset = async (rel, mime) =>
  `data:${mime};base64,${(await fs.readFile(fileURLToPath(new URL(rel, import.meta.url)))).toString("base64")}`;
// { type: "img", props: { src: await asset("../assets/logo.png", "image/png"), width: 231, height: 44 } }

PNG, JPEG and SVG work. AVIF and WebP don't (convert to PNG), and an SVG containing <text> must be rasterised first. Give both width and height, at the file's real aspect ratio.

Variants — one template, many images: export VARIANTS (an array, or an async function returning one) and the default export is called once per row instead of once with no arguments:

export const FORMAT = { width: 1280, height: 720, name: "episode.png" };
export const VARIANTS = [
  { id: "ep-01", title: "Setting up", number: 1 },
  { id: "ep-02", title: "First render", number: 2 },
];

export default function (variant) {           // receives one row when VARIANTS exists
  return { /* tree using variant.title, variant.number */ };
}
// → episode-ep-01.png, episode-ep-02.png

Each row needs a unique string id; output is named <name-stem>-<id>.<ext> unless a row's own format: { name } overrides it. check and guides run every row (labeling failures with the id); render --only <id,id> renders a subset. Without VARIANTS, a design behaves exactly as before — this is opt-in.

MCP server

{ "mcpServers": { "snap-x": { "command": "npx", "args": ["@snap-x/mcp"] } } }

Tools: render_designs, check_designs, preview_guides, list_formats. The agent writes the .mjs files; the server renders and validates them. For agents without the skill it also serves the design rules: a snap-x://design-guide resource and a design_cards prompt.

Security: design files are JavaScript and run with this server's own permissions when rendered or checked — only point it at design files you trust. Set SNAP_X_ROOT to restrict every tool to one directory (symlinks resolved); unset by default, so existing setups are unaffected. See packages/mcp/README.md.

Examples

examples/ has complete packs made with the skill: snap-x itself, Open Notifier, HeyReach, a LinkedIn cover, an App Store/Play Store listing pack, a fictional e-commerce brand, a fictional YouTube series, a JSX/TSX feature demo, a festival greeting poster, and a food-delivery promo banner set — each built from a repo, a site, or a written brief. Each has its designs, assets, plan and output. Regenerate all with npm run examples; npm run examples:diff checks every committed image still matches a fresh render (a pure-JS pixel diff — CI runs it on every push). templates/ has six brand-neutral starter designs (an "edit these values" block at the top of each) if you'd rather start from a template than write one from scratch. Made something with snap-x? Add it to SHOWCASE.md.

Packages

Package What it is
@snap-x/cli the snap-x command
@snap-x/core renderer, font loader, checker, programmatic API
@snap-x/mcp MCP server

Architecture notes: FLOW.md · Principles: PRINCIPLES.md · Contributing: CONTRIBUTING.md · Changes: CHANGELOG.md

License

MIT © Ravi Kovind

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#satori · #png · #design