# ekmas/neobrutalism-components architecture

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

- Interactive diagram: https://gitdiagram.com/ekmas/neobrutalism-components
- Repository: https://github.com/ekmas/neobrutalism-components

## Overview

Neobrutalism Components is a React/Tailwind component library presented through a documentation and showcase site, with installable page templates. The main user journey is to browse a component or styling example, inspect its live preview and code, then use the provided installation command; separate pages showcase charts, decorative stars, and complete templates. The map covers the evidenced page-to-content relationships and major documented capabilities. Several template and registry internals were not sampled, so their connections are omitted where source evidence is unavailable.

Main entry points: [`src/app/(site)`](https://github.com/ekmas/neobrutalism-components/tree/main/src/app/(site)) (Docs pages), [`src/app/(site)/templates/page.tsx`](https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/templates/page.tsx) (Template catalog), [`src/components/app/component-preview.tsx`](https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/component-preview.tsx) (Live preview), [`src/app/(site)/styling/styling.tsx`](https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/styling/styling.tsx) (Styling guide)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_docs["Documentation site"]
  node_docs_pages["Docs pages"]
  node_page_shell["Page layout<br/>[page.tsx]"]
  node_preview["Live preview"]
  node_code_docs["Code and install docs<br/>[mdx-components.tsx]"]
  node_styling_page["Styling guide<br/>[styling.tsx]"]
  node_styling_customizer["Style customizer"]
end

subgraph group_library["Component library"]
  node_component_catalog["Component catalog<br/>[components.ts]"]
  node_ui_components["UI components"]
  node_star_data["Star examples<br/>[stars.ts]"]
  node_star_shapes["Star shapes"]
end

subgraph group_showcase["Examples and showcases"]
  node_star_gallery["Star gallery<br/>[stars-grid.tsx]"]
  node_charts_page["Charts showcase<br/>[page.tsx]"]
  node_chart_examples["Chart examples<br/>[charts.ts]"]
  node_showcase_page["Component showcase<br/>[page.tsx]"]
  node_showcase_content["Showcase display"]
end

subgraph group_templates["Page templates"]
  node_templates_page["Template catalog<br/>[page.tsx]"]
  node_template_install["Template installer"]
  node_template_content["Install dialog"]
  node_saas_template["SaaS landing page<br/>[page.tsx]"]
  node_dashboard_template["Dashboard template<br/>[dashboard.tsx]"]
end

node_visitor(("Site visitor"))
node_shadcn_cli{{"shadcn CLI"}}

node_visitor -->|"browses"| node_docs_pages
node_docs_pages -->|"uses layout"| node_page_shell
node_docs_pages -->|"opens gallery"| node_star_gallery
node_star_gallery -->|"reads examples"| node_star_data
node_star_data -->|"registers shapes"| node_star_shapes
node_docs_pages -->|"opens charts"| node_charts_page
node_charts_page -->|"renders examples"| node_chart_examples
node_docs_pages -->|"opens showcase"| node_showcase_page
node_showcase_page -->|"renders display"| node_showcase_content
node_docs_pages -->|"opens guide"| node_styling_page
node_styling_page -->|"uses customizer"| node_styling_customizer
node_docs_pages -->|"serves catalog"| node_component_catalog
node_component_catalog -->|"provides examples"| node_preview
node_preview -.->|"renders preview"| node_ui_components
node_code_docs -->|"renders previews"| node_preview
node_docs_pages -->|"opens templates"| node_templates_page
node_templates_page -->|"offers install"| node_template_install
node_template_install -->|"opens dialog"| node_template_content
node_template_content -.->|"guides installation"| node_shadcn_cli
node_templates_page -->|"links preview"| node_saas_template
node_templates_page -.->|"links preview"| node_dashboard_template
node_saas_template -.->|"uses components"| node_ui_components

click node_docs_pages "https://github.com/ekmas/neobrutalism-components/tree/main/src/app/(site)"
click node_page_shell "https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/page.tsx"
click node_component_catalog "https://github.com/ekmas/neobrutalism-components/blob/main/src/data/components.ts"
click node_preview "https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/component-preview.tsx"
click node_ui_components "https://github.com/ekmas/neobrutalism-components/tree/main/src/components/ui"
click node_code_docs "https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/mdx-components.tsx"
click node_styling_page "https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/styling/styling.tsx"
click node_styling_customizer "https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/styling-customizer.tsx"
click node_star_gallery "https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/stars/stars-grid.tsx"
click node_star_data "https://github.com/ekmas/neobrutalism-components/blob/main/src/data/stars.ts"
click node_star_shapes "https://github.com/ekmas/neobrutalism-components/tree/main/src/components/stars"
click node_charts_page "https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/charts/page.tsx"
click node_chart_examples "https://github.com/ekmas/neobrutalism-components/blob/main/src/data/charts.ts"
click node_showcase_page "https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/showcase/page.tsx"
click node_showcase_content "https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/showcase-container.tsx"
click node_templates_page "https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/templates/page.tsx"
click node_template_install "https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/templates/_components/install-template-btn.tsx"
click node_template_content "https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/template-install-content.tsx"
click node_saas_template "https://github.com/ekmas/neobrutalism-components/blob/main/src/app/templates/saas/page.tsx"
click node_dashboard_template "https://github.com/ekmas/neobrutalism-components/blob/main/src/components/templates/dashboard/dashboard.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_docs_pages,node_page_shell,node_preview,node_code_docs,node_styling_page,node_styling_customizer toneBlue
class node_component_catalog,node_ui_components,node_star_data,node_star_shapes toneAmber
class node_star_gallery,node_charts_page,node_chart_examples,node_showcase_page,node_showcase_content toneMint
class node_templates_page,node_template_install,node_template_content,node_saas_template,node_dashboard_template toneRose
class node_visitor,node_shadcn_cli toneIndigo
```

## Components

### Documentation site

- [Docs pages](https://github.com/ekmas/neobrutalism-components/tree/main/src/app/(site)): `src/app/(site)`
- [Page layout](https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/page.tsx): `src/components/app/page.tsx`
- [Live preview](https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/component-preview.tsx): `src/components/app/component-preview.tsx`
- [Code and install docs](https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/mdx-components.tsx): `src/components/app/mdx-components.tsx`
- [Styling guide](https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/styling/styling.tsx): `src/app/(site)/styling/styling.tsx`
- [Style customizer](https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/styling-customizer.tsx): `src/components/app/styling-customizer.tsx`

### Component library

- [Component catalog](https://github.com/ekmas/neobrutalism-components/blob/main/src/data/components.ts): `src/data/components.ts`
- [UI components](https://github.com/ekmas/neobrutalism-components/tree/main/src/components/ui): `src/components/ui`
- [Star examples](https://github.com/ekmas/neobrutalism-components/blob/main/src/data/stars.ts): `src/data/stars.ts`
- [Star shapes](https://github.com/ekmas/neobrutalism-components/tree/main/src/components/stars): `src/components/stars`

### Examples and showcases

- [Star gallery](https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/stars/stars-grid.tsx): `src/app/(site)/stars/stars-grid.tsx`
- [Charts showcase](https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/charts/page.tsx): `src/app/(site)/charts/page.tsx`
- [Chart examples](https://github.com/ekmas/neobrutalism-components/blob/main/src/data/charts.ts): `src/data/charts.ts`
- [Component showcase](https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/showcase/page.tsx): `src/app/(site)/showcase/page.tsx`
- [Showcase display](https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/showcase-container.tsx): `src/components/app/showcase-container.tsx`

### Page templates

- [Template catalog](https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/templates/page.tsx): `src/app/(site)/templates/page.tsx`
- [Template installer](https://github.com/ekmas/neobrutalism-components/blob/main/src/app/(site)/templates/_components/install-template-btn.tsx): `src/app/(site)/templates/_components/install-template-btn.tsx`
- [Install dialog](https://github.com/ekmas/neobrutalism-components/blob/main/src/components/app/template-install-content.tsx): `src/components/app/template-install-content.tsx`
- [SaaS landing page](https://github.com/ekmas/neobrutalism-components/blob/main/src/app/templates/saas/page.tsx): `src/app/templates/saas/page.tsx`
- [Dashboard template](https://github.com/ekmas/neobrutalism-components/blob/main/src/components/templates/dashboard/dashboard.tsx): `src/components/templates/dashboard/dashboard.tsx`

### Other components

- **Site visitor**
- **shadcn CLI**

## Connections

- Site visitor → Docs pages: browses (evidence: `README.md`)
- Docs pages → Page layout: uses layout (evidence: `src/app/(site)/charts/page.tsx`)
- Docs pages → Star gallery: opens gallery (evidence: `src/app/(site)/stars/page.tsx`)
- Star gallery → Star examples: reads examples (evidence: `src/app/(site)/stars/stars-grid.tsx`)
- Star examples → Star shapes: registers shapes (evidence: `src/data/stars.ts`)
- Docs pages → Charts showcase: opens charts (evidence: `src/app/(site)/charts/page.tsx`)
- Charts showcase → Chart examples: renders examples
- Docs pages → Component showcase: opens showcase (evidence: `src/app/(site)/showcase/page.tsx`)
- Component showcase → Showcase display: renders display (evidence: `src/app/(site)/showcase/page.tsx`)
- Docs pages → Styling guide: opens guide (evidence: `src/app/(site)/styling/page.tsx`)
- Styling guide → Style customizer: uses customizer (evidence: `src/app/(site)/styling/styling.tsx`)
- Docs pages → Component catalog: serves catalog (evidence: `src/app/(site)/page.tsx`)
- Component catalog → Live preview: provides examples (evidence: `src/components/app/component-preview.tsx`)
- Live preview → UI components: renders preview
- Code and install docs → Live preview: renders previews (evidence: `src/components/app/mdx-components.tsx`)
- Docs pages → Template catalog: opens templates (evidence: `src/app/(site)/templates/page.tsx`)
- Template catalog → Template installer: offers install (evidence: `src/app/(site)/templates/page.tsx`)
- Template installer → Install dialog: opens dialog (evidence: `src/app/(site)/templates/_components/install-template-btn.tsx`)
- Install dialog → shadcn CLI: guides installation
- Template catalog → SaaS landing page: links preview (evidence: `src/app/(site)/templates/page.tsx`)
- Template catalog → Dashboard template: links preview
- SaaS landing page → UI components: uses components
