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



How it works
- 01InitScans your project and writes
metadata.config.json. You confirm what it found. - 02GenerateRenders three image layouts and the favicon set, then opens a local preview.
- 03RefineAdjust colors, text, and logo per option. Downloads land in
public/metadata/. - 04ExtendDrop a
layout-d.jsintometadata-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
- Title
package.jsonname, README heading, folder name - Tagline
package.jsondescription - ColorsCSS custom properties, Tailwind v3 and v4 themes, design token JSON
- Logo
logo.svgin root,public/,assets/, orsrc/assets/
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