Skip to content

PK-17 Host the public flat registry JSON #14

Closed

Description

@Ducksss

Summary

Deploy the generated flat registry files at stable public HTTPS URLs so raw shadcn and external users can consume the public Payload Kits catalog.

For agentic workers: Use @superpowers. Start in an isolated worktree, use superpowers:writing-plans for multi-file work, prefer superpowers:subagent-driven-development for implementation, and use superpowers:verification-before-completion before claiming completion.

Phase

Public registry launch

Current Baseline

  • payload-kit init, payload-kit add, and payload-kit doctor exist in the alpha CLI.
  • Five public starter kits exist: hero-basic, feature-proof-grid, cta-split, faq-simple, and testimonial-quote.
  • The site has public /kits and /docs/payload-kits surfaces.
  • The repo can emit flat public registry JSON into public/ with pnpm registry:build.

Scope

  • Choose the production hosting path for public/registry.json and each public item JSON file under the payload-kits.com domain.
  • Make https://payload-kits.com/registry.json and each item URL stable, cacheable, and fetchable without authentication.
  • Preserve the current flat registry contract: the root registry lists item metadata and file targets, while item JSON files contain file content.
  • Document the chosen deployment path and any hosting-specific cache invalidation steps in the repo docs or release notes.

Out Of Scope

  • Private/Pro registry authentication.
  • Changing kit source files or renaming public kit slugs.
  • Submitting to the upstream shadcn registry index.

Implementation Guidance

  • Start from the existing pnpm registry:build output and do not invent a second registry build format.
  • Use the current public kit slugs as URL names: hero-basic, feature-proof-grid, cta-split, faq-simple, and testimonial-quote.
  • Keep root registry payloads small by ensuring files[].content is absent from registry.json.
  • Record exact public URLs in the issue before closing so follow-up tickets can reuse them without rediscovery.

Acceptance Criteria

  • https://payload-kits.com/registry.json returns HTTP 200 over HTTPS and parses as JSON.
  • Each item URL returns HTTP 200 over HTTPS and parses as JSON.
  • The root registry contains exactly the expected public item slugs and does not contain embedded files[].content values.
  • Each item JSON contains installable file content for its declared files.
  • Cache headers are intentional and documented, even if the first version uses conservative caching.

Test Plan

  • pnpm registry:build from a clean checkout.
  • curl -fsS https://payload-kits.com/registry.json followed by JSON parsing.
  • Repeat curl and JSON parsing for every public item URL.
  • Run a small structural check that fails if root registry.json contains "content" or if an item JSON lacks file content.

Definition Of Done

  • Acceptance criteria are satisfied and checked off.
  • Test plan has been run or any skipped test has a concrete reason.
  • Public docs or runbooks are updated when behavior changes.
  • The implementation notes mention any follow-up issue that should be created.

Activity

  1. added
    enhancement
    on May 13, 2026
  2. Ducksss commented on Jun 12, 2026

    @Ducksss
    OwnerAuthor

    PR #57 records https://payload-components.xyz/r/{name}.json as the active canonical public registry template for the Fumadocs baseline.

    Validation on 2026-06-12:

    • curl -fsSL https://payload-components.xyz/r/registry.json parses as JSON.
    • curl -fsSL https://payload-components.xyz/r/hero-basic.json parses as JSON and includes file content.
    • curl -fsSL https://payload-components.xyz/r/feature-grid-basic.json parses as JSON and includes file content.
    • Root registry has no embedded files[].content values.

    payload-kits.com remains unreachable, so this issue should stay open until the final domain decision is accepted or DNS/Vercel routing is updated.

  3. Ducksss commented on Jun 15, 2026

    @Ducksss
    OwnerAuthor

    Closing as completed against the current production registry path.

    Validation on 2026-06-15:

    The stale payload-kits.com domain in the original issue is superseded by the canonical payload-components.xyz deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions