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