# radian-os/radianui architecture

> Architecture diagram of the GitHub repository radian-os/radianui, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/radian-os/radianui
- Repository: https://github.com/radian-os/radianui

## Overview

Radian UI combines a React design system and component catalog with a website, design resources, and a CLI that initializes projects and adds editable component source. The main user workflow is developer → CLI initialization/component selection → generated project and copied-in component source. The repository also includes Next.js/Vite starter templates and a country-flags package. The tree and README establish the product capabilities; source excerpts are limited, so internal links not directly evidenced are omitted or marked unverified.

Main entry points: [`apps/website/src/app/(app)/page.tsx`](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(app)/page.tsx) (Product website), [`packages/cli/src/executor/init.ts`](https://github.com/radian-os/radianui/blob/main/packages/cli/src/executor/init.ts) (Project initialization), [`packages/cli/src/commands/add-asset.ts`](https://github.com/radian-os/radianui/blob/main/packages/cli/src/commands/add-asset.ts) (Add component or asset), [`packages/cli/src/commands/search.ts`](https://github.com/radian-os/radianui/blob/main/packages/cli/src/commands/search.ts) (Component search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Website and docs"]
  node_website["Product website<br/>[page.tsx]"]
  node_docs_api["Raw docs endpoint<br/>[route.ts]"]
  node_updates["Product updates dialog"]
  node_og["Social image endpoint<br/>[route.tsx]"]
  node_og_fonts["OG font loader<br/>[fonts.ts]"]
  node_themer_init["Theme config endpoint<br/>[route.ts]"]
  node_themer_preview["Theme preview<br/>[preview-client.tsx]"]
end

subgraph group_resources["Design resources"]
  node_resource_pages["Resource collections"]
  node_avatar["Avatar playground"]
  node_emoji["Emoji catalog"]
  node_flags["Flag catalog"]
  node_logos["Brand logo catalog"]
end

subgraph group_cli["Radian CLI"]
  node_cli_init["Project initialization<br/>[init.ts]"]
  node_cli_add["Add component or asset<br/>[add-asset.ts]"]
  node_cli_search["Component search<br/>[search.ts]"]
  node_cli_registry[("CLI registry access<br/>[registry.ts]")]
  node_transform_pipeline["Source transform pipeline<br/>[pipeline.ts]"]
  node_transform_icon["Icon transformer<br/>[transformIcon.ts]"]
end

subgraph group_ui["Components and blocks"]
  node_component_examples["Component examples<br/>[page.tsx]"]
  node_animated_components["Animated components<br/>[draggable.tsx]"]
end

subgraph group_packages["Shared packages and starters"]
  node_flags_package["Country flags package<br/>[flag.tsx]"]
  node_vite_template["Vite starter app<br/>[App.tsx]"]
  node_next_template["Next.js starter page<br/>[page.tsx]"]
end

node_developer(("Project developer"))
node_generated_project["Configured project"]

node_developer -->|"initialize project"| node_cli_init
node_developer -->|"request component"| node_cli_add
node_developer -.->|"find components"| node_cli_search
node_cli_init -->|"create setup"| node_generated_project
node_cli_add -->|"copy source"| node_generated_project
node_cli_search -->|"search catalog"| node_cli_registry
node_transform_pipeline -->|"runs transformer"| node_transform_icon
node_themer_init -.->|"provides config"| node_themer_preview
node_og -->|"loads fonts"| node_og_fonts
node_website -.->|"serves documentation"| node_docs_api
node_website -->|"offers resources"| node_resource_pages
node_developer -->|"browse docs"| node_website
node_developer -->|"browse avatars"| node_avatar
node_developer -->|"browse emojis"| node_emoji
node_developer -->|"browse flags"| node_flags
node_developer -.->|"browse brand assets"| node_logos
node_developer -->|"explore UI blocks"| node_component_examples
node_developer -->|"start Vite project"| node_vite_template
node_developer -->|"start Next.js project"| node_next_template

click node_website "https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(app)/page.tsx"
click node_docs_api "https://github.com/radian-os/radianui/blob/main/apps/website/src/app/api/raw-docs/%5B...slug%5D/route.ts"
click node_updates "https://github.com/radian-os/radianui/blob/main/apps/website/src/components/get-product-updates-dialog.tsx"
click node_og "https://github.com/radian-os/radianui/blob/main/apps/website/src/app/api/og/route.tsx"
click node_og_fonts "https://github.com/radian-os/radianui/blob/main/apps/website/src/app/api/og/fonts.ts"
click node_resource_pages "https://github.com/radian-os/radianui/tree/main/apps/website/src/app/(resources)/resources"
click node_avatar "https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(resources)/resources/(avatar)/components/AvatarPlayground.tsx"
click node_emoji "https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(resources)/resources/(emoji)/components/EmojiResourcePage.tsx"
click node_flags "https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(resources)/resources/(flags)/components/FlagsResourcePage.tsx"
click node_logos "https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(resources)/resources/(brand-logos)/components/BrandLogosResourcePage.tsx"
click node_themer_init "https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(themer)/init/route.ts"
click node_themer_preview "https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(themer)/preview/%5Bname%5D/preview-client.tsx"
click node_cli_init "https://github.com/radian-os/radianui/blob/main/packages/cli/src/executor/init.ts"
click node_cli_add "https://github.com/radian-os/radianui/blob/main/packages/cli/src/commands/add-asset.ts"
click node_cli_search "https://github.com/radian-os/radianui/blob/main/packages/cli/src/commands/search.ts"
click node_cli_registry "https://github.com/radian-os/radianui/blob/main/packages/cli/src/utils/registry.ts"
click node_transform_pipeline "https://github.com/radian-os/radianui/blob/main/packages/cli/src/utils/transformers/pipeline.ts"
click node_transform_icon "https://github.com/radian-os/radianui/blob/main/packages/cli/src/utils/transformers/transformIcon.ts"
click node_component_examples "https://github.com/radian-os/radianui/blob/main/apps/website/src/registry/blocks-example/preview-02/page.tsx"
click node_animated_components "https://github.com/radian-os/radianui/blob/main/apps/website/src/registry/animated/draggable.tsx"
click node_flags_package "https://github.com/radian-os/radianui/blob/main/packages/country-flags/src/flag.tsx"
click node_vite_template "https://github.com/radian-os/radianui/blob/main/templates/vite-app/src/App.tsx"
click node_next_template "https://github.com/radian-os/radianui/blob/main/templates/next-app/app/page.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_website,node_docs_api,node_updates,node_og,node_og_fonts,node_themer_init,node_themer_preview toneBlue
class node_resource_pages,node_avatar,node_emoji,node_flags,node_logos toneAmber
class node_cli_init,node_cli_add,node_cli_search,node_cli_registry,node_transform_pipeline,node_transform_icon toneMint
class node_component_examples,node_animated_components toneRose
class node_flags_package,node_vite_template,node_next_template,node_developer,node_generated_project toneIndigo
```

## Components

### Website and docs

- [Product website](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(app)/page.tsx): `apps/website/src/app/(app)/page.tsx`
- [Raw docs endpoint](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/api/raw-docs/%5B...slug%5D/route.ts): `apps/website/src/app/api/raw-docs/[...slug]/route.ts`
- [Product updates dialog](https://github.com/radian-os/radianui/blob/main/apps/website/src/components/get-product-updates-dialog.tsx): `apps/website/src/components/get-product-updates-dialog.tsx`
- [Social image endpoint](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/api/og/route.tsx): `apps/website/src/app/api/og/route.tsx`
- [OG font loader](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/api/og/fonts.ts): `apps/website/src/app/api/og/fonts.ts`
- [Theme config endpoint](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(themer)/init/route.ts): `apps/website/src/app/(themer)/init/route.ts`
- [Theme preview](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(themer)/preview/%5Bname%5D/preview-client.tsx): `apps/website/src/app/(themer)/preview/[name]/preview-client.tsx`

### Design resources

- [Resource collections](https://github.com/radian-os/radianui/tree/main/apps/website/src/app/(resources)/resources): `apps/website/src/app/(resources)/resources`
- [Avatar playground](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(resources)/resources/(avatar)/components/AvatarPlayground.tsx): `apps/website/src/app/(resources)/resources/(avatar)/components/AvatarPlayground.tsx`
- [Emoji catalog](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(resources)/resources/(emoji)/components/EmojiResourcePage.tsx): `apps/website/src/app/(resources)/resources/(emoji)/components/EmojiResourcePage.tsx`
- [Flag catalog](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(resources)/resources/(flags)/components/FlagsResourcePage.tsx): `apps/website/src/app/(resources)/resources/(flags)/components/FlagsResourcePage.tsx`
- [Brand logo catalog](https://github.com/radian-os/radianui/blob/main/apps/website/src/app/(resources)/resources/(brand-logos)/components/BrandLogosResourcePage.tsx): `apps/website/src/app/(resources)/resources/(brand-logos)/components/BrandLogosResourcePage.tsx`

### Radian CLI

- [Project initialization](https://github.com/radian-os/radianui/blob/main/packages/cli/src/executor/init.ts): `packages/cli/src/executor/init.ts`
- [Add component or asset](https://github.com/radian-os/radianui/blob/main/packages/cli/src/commands/add-asset.ts): `packages/cli/src/commands/add-asset.ts`
- [Component search](https://github.com/radian-os/radianui/blob/main/packages/cli/src/commands/search.ts): `packages/cli/src/commands/search.ts`
- [CLI registry access](https://github.com/radian-os/radianui/blob/main/packages/cli/src/utils/registry.ts): `packages/cli/src/utils/registry.ts`
- [Source transform pipeline](https://github.com/radian-os/radianui/blob/main/packages/cli/src/utils/transformers/pipeline.ts): `packages/cli/src/utils/transformers/pipeline.ts`
- [Icon transformer](https://github.com/radian-os/radianui/blob/main/packages/cli/src/utils/transformers/transformIcon.ts): `packages/cli/src/utils/transformers/transformIcon.ts`

### Components and blocks

- [Component examples](https://github.com/radian-os/radianui/blob/main/apps/website/src/registry/blocks-example/preview-02/page.tsx): `apps/website/src/registry/blocks-example/preview-02/page.tsx`
- [Animated components](https://github.com/radian-os/radianui/blob/main/apps/website/src/registry/animated/draggable.tsx): `apps/website/src/registry/animated/draggable.tsx`

### Shared packages and starters

- [Country flags package](https://github.com/radian-os/radianui/blob/main/packages/country-flags/src/flag.tsx): `packages/country-flags/src/flag.tsx`
- [Vite starter app](https://github.com/radian-os/radianui/blob/main/templates/vite-app/src/App.tsx): `templates/vite-app/src/App.tsx`
- [Next.js starter page](https://github.com/radian-os/radianui/blob/main/templates/next-app/app/page.tsx): `templates/next-app/app/page.tsx`

### Other components

- **Project developer**
- **Configured project**

## Connections

- Project developer → Project initialization: initialize project (evidence: `README.md`)
- Project developer → Add component or asset: request component (evidence: `README.md`)
- Project developer → Component search: find components
- Project initialization → Configured project: create setup (evidence: `README.md`)
- Add component or asset → Configured project: copy source (evidence: `README.md`)
- Component search → CLI registry access: search catalog
- Source transform pipeline → Icon transformer: runs transformer (evidence: `packages/cli/src/utils/transformers/pipeline.ts`)
- Theme config endpoint → Theme preview: provides config
- Social image endpoint → OG font loader: loads fonts (evidence: `apps/website/src/app/api/og/route.tsx`)
- Product website → Raw docs endpoint: serves documentation
- Product website → Resource collections: offers resources (evidence: `README.md`)
- Project developer → Product website: browse docs (evidence: `README.md`)
- Project developer → Avatar playground: browse avatars (evidence: `README.md`)
- Project developer → Emoji catalog: browse emojis (evidence: `README.md`)
- Project developer → Flag catalog: browse flags (evidence: `README.md`)
- Project developer → Brand logo catalog: browse brand assets
- Project developer → Component examples: explore UI blocks (evidence: `README.md`)
- Project developer → Vite starter app: start Vite project (evidence: `README.md`)
- Project developer → Next.js starter page: start Next.js project (evidence: `README.md`)
