# akin-genc0/component-library architecture

> Architecture diagram of the GitHub repository akin-genc0/component-library, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/akin-genc0/component-library
- Repository: https://github.com/akin-genc0/component-library

## Overview

Looply is both a distributable neumorphic React component library and a Next.js showcase/documentation site. The user-facing path is to explore the showcase or a component’s documentation and demo, then use the package’s exported components in an application. The README’s component capabilities are represented as individual library nodes. Source excerpts establish the documentation/rendering and package-export relationships; unsampled app routes and integrations are omitted where their wiring cannot be verified.

Main entry points: [`component-library/src/index.ts`](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/index.ts) (Library exports), [`component-library/src/app/[slug]/page.tsx`](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/%5Bslug%5D/page.tsx) (Component docs), [`component-library/src/app/page.tsx`](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/page.tsx) (Showcase), [`component-library/src/components/chat.tsx`](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/chat.tsx) (Chat UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Showcase and docs"]
  node_home["Showcase<br/>[page.tsx]"]
  node_docsroute["Component docs<br/>[page.tsx]"]
  node_document["Docs template<br/>[Document.tsx]"]
  node_codeblock["Code block<br/>[CodeBlock.tsx]"]
end

subgraph group_library["Component library"]
  node_package["Library exports<br/>[index.ts]"]
  node_accordion["Accordion<br/>[accordion.tsx]"]
  node_barchart["Bar chart<br/>[barChart.tsx]"]
  node_buttons["Buttons<br/>[buttons.tsx]"]
  node_calendar["Calendar<br/>[calendar.tsx]"]
  node_callout["Callout card<br/>[calloutCard.tsx]"]
  node_card["Card<br/>[card.tsx]"]
  node_carousel["Carousel<br/>[carousel.tsx]"]
  node_chat["Chat UI<br/>[chat.tsx]"]
  node_drawer["Drawer<br/>[drawer.tsx]"]
  node_dropdown["Dropdown<br/>[dropDown.tsx]"]
  node_table["Table<br/>[table.tsx]"]
  node_textarea["Text area<br/>[textarea.tsx]"]
  node_toggle["Toggle<br/>[toggle.tsx]"]
end

subgraph group_services["App services"]
  node_auth["Auth config<br/>[authConfig.ts]"]
  node_dbclient["Prisma client<br/>[client.ts]"]
  node_chatapi["Chat API<br/>[route.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens showcase"| node_home
node_visitor -->|"opens component docs"| node_docsroute
node_home -->|"renders"| node_accordion
node_home -->|"renders"| node_barchart
node_home -->|"renders"| node_calendar
node_home -->|"renders"| node_callout
node_home -->|"renders"| node_chat
node_home -->|"renders"| node_table
node_home -->|"renders"| node_textarea
node_home -->|"renders"| node_toggle
node_docsroute -->|"renders docs"| node_document
node_docsroute -->|"renders examples"| node_codeblock
node_docsroute -->|"provides demo"| node_card
node_docsroute -->|"provides demo"| node_buttons
node_docsroute -->|"provides demo"| node_chat
node_docsroute -->|"provides demo"| node_accordion
node_docsroute -->|"provides demo"| node_carousel
node_docsroute -->|"provides demo"| node_drawer
node_docsroute -->|"provides demo"| node_dropdown
node_docsroute -->|"provides demo"| node_toggle
node_package -->|"exports"| node_accordion
node_package -->|"exports"| node_barchart
node_package -->|"exports"| node_buttons
node_package -->|"exports"| node_calendar
node_package -->|"exports"| node_callout
node_package -->|"exports"| node_card
node_package -->|"exports"| node_carousel
node_package -->|"exports"| node_chat
node_package -->|"exports"| node_drawer
node_package -->|"exports"| node_dropdown
node_package -->|"exports"| node_table
node_package -->|"exports"| node_textarea
node_package -->|"exports"| node_toggle
node_chat -->|"posts messages"| node_chatapi
node_auth -->|"configures adapter"| node_dbclient

click node_home "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/page.tsx"
click node_docsroute "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/%5Bslug%5D/page.tsx"
click node_document "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/local-components/Document.tsx"
click node_codeblock "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/local-components/CodeBlock.tsx"
click node_package "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/index.ts"
click node_accordion "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/accordion.tsx"
click node_barchart "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/barChart.tsx"
click node_buttons "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/buttons.tsx"
click node_calendar "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/calendar.tsx"
click node_callout "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/calloutCard.tsx"
click node_card "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/card.tsx"
click node_carousel "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/carousel.tsx"
click node_chat "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/chat.tsx"
click node_drawer "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/drawer.tsx"
click node_dropdown "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/dropDown.tsx"
click node_table "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/table.tsx"
click node_textarea "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/textarea.tsx"
click node_toggle "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/toggle.tsx"
click node_auth "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/authConfig.ts"
click node_dbclient "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/db/client.ts"
click node_chatapi "https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/api/chat/route.ts"

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_home,node_docsroute,node_document,node_codeblock toneBlue
class node_package,node_accordion,node_barchart,node_buttons,node_calendar,node_callout,node_card,node_carousel,node_chat,node_drawer,node_dropdown,node_table,node_textarea,node_toggle toneAmber
class node_auth,node_dbclient,node_chatapi toneMint
class node_visitor toneIndigo
```

## Components

### Showcase and docs

- [Showcase](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/page.tsx): `component-library/src/app/page.tsx`
- [Component docs](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/%5Bslug%5D/page.tsx): `component-library/src/app/[slug]/page.tsx`
- [Docs template](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/local-components/Document.tsx): `component-library/src/app/local-components/Document.tsx`
- [Code block](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/local-components/CodeBlock.tsx): `component-library/src/app/local-components/CodeBlock.tsx`

### Component library

- [Library exports](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/index.ts): `component-library/src/index.ts`
- [Accordion](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/accordion.tsx): `component-library/src/components/accordion.tsx`
- [Bar chart](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/barChart.tsx): `component-library/src/components/barChart.tsx`
- [Buttons](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/buttons.tsx): `component-library/src/components/buttons.tsx`
- [Calendar](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/calendar.tsx): `component-library/src/components/calendar.tsx`
- [Callout card](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/calloutCard.tsx): `component-library/src/components/calloutCard.tsx`
- [Card](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/card.tsx): `component-library/src/components/card.tsx`
- [Carousel](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/carousel.tsx): `component-library/src/components/carousel.tsx`
- [Chat UI](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/chat.tsx): `component-library/src/components/chat.tsx`
- [Drawer](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/drawer.tsx): `component-library/src/components/drawer.tsx`
- [Dropdown](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/dropDown.tsx): `component-library/src/components/dropDown.tsx`
- [Table](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/table.tsx): `component-library/src/components/table.tsx`
- [Text area](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/textarea.tsx): `component-library/src/components/textarea.tsx`
- [Toggle](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/components/toggle.tsx): `component-library/src/components/toggle.tsx`

### App services

- [Auth config](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/authConfig.ts): `component-library/src/authConfig.ts`
- [Prisma client](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/db/client.ts): `component-library/src/db/client.ts`
- [Chat API](https://github.com/akin-genc0/component-library/blob/develop/component-library/src/app/api/chat/route.ts): `component-library/src/app/api/chat/route.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Showcase: opens showcase (evidence: `component-library/src/app/page.tsx`)
- Site visitor → Component docs: opens component docs (evidence: `component-library/src/app/[slug]/page.tsx`)
- Showcase → Accordion: renders (evidence: `component-library/src/app/page.tsx`)
- Showcase → Bar chart: renders (evidence: `component-library/src/app/page.tsx`)
- Showcase → Calendar: renders (evidence: `component-library/src/app/page.tsx`)
- Showcase → Callout card: renders (evidence: `component-library/src/app/page.tsx`)
- Showcase → Chat UI: renders (evidence: `component-library/src/app/page.tsx`)
- Showcase → Table: renders (evidence: `component-library/src/app/page.tsx`)
- Showcase → Text area: renders (evidence: `component-library/src/app/page.tsx`)
- Showcase → Toggle: renders (evidence: `component-library/src/app/page.tsx`)
- Component docs → Docs template: renders docs (evidence: `component-library/src/app/[slug]/page.tsx`)
- Component docs → Code block: renders examples (evidence: `component-library/src/app/[slug]/page.tsx`)
- Component docs → Card: provides demo (evidence: `component-library/src/app/[slug]/page.tsx`)
- Component docs → Buttons: provides demo (evidence: `component-library/src/app/[slug]/page.tsx`)
- Component docs → Chat UI: provides demo (evidence: `component-library/src/app/[slug]/page.tsx`)
- Component docs → Accordion: provides demo (evidence: `component-library/src/app/[slug]/page.tsx`)
- Component docs → Carousel: provides demo (evidence: `component-library/src/app/[slug]/page.tsx`)
- Component docs → Drawer: provides demo (evidence: `component-library/src/app/[slug]/page.tsx`)
- Component docs → Dropdown: provides demo (evidence: `component-library/src/app/[slug]/page.tsx`)
- Component docs → Toggle: provides demo (evidence: `component-library/src/app/[slug]/page.tsx`)
- Library exports → Accordion: exports (evidence: `component-library/src/index.ts`)
- Library exports → Bar chart: exports (evidence: `component-library/src/index.ts`)
- Library exports → Buttons: exports (evidence: `component-library/src/index.ts`)
- Library exports → Calendar: exports (evidence: `component-library/src/index.ts`)
- Library exports → Callout card: exports (evidence: `component-library/src/index.ts`)
- Library exports → Card: exports (evidence: `component-library/src/index.ts`)
- Library exports → Carousel: exports (evidence: `component-library/src/index.ts`)
- Library exports → Chat UI: exports (evidence: `component-library/src/index.ts`)
- Library exports → Drawer: exports (evidence: `component-library/src/index.ts`)
- Library exports → Dropdown: exports (evidence: `component-library/src/index.ts`)
- Library exports → Table: exports (evidence: `component-library/src/index.ts`)
- Library exports → Text area: exports (evidence: `component-library/src/index.ts`)
- Library exports → Toggle: exports (evidence: `component-library/src/index.ts`)
- Chat UI → Chat API: posts messages (evidence: `component-library/src/components/chat.tsx`)
- Auth config → Prisma client: configures adapter (evidence: `component-library/src/authConfig.ts`)
