8000 GitHub - rbadillap/zeta: An open source registry for shadcn/ui components - built for private and premium projects
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ zeta Public template

An open source registry for shadcn/ui components - built for private and premium projects

Notifications You must be signed in to change notification settings

rbadillap/zeta

Repository files navigation

Zeta – Secure shadcn/ui Component Registry

hero image

Zeta is an open source registry for shadcn/ui components, designed for secure distribution of private or premium components. It integrates with Polar.sh for automated license key management and validation.

Documentation is in progress.
For now, follow this guide and refer to shadcn registry docs and Polar license key docs for details.


Quick Start

1. Create a License Key

To protect your components, you need a valid license key from Polar.sh.


2. Choose Your Setup

A. Install via shadcn CLI (recommended for new Next.js projects)

  1. Start with a fresh Next.js app.

  2. Run:

    pnpm dlx shadcn@latest add https://zeta-registry.vercel.app/r/registry.json

This command copies the registry components into your project.

B. Use this repository as a template

git clone https://github.com/rbadillap/zeta.git
cd zeta
pnpm install

3. Configure Environment Variables

Copy .env.example to .env and fill in the required values:

# Zeta registry (used for signing tokens)
# https://nextjs.org/docs/app/guides/authentication#1-generating-a-secret-key
REGISTRY_TOKEN_SECRET="your-random-secret"

# Polar.sh integration
POLAR_ORG_ID="your-polar-organization-id"
POLAR_ACCESS_TOKEN="your-polar-access-token"
POLAR_IS_SANDBOX="false" # set to "true" for Polar sandbox/testing

Variable explanations:

  • REGISTRY_TOKEN_SECRET: Secret key for signing and verifying registry tokens. Generate a strong random value. Docs
  • POLAR_ORG_ID: Your Polar.sh organization ID. Find it in your Polar dashboard.
  • POLAR_ACCESS_TOKEN: API token for accessing Polar.sh endpoints.
  • POLAR_IS_SANDBOX: Set to "true" to use Polar's sandbox environment for testing.

4. Registry Setup & Component Protection

Zeta expects a registry.json file and at least one component to be present in your project.

  • Follow the shadcn registry getting started guide to:
    • Create your own registry.json
    • Add your components (e.g., in registry/new-york/your-component/)
    • Reference and protect components as needed

5. Run the Registry Server

pnpm dev

Your registry will be available at http://localhost:3000.


How It Works

  1. Create a license key in Polar.sh
  2. Set up your registry (clone this repo or use shadcn CLI)
  3. Configure environment variables for Polar integration and token signing
  4. Add and protect your components in the registry
  5. Distribute components securely—users must provide a valid license key to install

Links & Further Reading


License

MIT License

About

An open source registry for shadcn/ui components - built for private and premium projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0