Skip to content

armgit / pdfcn

Public Imported from GitHub
0

Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.

2.6 KB
Raw Blame

Preflight Validation

Run these checks before generating directory PRs or social drafts.

Registry requirements

The registry must be publicly accessible with no authentication:

Endpoint Required Example
Registry index {registryBaseUrl}/registry.json https://ogimagecn.vercel.app/r/registry.json
Component files {componentUrlPattern} with real component name https://ogimagecn.vercel.app/r/og-image.json

Custom registry_url paths are allowed (e.g. registry.directory entries can set registry_url explicitly) but the index must resolve without auth.

Automated validation

bash scripts/validate-registry.sh <registryBaseUrl> [component-name]

The script checks:

  1. registry.json returns HTTP 200 and valid JSON
  2. Registry index contains at least one item (or documents components)
  3. Optional sample component JSON returns 200
  4. Response is not HTML error page

Manual checks

CLI install smoke test

npx shadcn@latest add <full-url-or-scope/component> --dry-run

Or install into a throwaway test project if the user has one.

Duplicate detection

Search the official directory for the scope name:

curl -fsSL https://raw.githubusercontent.com/shadcn-ui/ui/main/apps/v4/registry/directory.json \
  | python3 -c "import json,sys; d=json.load(sys.stdin); print([x['name'] for x in d if '@yourscope' in x.get('name','').lower()])"

Also search community lists if the registry was previously submitted under a different name.

Description quality

Official directory descriptions should be:

  • One sentence, factual
  • No "best", "#1", "revolutionary", or heavy marketing language
  • Explain what components the registry provides

Logo (official directory)

If including logo in the official entry:

  • Inline SVG only (as used in apps/v4/registry/directory.json)
  • Reasonable size (< 8KB)
  • Works in light and dark contexts if possible

GitHub metadata

For registry.directory, prefer including:

  • github_url — source or registry repo
  • github_profile — https://github.com/{username}.png

Blockers (do not proceed)

  • registry.json missing or returns non-JSON
  • All sampled component URLs 404
  • Duplicate @scope already in official directory
  • Site homepage down
  • Registry requires auth headers or cookies

Warnings (proceed with user acknowledgment)

  • No logo for official entry (still submittable)
  • Only one component in registry (fine for niche registries)
  • Premium distribution on shadcntemplates (review process, fees for multiple premium listings)
  • Official PR may take days for maintainer review