# caju-rocks/croqui architecture

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

- Interactive diagram: https://gitdiagram.com/caju-rocks/croqui
- Repository: https://github.com/caju-rocks/croqui

## Overview

This repository is a minimal Vite/React template that mounts tldraw as a full-screen drawing app. The browser loads the React entry point, which renders the app shell; that shell renders the tldraw editor. The entry point also imports the app’s stylesheet. The source excerpts show these connections; the README describes opening the app in a browser but does not document additional product features or integrations.

Main entry points: [`src/main.tsx`](https://github.com/caju-rocks/croqui/blob/main/src/main.tsx) (React entry), [`src/App.tsx`](https://github.com/caju-rocks/croqui/blob/main/src/App.tsx) (App shell), [`src/index.css`](https://github.com/caju-rocks/croqui/blob/main/src/index.css) (App styles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client app"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App shell<br/>[App.tsx]"]
  node_editor["tldraw editor"]
  node_styles["App styles<br/>[index.css]"]
end

node_browser_user(("Browser user"))

node_browser_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_editor
node_entry -->|"imports"| node_styles

click node_entry "https://github.com/caju-rocks/croqui/blob/main/src/main.tsx"
click node_app "https://github.com/caju-rocks/croqui/blob/main/src/App.tsx"
click node_styles "https://github.com/caju-rocks/croqui/blob/main/src/index.css"

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_app,node_editor,node_styles,node_browser_user toneBlue
```

## Components

### Client app

- [React entry](https://github.com/caju-rocks/croqui/blob/main/src/main.tsx): `src/main.tsx`
- [App shell](https://github.com/caju-rocks/croqui/blob/main/src/App.tsx): `src/App.tsx`
- **tldraw editor**
- [App styles](https://github.com/caju-rocks/croqui/blob/main/src/index.css): `src/index.css`

### Other components

- **Browser user**

## Connections

- Browser user → React entry: opens app (evidence: `README.md`)
- React entry → App shell: renders (evidence: `src/main.tsx`)
- App shell → tldraw editor: renders (evidence: `src/App.tsx`)
- React entry → App styles: imports (evidence: `src/main.tsx`)
