For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0
Sponsor

Registry

Learn how to use the ogimagecn registry with the shadcn CLI.

The ogimagecn registry ships Open Graph image components in the shadcn registry format. Register the namespace once in components.json, then pull items by name with the CLI.

Setup

Add a registries entry for this site. See the shadcn registry documentation for all components.json fields and behaviors.

{
  "registries": {
    "@ogimagecn": "https://ogimagecn.dev/r/{name}.json"
  }
}

You can replace @ogimagecn with another namespace; it only needs to match what you pass to shadcn add.

Usage

Install a UI component using the namespace and the item name (same as the JSON file under /r/ without .json):

$ pnpm dlx dlx shadcn@latest add @ogimagecn/blog

Without a registry alias, use the full URL (as on each docs page):

$ pnpm dlx dlx shadcn@latest add https://ogimagecn.dev/r/blog.json