# davidhdev/react-bits architecture

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

- Interactive diagram: https://gitdiagram.com/davidhdev/react-bits
- Repository: https://github.com/davidhdev/react-bits

## Overview

React Bits is both a copy-ready React animation/component library and its catalog/documentation site. Visitors browse a category or search, inspect a component’s preview and implementation options, then copy or install a chosen variant; the site also offers Pro discovery and three creative tools. The graph follows the documented routes and sampled imports. Several page and tool implementations were not excerpted, so their internal calls are intentionally not inferred.

Main entry points: [`src/App.jsx`](https://github.com/davidhdev/react-bits/blob/main/src/App.jsx) (Route application), [`src/pages`](https://github.com/davidhdev/react-bits/tree/main/src/pages) (Component documentation), [`src/components/common/SearchDialog.jsx`](https://github.com/davidhdev/react-bits/blob/main/src/components/common/SearchDialog.jsx) (Catalog search), [`src/pages/ToolsPage.jsx`](https://github.com/davidhdev/react-bits/blob/main/src/pages/ToolsPage.jsx) (Tools directory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site experience"]
  node_app["Route application<br/>[App.jsx]"]
  node_landing["Landing page"]
  node_navigation["Site navigation<br/>[Navbar.jsx]"]
  node_providers["Shared providers<br/>[Providers.jsx]"]
end

subgraph group_catalog["Component catalog"]
  node_catalog_data["Category catalog<br/>[Categories.js]"]
  node_component_metadata["Component metadata<br/>[Information.js]"]
  node_component_library["React components"]
  node_variant_sources["Code variants"]
  node_component_docs["Component documentation"]
  node_code_examples["Install and code"]
  node_interactive_preview["Live customization"]
  node_search["Catalog search<br/>[SearchDialog.jsx]"]
end

subgraph group_tools["Creative tools"]
  node_tools_page["Tools directory<br/>[ToolsPage.jsx]"]
  node_background_studio["Background Studio"]
  node_background_registry["Background choices<br/>[index.js]"]
  node_shape_magic["Shape Magic"]
  node_texture_lab["Texture Lab"]
end

subgraph group_pro["Pro discovery"]
  node_pro_page["Pro showcase<br/>[ProPage.jsx]"]
  node_pro_catalog["Pro catalog<br/>[Pro.js]"]
  node_pro_search["Pro search<br/>[proSearch.js]"]
end

node_visitor(("Developer"))

node_visitor -->|"opens"| node_app
node_app -->|"wraps routes"| node_providers
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_component_docs
node_app -->|"routes to"| node_tools_page
node_app -->|"routes to"| node_pro_page
node_app -.->|"mounts dialog"| node_search
node_navigation -->|"reads categories"| node_catalog_data
node_navigation -.->|"opens search"| node_search
node_catalog_data -->|"builds catalog"| node_component_metadata
node_component_docs -->|"uses category routes"| node_catalog_data
node_component_docs -.->|"presents components"| node_component_library
node_component_docs -.->|"offers customization"| node_interactive_preview
node_component_docs -.->|"offers installation"| node_code_examples
node_code_examples -.->|"provides variants"| node_variant_sources
node_search -->|"searches categories"| node_catalog_data
node_search -->|"searches components"| node_component_metadata
node_search -->|"searches Pro catalog"| node_pro_search
node_pro_search -.->|"matches Pro entries"| node_pro_catalog
node_tools_page -->|"renders tool"| node_background_studio
node_tools_page -->|"renders tool"| node_shape_magic
node_tools_page -->|"renders tool"| node_texture_lab
node_background_studio -->|"loads choices"| node_background_registry
node_background_registry -->|"loads backgrounds"| node_component_library
node_pro_page -->|"shows Pro offers"| node_pro_catalog
node_pro_page -->|"uses site navigation"| node_navigation

click node_app "https://github.com/davidhdev/react-bits/blob/main/src/App.jsx"
click node_landing "https://github.com/davidhdev/react-bits/tree/main/src/components/landingnew"
click node_navigation "https://github.com/davidhdev/react-bits/blob/main/src/components/landingnew/Navbar/Navbar.jsx"
click node_providers "https://github.com/davidhdev/react-bits/blob/main/src/components/layout/Providers.jsx"
click node_catalog_data "https://github.com/davidhdev/react-bits/blob/main/src/constants/Categories.js"
click node_component_metadata "https://github.com/davidhdev/react-bits/blob/main/src/constants/Information.js"
click node_component_library "https://github.com/davidhdev/react-bits/tree/main/src/content"
click node_variant_sources "https://github.com/davidhdev/react-bits/tree/main/src/ts-default"
click node_component_docs "https://github.com/davidhdev/react-bits/tree/main/src/pages"
click node_code_examples "https://github.com/davidhdev/react-bits/tree/main/src/components/code"
click node_interactive_preview "https://github.com/davidhdev/react-bits/tree/main/src/components/common/Preview"
click node_search "https://github.com/davidhdev/react-bits/blob/main/src/components/common/SearchDialog.jsx"
click node_tools_page "https://github.com/davidhdev/react-bits/blob/main/src/pages/ToolsPage.jsx"
click node_background_studio "https://github.com/davidhdev/react-bits/blob/main/src/tools/background-studio/BackgroundStudio.jsx"
click node_background_registry "https://github.com/davidhdev/react-bits/blob/main/src/tools/background-studio/backgrounds/index.js"
click node_shape_magic "https://github.com/davidhdev/react-bits/tree/main/src/tools/shape-magic"
click node_texture_lab "https://github.com/davidhdev/react-bits/tree/main/src/tools/texture-lab"
click node_pro_page "https://github.com/davidhdev/react-bits/blob/main/src/pages/ProPage.jsx"
click node_pro_catalog "https://github.com/davidhdev/react-bits/blob/main/src/constants/Pro.js"
click node_pro_search "https://github.com/davidhdev/react-bits/blob/main/src/utils/proSearch.js"

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_app,node_landing,node_navigation,node_providers toneBlue
class node_catalog_data,node_component_metadata,node_component_library,node_variant_sources,node_component_docs,node_code_examples,node_interactive_preview,node_search toneAmber
class node_tools_page,node_background_studio,node_background_registry,node_shape_magic,node_texture_lab toneMint
class node_pro_page,node_pro_catalog,node_pro_search toneRose
class node_visitor toneIndigo
```

## Components

### Site experience

- [Route application](https://github.com/davidhdev/react-bits/blob/main/src/App.jsx): `src/App.jsx`
- [Landing page](https://github.com/davidhdev/react-bits/tree/main/src/components/landingnew): `src/components/landingnew`
- [Site navigation](https://github.com/davidhdev/react-bits/blob/main/src/components/landingnew/Navbar/Navbar.jsx): `src/components/landingnew/Navbar/Navbar.jsx`
- [Shared providers](https://github.com/davidhdev/react-bits/blob/main/src/components/layout/Providers.jsx): `src/components/layout/Providers.jsx`

### Component catalog

- [Category catalog](https://github.com/davidhdev/react-bits/blob/main/src/constants/Categories.js): `src/constants/Categories.js`
- [Component metadata](https://github.com/davidhdev/react-bits/blob/main/src/constants/Information.js): `src/constants/Information.js`
- [React components](https://github.com/davidhdev/react-bits/tree/main/src/content): `src/content`
- [Code variants](https://github.com/davidhdev/react-bits/tree/main/src/ts-default): `src/ts-default`
- [Component documentation](https://github.com/davidhdev/react-bits/tree/main/src/pages): `src/pages`
- [Install and code](https://github.com/davidhdev/react-bits/tree/main/src/components/code): `src/components/code`
- [Live customization](https://github.com/davidhdev/react-bits/tree/main/src/components/common/Preview): `src/components/common/Preview`
- [Catalog search](https://github.com/davidhdev/react-bits/blob/main/src/components/common/SearchDialog.jsx): `src/components/common/SearchDialog.jsx`

### Creative tools

- [Tools directory](https://github.com/davidhdev/react-bits/blob/main/src/pages/ToolsPage.jsx): `src/pages/ToolsPage.jsx`
- [Background Studio](https://github.com/davidhdev/react-bits/blob/main/src/tools/background-studio/BackgroundStudio.jsx): `src/tools/background-studio/BackgroundStudio.jsx`
- [Background choices](https://github.com/davidhdev/react-bits/blob/main/src/tools/background-studio/backgrounds/index.js): `src/tools/background-studio/backgrounds/index.js`
- [Shape Magic](https://github.com/davidhdev/react-bits/tree/main/src/tools/shape-magic): `src/tools/shape-magic`
- [Texture Lab](https://github.com/davidhdev/react-bits/tree/main/src/tools/texture-lab): `src/tools/texture-lab`

### Pro discovery

- [Pro showcase](https://github.com/davidhdev/react-bits/blob/main/src/pages/ProPage.jsx): `src/pages/ProPage.jsx`
- [Pro catalog](https://github.com/davidhdev/react-bits/blob/main/src/constants/Pro.js): `src/constants/Pro.js`
- [Pro search](https://github.com/davidhdev/react-bits/blob/main/src/utils/proSearch.js): `src/utils/proSearch.js`

### Other components

- **Developer**

## Connections

- Developer → Route application: opens
- Route application → Shared providers: wraps routes (evidence: `src/App.jsx`)
- Route application → Landing page: routes to (evidence: `src/App.jsx`)
- Route application → Component documentation: routes to (evidence: `src/App.jsx`)
- Route application → Tools directory: routes to (evidence: `src/App.jsx`)
- Route application → Pro showcase: routes to (evidence: `src/App.jsx`)
- Route application → Catalog search: mounts dialog
- Site navigation → Category catalog: reads categories (evidence: `src/components/landingnew/Navbar/Navbar.jsx`)
- Site navigation → Catalog search: opens search
- Category catalog → Component metadata: builds catalog (evidence: `src/constants/Categories.js`)
- Component documentation → Category catalog: uses category routes (evidence: `src/App.jsx`)
- Component documentation → React components: presents components (evidence: `src/pages/ProPage.jsx`)
- Component documentation → Live customization: offers customization
- Component documentation → Install and code: offers installation (evidence: `README.md`)
- Install and code → Code variants: provides variants (evidence: `README.md`)
- Catalog search → Category catalog: searches categories (evidence: `src/components/common/SearchDialog.jsx`)
- Catalog search → Component metadata: searches components (evidence: `src/components/common/SearchDialog.jsx`)
- Catalog search → Pro search: searches Pro catalog (evidence: `src/components/common/SearchDialog.jsx`)
- Pro search → Pro catalog: matches Pro entries
- Tools directory → Background Studio: renders tool (evidence: `src/pages/ToolsPage.jsx`)
- Tools directory → Shape Magic: renders tool (evidence: `src/pages/ToolsPage.jsx`)
- Tools directory → Texture Lab: renders tool (evidence: `src/pages/ToolsPage.jsx`)
- Background Studio → Background choices: loads choices (evidence: `src/tools/background-studio/backgrounds/index.js`)
- Background choices → React components: loads backgrounds (evidence: `src/tools/background-studio/backgrounds/index.js`)
- Pro showcase → Pro catalog: shows Pro offers (evidence: `src/pages/ProPage.jsx`)
- Pro showcase → Site navigation: uses site navigation (evidence: `src/pages/ProPage.jsx`)
