registry

Registry Specification

DevClub UI distributes components via an open JSON registry specification that can be consumed by CLI tools, automated agents, or custom build pipelines.

REST Endpoints

The registry exposes clean REST endpoints to search, filter, and fetch component source code programmatically:

GET/api/components
List Catalog

Returns all available registry components. Supports query parameters ?category=, ?q=, and ?tag=.

GET/api/components/[slug]
Fetch Component Detail

Returns the complete JSON schema for a single component, including raw TSX source code, dependencies, and metadata.

GET/r/registry.json
Shadcn Registry Index

Open shadcn-compatible schema catalog. Individual components can be installed directly via npx shadcn@latest add https://devclub.co/r/[name].json.

GET/api/health
Health & Diagnostics

Diagnostic status check returning active component counts and API uptime.

Registry Item Schema

Each component definition in the registry adheres to the following TypeScript interface:

src/types/component.ts
1
export interface ComponentRegistryItem {
2
id: string;
3
name: string;
4
slug: string;
5
description: string;
6
category: "accordion" | "scales" | "buttons" | "cards" | "feedback" | "layout" | "ai-stuff";
7
tags: string[];
8
dependencies: string[];
9
devDependencies?: string[];
10
code: string;
11
interactiveProps?: Record<string, unknown>;
12
}

Sample Response Payload

Executing a GET request against /api/components/noise produces the following response:

Response (application/json)
1
{
2
"success": true,
3
"data": {
4
"name": "Noise Generator",
5
"slug": "noise",
6
"category": "ai-stuff",
7
"description": "High-performance Perlin / Simplex procedural grain canvas with GSAP blending.",
8
"dependencies": ["gsap", "@gsap/react"],
9
"code": "\"use client";\\n\\nimport React, { useRef, useEffect } from 'react';..."
10
},
11
"timestamp": "2026-09-23T15:00:00.000Z"
12
}