How luv-jeri/cojeev-ui works
000h is a shadcn-compatible library of installable React components, presented through a public documentation and marketing site. The main user journey is to browse the catalog, inspect a live example and its source, then install a component into their own project. The repository also includes analytics and a reporting service for feedback. The README documents registry-based installation; registry-host internals and several documentation routes were not sampled, so their implementation links are omitted or marked unverified.
Main entry points: page.tsx Landing page · button.tsx Installable components · preview.tsx Preview interface · site-config.ts Site configuration
Components 23
Site and discovery
- Landing page
app/page.tsx - Component catalog
lib/catalog.ts - Documentation search
components/docs-search.tsx - Live previews
components/component-preview.tsx - Install guide
app/getting-started/page.tsx - Site configuration
lib/site-config.ts - Structured data
lib/seo/structured-data.ts
Component library
- Installable components
registry/cojeev/ui/button.tsx - Motion system
registry/cojeev/motion/choreography.ts - Icon components
registry/cojeev/ui/animated-icon.tsx - Control appearance
registry/cojeev/lib/control-appearance.ts - Dialog primitives
registry/cojeev/ui/dialog.tsx - Scroll areas
registry/cojeev/ui/scroll-area.tsx - Code display
registry/cojeev/ui/code-block.tsx - Preview interface
registry/cojeev/ui/preview.tsx
Registry distribution
- Registry host
workers/registry-host/src/index.mjs
Feedback and analytics
- Feedback reporting
components/reporting/reporting-widget.tsx - Reporting client
lib/reporting/client.ts - Report service
workers/reporting/src/index.ts - Analytics client
lib/analytics/client.ts - Analytics provider
components/analytics/analytics-provider.tsx
Other components
- Site visitor
- Installing developer
Connections 23
- Site visitor → Landing page: visits
app/page.tsx - Landing page → Component catalog: counts entries
app/page.tsx - Landing page → Structured data: creates metadata
app/page.tsx - Landing page → Site configuration: reads settings
app/page.tsx - Site visitor → Documentation search: searches
components/docs-search.tsx - Documentation search → Component catalog: searches entries
- Site visitor → Live previews: explores examples
components/component-preview.tsx - Live previews → Preview interface: renders
components/component-preview.tsx - Preview interface → Code display: shows source
registry/cojeev/ui/preview.tsx - Preview interface → Installable components: hosts examples
- Site visitor → Install guide: follows install guide
app/getting-started/page.tsx - Install guide → Site configuration: builds install command
app/getting-started/page.tsx - Installing developer → Registry host: requests component
README.md - Registry host → Installable components: serves source
README.md - Installable components → Motion system: uses motion
- Installable components → Control appearance: applies styling
registry/cojeev/ui/button.tsx - Dialog primitives → Motion system: uses motion hooks
registry/cojeev/ui/dialog.tsx - Scroll areas → Motion system: uses choreography
registry/cojeev/ui/scroll-area.tsx - Site visitor → Feedback reporting: submits feedback
- Feedback reporting → Reporting client: sends report
components/reporting/reporting-widget.tsx - Reporting client → Report service: calls API
- Analytics provider → Analytics client: tracks consented activity
- Analytics client → Site configuration: reads deployment flags
lib/analytics/client.ts