npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opengraph-creator

v0.1.9

Published

Agent-first local Open Graph Creator studio and CLI.

Readme

OpenGraph Creator

OpenGraph Creator is an agent-first Open Graph image studio and CLI for app repositories.

Coding agents such as Codex, Claude Code, and OpenCode generate editable .ogdoc documents. OpenGraph Creator Studio opens those documents, lets users edit visually, previews platform crops, exports optimized 1200x630 assets, and writes handoff files so the agent can wire metadata into the target app after confirmation.

OpenGraph Creator does not call OpenAI, Anthropic, or image-generation providers directly. Generation belongs to the coding agent; Studio owns editing, preview, export, compression, recovery, and handoff.

Install Skill

Install the public skill with the skills CLI. The skill is shared by Codex, Claude Code, and OpenCode; the --agent option only controls where the skills CLI installs it.

Install For All Supported Agents

Use this when you want every supported local coding agent to receive the skill:

npx skills add -g Rajikshank/opengraph-creator --skill opengraph-creator --agent "*" -y

--agent "*" targets every supported detected agent. It is the public all-agent install path.

Install For One Agent

Use one of these when you only want a specific coding agent to receive the skill:

npx skills add -g Rajikshank/opengraph-creator --skill opengraph-creator --agent codex -y
npx skills add -g Rajikshank/opengraph-creator --skill opengraph-creator --agent claude-code -y
npx skills add -g Rajikshank/opengraph-creator --skill opengraph-creator --agent opencode -y

Install For Selected Agents

Repeat --agent, or use its short alias -a, when installing to more than one specific agent:

npx skills add -g Rajikshank/opengraph-creator --skill opengraph-creator -a codex -a opencode -y

Verify Runtime

The skill delegates Studio and export work to the npm runtime. Verify the runtime after installing or updating the skill:

npx -y opengraph-creator@latest doctor --json

The doctor should report that no provider API key is required and that the agent skill is installed in at least one known skills directory.

Run Studio

Open Studio directly from an app repo:

npx -y opengraph-creator@latest studio --repo .

Manual launch opens the Project Hub. Agent launch opens the generated session document directly.

Agent Workflow

After the skill is installed, open your app in Codex, Claude Code, or OpenCode and ask for an editable Open Graph image.

The installed skill should:

  1. Inspect the app routes, brand assets, copy, screenshots, and existing metadata.
  2. Ask only the relevant design questions.
  3. Write a structured generation brief with capability, concept, recipe, and asset-plan decisions.
  4. Run brief lint and assets lint before document generation.
  5. Create a durable .opengraph-creator/sessions/<id>/ session.
  6. Generate an editable layered .ogdoc document.
  7. Run document validate, design lint, and render check.
  8. Launch Studio with that document.
  9. Wait for Studio to request a revision, publish, cancel, or restart.
  10. Wire metadata only after the user confirms publish.

Session Handoff Files

OpenGraph Creator uses a local file bridge so agents and Studio can resume safely:

.opengraph-creator/sessions/<id>/
  session.json
  events.jsonl
  document.ogdoc
  incoming/
  export.json
  publish-request.json
  agent-request.json
  studio.json

Treat these files as recovery state. Preview requests are review state only; metadata should be changed only after a confirmed publish request.

Generation Quality Gates

The runtime includes agent-facing checks that prevent weak or flattened generated output before Studio opens:

opengraph-creator brief lint --source ".opengraph-creator/sessions/<id>/generation-brief.json" --repo . --id "<id>"
opengraph-creator assets lint --brief ".opengraph-creator/sessions/<id>/generation-brief.json" --document ".opengraph-creator/sessions/<id>/document.ogdoc" --repo . --id "<id>"
opengraph-creator design lint --source ".opengraph-creator/sessions/<id>/document.ogdoc" --repo . --id "<id>"
opengraph-creator render check --source ".opengraph-creator/sessions/<id>/document.ogdoc" --repo . --id "<id>"

When run with --repo and --id, failed checks append recoverable entries to .opengraph-creator/sessions/<id>/generation-errors.jsonl so the agent can repair the brief or .ogdoc and continue the wait loop.

Update Skill And Runtime

Check runtime and skill freshness:

npx -y opengraph-creator@latest update check --json

The Studio runtime can relaunch itself through the latest npm package when a newer runtime is available.

Skill updates are manual because the running agent may already have loaded the old skill instructions. If the update check reports a stale or missing skill, stop the current OG task, run:

npx skills check -g opengraph-creator
npx skills add -g Rajikshank/opengraph-creator --skill opengraph-creator --agent "*" -y
npx -y opengraph-creator@latest doctor --json

Then start a new agent session. Skill updates and runtime updates are separate: the skill tells the coding agent what to do; the npm runtime launches Studio, validates .ogdoc documents, exports images, and writes handoff files.

Troubleshooting

If the skill cannot find the runtime, verify the npm runtime:

npx -y opengraph-creator@latest doctor --json

If the skill is missing for one agent, prefer reinstalling through the skills CLI:

npx skills add -g Rajikshank/opengraph-creator --skill opengraph-creator --agent codex -y
npx skills add -g Rajikshank/opengraph-creator --skill opengraph-creator --agent claude-code -y
npx skills add -g Rajikshank/opengraph-creator --skill opengraph-creator --agent opencode -y

opengraph-creator install-skill is a fallback repair command for local development or recovery only. It uses --agent all instead of --agent "*":

opengraph-creator install-skill --agent codex --scope global
opengraph-creator install-skill --agent claude-code --scope global
opengraph-creator install-skill --agent opencode --scope global
opengraph-creator install-skill --agent all --scope global

Normal users should install through npx skills add, not by cloning or building this repository.

Repository

Full documentation and source:

https://github.com/Rajikshank/opengraph-creator