@10xdevs/ogee
v0.1.5
Published
CLI to boot a Next.js app, capture a full-page screenshot with agent-browser, and save it as an OG image.
Maintainers
Readme
@10xdevs/ogee
Generate a clean Open Graph image for a Next.js app with one command.
@10xdevs/ogee is a focused CLI that:
- starts your app with
npm run devwhen needed - reuses an already running app when the target port is live
- captures a production-ready OG image with
agent-browser - writes the result to
app/opengraph-image.png
Why
Open Graph images are repetitive setup work. ogee is meant to remove that friction for Next.js projects and give you a solid default path:
- fixed output path:
app/opengraph-image.png - fixed OG size:
1200x630 - PNG output for best image quality
- no prompts for save path or aspect ratio
Usage
npx @10xdevs/ogeeIf your app is already running on another port:
npx @10xdevs/ogee --port 3001What It Does
When you run ogee, it:
- checks whether your app is already reachable
- starts
npm run devif it is not - waits for the app to load
- opens the app in
agent-browser - captures the OG image
- saves it to
app/opengraph-image.png
Options
--port <port> Use a different local port
--url <url> Use a specific app URL
--wait <ms> Wait a bit longer before capture
--keep-server Leave the dev server running after captureExamples:
npx @10xdevs/ogee --wait 3000
npx @10xdevs/ogee --keep-server
npx @10xdevs/ogee --port 3001Requirements
- Node.js 20+
- a Next.js app with
npm run dev npxavailable in your environment
Output
ogee always writes the generated image to:
app/opengraph-image.pngThat matches the standard Next.js App Router OG image location.
Publish
npm publish --access public