metadata-gen

metadata-gen is a command-line tool that generates OG images and a complete favicon set from what your project already has: colors, logo, title, and tagline.

No API keys, no external services. Everything renders locally, then a preview opens where you refine each option and download the result straight into your repo.

Built by Micka. Open source, MIT licensed.

Quick start

$ npx metadata-gen init $ npx metadata-gen

Two commands, under 90 seconds. Requires Node 18 or newer.

What you get

ICO, SVG, PNG, webmanifest
Three 1200×630 options and a full favicon set, generated by metadata-gen for itself. Pick one, refine, download.

How it works

  1. 01InitScans your project and writes metadata.config.json. You confirm what it found.
  2. 02GenerateRenders three image layouts and the favicon set, then opens a local preview.
  3. 03RefineAdjust colors, text, and logo per option. Downloads land in public/metadata/.
  4. 04ExtendDrop a layout-d.js into metadata-templates/ and it appears as a fourth option. An AGENTS.md contract ships with it, so an AI agent can write one too.

What it scans

Scanning is static and read-only. None of your project code is executed.

Files

public/metadata/
├── og.png                    # 1200×630
├── favicon.ico               # 16 + 32 + 48
├── favicon.svg               # light and dark mode
├── favicon-16x16.png
├── favicon-32x32.png
├── favicon-96x96.png
├── apple-touch-icon.png      # 180×180
├── android-chrome-192x192.png
├── android-chrome-512x512.png
└── site.webmanifest