# shivam10yadav/motionblocks architecture

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

- Interactive diagram: https://gitdiagram.com/shivam10yadav/motionblocks
- Repository: https://github.com/shivam10yadav/motionblocks

## Overview

MotionBlocks is a React-based component gallery and copy-and-paste library. A visitor enters through the routed app, browses the catalog, opens a component detail or live preview, and can copy its source and dependency guidance. Separate routes provide design resources, documentation, and contribution information. The route map and several imports are evidenced in excerpts or the source index; some resource-page behavior is unsampled, so those branches are represented without speculative internal flows.

Main entry points: [`frontend/src/App.jsx`](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/App.jsx) (Route App), [`frontend/src/data/components.js`](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/components.js) (Component Catalog), [`frontend/src/localcomponents/ComponentsDetails.jsx`](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/localcomponents/ComponentsDetails.jsx) (Component Details), [`frontend/src/main.jsx`](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/main.jsx) (React Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_entry["React Entry<br/>[main.jsx]"]
  node_router["Route App<br/>[App.jsx]"]
  node_landing["Landing Page<br/>[Landing.jsx]"]
end

subgraph group_catalog["Component Discovery"]
  node_catalogpage["Component Gallery<br/>[components.jsx]"]
  node_catalogdata["Component Catalog<br/>[components.js]"]
  node_detail["Component Details"]
  node_preview["Live Preview"]
  node_sourceview["Code Highlighting<br/>[Highlighter.js]"]
end

subgraph group_library["UI Component Library"]
  node_examples["UI Examples"]
  node_auth["Auth Components<br/>[AnimatedAuth.jsx]"]
  node_calendar["Calendar Component"]
end

subgraph group_resources["Design Resources"]
  node_colorpage["Color Palettes"]
  node_palettes["Palette Data<br/>[Palettes.js]"]
  node_gradientpage["Gradient Generator"]
  node_gradientdata["Gradient Data<br/>[gradients.js]"]
  node_fonts["Fonts Page<br/>[FontsPage.jsx]"]
  node_fontdata["Font Data<br/>[fonts.js]"]
  node_logos["Logos Page<br/>[LogosPage.jsx]"]
  node_logodata["Logo Data<br/>[logos.js]"]
  node_sounds["UI Sounds<br/>[UiSoundsPage.jsx]"]
  node_sounddata["Sound Data<br/>[sounds.js]"]
end

subgraph group_guidance["Docs and Contribution"]
  node_docs["Documentation<br/>[DocsPage.jsx]"]
  node_contribute["Contribute<br/>[Contribute.jsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens app"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"routes to"| node_landing
node_router -->|"routes to"| node_catalogpage
node_router -->|"routes to"| node_detail
node_router -->|"routes to"| node_preview
node_router -->|"routes to"| node_colorpage
node_router -->|"routes to"| node_gradientpage
node_router -->|"routes to"| node_fonts
node_router -->|"routes to"| node_logos
node_router -->|"routes to"| node_sounds
node_router -->|"routes to"| node_docs
node_router -->|"routes to"| node_contribute
node_detail -->|"reads entries"| node_catalogdata
node_detail -->|"uses"| node_sourceview
node_preview -->|"finds preview"| node_catalogdata
node_catalogdata -->|"registers examples"| node_examples
node_catalogdata -->|"registers example"| node_auth
node_catalogdata -.->|"registers example"| node_calendar
node_colorpage -->|"reads palettes"| node_palettes
node_gradientpage -->|"reads gradients"| node_gradientdata
node_fonts -->|"reads fonts"| node_fontdata
node_logos -->|"reads logos"| node_logodata
node_sounds -.->|"uses sound data"| node_sounddata

click node_entry "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/main.jsx"
click node_router "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/App.jsx"
click node_landing "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/landing/Landing.jsx"
click node_catalogpage "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/components.jsx"
click node_catalogdata "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/components.js"
click node_detail "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/localcomponents/ComponentsDetails.jsx"
click node_preview "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/ComponentPreviewPage.jsx"
click node_sourceview "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/lib/Highlighter.js"
click node_examples "https://github.com/shivam10yadav/motionblocks/tree/main/frontend/src/ui"
click node_auth "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/ui/auth/AnimatedAuth.jsx"
click node_calendar "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/ui/calender/AnimatedCalendar.jsx"
click node_colorpage "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/ColorPalletesPage.jsx"
click node_palettes "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/Palettes.js"
click node_gradientpage "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/BackgroundGradientGenerator.jsx"
click node_gradientdata "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/gradients.js"
click node_fonts "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/FontsPage.jsx"
click node_fontdata "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/fonts.js"
click node_logos "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/LogosPage.jsx"
click node_logodata "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/logos.js"
click node_sounds "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/UiSoundsPage.jsx"
click node_sounddata "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/sounds.js"
click node_docs "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/DocsPage.jsx"
click node_contribute "https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/Contribute.jsx"

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_entry,node_router,node_landing toneBlue
class node_catalogpage,node_catalogdata,node_detail,node_preview,node_sourceview toneAmber
class node_examples,node_auth,node_calendar toneMint
class node_colorpage,node_palettes,node_gradientpage,node_gradientdata,node_fonts,node_fontdata,node_logos,node_logodata,node_sounds,node_sounddata toneRose
class node_docs,node_contribute,node_visitor toneIndigo
```

## Components

### Application Shell

- [React Entry](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [Route App](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Landing Page](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/landing/Landing.jsx): `frontend/src/pages/landing/Landing.jsx`

### Component Discovery

- [Component Gallery](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/components.jsx): `frontend/src/pages/components.jsx`
- [Component Catalog](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/components.js): `frontend/src/data/components.js`
- [Component Details](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/localcomponents/ComponentsDetails.jsx): `frontend/src/localcomponents/ComponentsDetails.jsx`
- [Live Preview](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/ComponentPreviewPage.jsx): `frontend/src/pages/ComponentPreviewPage.jsx`
- [Code Highlighting](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/lib/Highlighter.js): `frontend/src/lib/Highlighter.js`

### UI Component Library

- [UI Examples](https://github.com/shivam10yadav/motionblocks/tree/main/frontend/src/ui): `frontend/src/ui`
- [Auth Components](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/ui/auth/AnimatedAuth.jsx): `frontend/src/ui/auth/AnimatedAuth.jsx`
- [Calendar Component](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/ui/calender/AnimatedCalendar.jsx): `frontend/src/ui/calender/AnimatedCalendar.jsx`

### Design Resources

- [Color Palettes](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/ColorPalletesPage.jsx): `frontend/src/pages/ColorPalletesPage.jsx`
- [Palette Data](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/Palettes.js): `frontend/src/data/Palettes.js`
- [Gradient Generator](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/BackgroundGradientGenerator.jsx): `frontend/src/pages/BackgroundGradientGenerator.jsx`
- [Gradient Data](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/gradients.js): `frontend/src/data/gradients.js`
- [Fonts Page](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/FontsPage.jsx): `frontend/src/pages/FontsPage.jsx`
- [Font Data](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/fonts.js): `frontend/src/data/fonts.js`
- [Logos Page](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/LogosPage.jsx): `frontend/src/pages/LogosPage.jsx`
- [Logo Data](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/logos.js): `frontend/src/data/logos.js`
- [UI Sounds](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/UiSoundsPage.jsx): `frontend/src/pages/UiSoundsPage.jsx`
- [Sound Data](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/data/sounds.js): `frontend/src/data/sounds.js`

### Docs and Contribution

- [Documentation](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/DocsPage.jsx): `frontend/src/pages/DocsPage.jsx`
- [Contribute](https://github.com/shivam10yadav/motionblocks/blob/main/frontend/src/pages/Contribute.jsx): `frontend/src/pages/Contribute.jsx`

### Other components

- **Visitor**

## Connections

- Visitor → React Entry: opens app
- React Entry → Route App: renders (evidence: `frontend/src/main.jsx`)
- Route App → Landing Page: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Component Gallery: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Component Details: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Live Preview: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Color Palettes: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Gradient Generator: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Fonts Page: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Logos Page: routes to (evidence: `frontend/src/App.jsx`)
- Route App → UI Sounds: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Documentation: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Contribute: routes to (evidence: `frontend/src/App.jsx`)
- Component Details → Component Catalog: reads entries (evidence: `frontend/src/localcomponents/ComponentsDetails.jsx`)
- Component Details → Code Highlighting: uses (evidence: `frontend/src/localcomponents/ComponentsDetails.jsx`)
- Live Preview → Component Catalog: finds preview (evidence: `frontend/src/pages/ComponentPreviewPage.jsx`)
- Component Catalog → UI Examples: registers examples (evidence: `frontend/src/data/components.js`)
- Component Catalog → Auth Components: registers example (evidence: `frontend/src/data/components.js`)
- Component Catalog → Calendar Component: registers example (evidence: `frontend/src/data/components.js`)
- Color Palettes → Palette Data: reads palettes (evidence: `frontend/src/pages/ColorPalletesPage.jsx`)
- Gradient Generator → Gradient Data: reads gradients (evidence: `frontend/src/pages/BackgroundGradientGenerator.jsx`)
- Fonts Page → Font Data: reads fonts (evidence: `frontend/src/pages/FontsPage.jsx`)
- Logos Page → Logo Data: reads logos (evidence: `frontend/src/pages/LogosPage.jsx`)
- UI Sounds → Sound Data: uses sound data
