--- name: meme-maker description: Search meme templates, suggest formats, and generate local or hosted image memes. metadata: { "openclaw": { "emoji": "🖼️", "requires": { "bins": ["node"] } } } --- # Meme Maker Create meme drafts from a curated template registry without bundling copyrighted template images. Quick start - Search: `{baseDir}/scripts/meme.mjs search "bad choice"` - Suggest: `{baseDir}/scripts/meme.mjs suggest "slow python image scripts"` - Local SVG: `{baseDir}/scripts/meme.mjs render drake --text "Python cold starts" --text "Node sharp cache" --out /tmp/meme.svg` - Local PNG: `{baseDir}/scripts/meme.mjs render drake --text "Maybe API" --text "Local render" --out /tmp/meme.png` - Imgflip hosted: `{baseDir}/scripts/meme.mjs render drake --service imgflip --text "before" --text "after"` Modes - `local` is default. It downloads template images from their source URL with a browser-like user agent, caches them under the user cache dir, embeds the image in an SVG, and writes SVG. If `--out` ends in `.png`, it uses `sharp` when available. - `imgflip` calls Imgflip `caption_image` and prints the hosted URL. It requires `IMGFLIP_USER` and `IMGFLIP_PASS` unless supplied via `--username` and `--password`. Commands - `list [--json]`: list the built-in curated templates. - `search [--json]`: search template names, aliases, tags, and use cases. - `suggest [--limit N] [--json]`: rank templates for the topic. - `render