# gendotnew/attempt architecture

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

- Interactive diagram: https://gitdiagram.com/gendotnew/attempt
- Repository: https://github.com/gendotnew/attempt

## Overview

Learn Anything is a web application for organizing knowledge, exploring topic connections, and curating learning paths. The user-facing map includes landing-page graph exploration, topic and search routes, authentication, and a protected personal workspace for pages, links, tasks, journals, and learning topics. The workspace schema models user-owned content; two rich-text editor implementations provide editing capabilities. Evidence is limited to the README, tree, and sampled files, so only visible route wiring and sampled editor dependencies are linked; unsampled feature-to-data flows are left unasserted.

Main entry points: [`web/app/routeTree.gen.ts`](https://github.com/gendotnew/attempt/blob/main/web/app/routeTree.gen.ts) (Route Registry), [`web/shared/editor/hooks/use-la-editor.ts`](https://github.com/gendotnew/attempt/blob/main/web/shared/editor/hooks/use-la-editor.ts) (La Editor Hook), [`web/app/client.tsx`](https://github.com/gendotnew/attempt/blob/main/web/app/client.tsx) (Web Client), [`web/app/router.tsx`](https://github.com/gendotnew/attempt/blob/main/web/app/router.tsx) (Application Router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Web Navigation"]
  node_client["Web Client<br/>[client.tsx]"]
  node_router["Application Router<br/>[router.tsx]"]
  node_routes["Route Registry<br/>[routeTree.gen.ts]"]
  node_auth["Sign In / Up"]
end

subgraph group_exploration["Knowledge Exploration"]
  node_landing["Knowledge Landing<br/>[index.tsx]"]
  node_graph["Topic Force Graph"]
  node_topic["Topic Pages<br/>[$.tsx]"]
  node_search["Topic Search<br/>[index.tsx]"]
end

subgraph group_workspace["Personal Workspace"]
  node_workspace["Protected Workspace"]
  node_personal_content["Personal Content"]
  node_links_tasks["Links and Tasks"]
  node_journals_topics["Journals and Topics"]
  node_schema["User Data Model<br/>[index.ts]"]
end

subgraph group_editing["Rich Text Editing"]
  node_editor["La Editor Hook<br/>[use-la-editor.ts]"]
  node_file_handler["Editor File Handler<br/>[index.ts]"]
  node_minimal_editor["Minimal Tiptap UI<br/>[minimal-tiptap.tsx]"]
  node_editor_utils["Editor Utilities<br/>[index.ts]"]
  node_actions["Image Actions<br/>[actions.ts]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens"| node_client
node_client -->|"creates"| node_router
node_router -->|"uses"| node_routes
node_routes -->|"routes to"| node_landing
node_routes -->|"routes to"| node_auth
node_routes -->|"routes to"| node_topic
node_routes -->|"routes to"| node_search
node_landing -.->|"renders"| node_graph
node_editor -->|"configures"| node_file_handler
node_editor -->|"uses"| node_editor_utils
node_editor -->|"calls"| node_actions
node_minimal_editor -.->|"uses"| node_editor_utils

click node_client "https://github.com/gendotnew/attempt/blob/main/web/app/client.tsx"
click node_router "https://github.com/gendotnew/attempt/blob/main/web/app/router.tsx"
click node_routes "https://github.com/gendotnew/attempt/blob/main/web/app/routeTree.gen.ts"
click node_auth "https://github.com/gendotnew/attempt/blob/main/web/app/routes/_layout/(auth)/_auth.sign-in.%24.tsx"
click node_landing "https://github.com/gendotnew/attempt/blob/main/web/app/routes/_layout/(landing)/index.tsx"
click node_graph "https://github.com/gendotnew/attempt/blob/main/web/app/routes/_layout/(landing)/-components/force-graph-client.tsx"
click node_topic "https://github.com/gendotnew/attempt/blob/main/web/app/routes/_layout/_pages/(topic)/%24.tsx"
click node_search "https://github.com/gendotnew/attempt/blob/main/web/app/routes/_layout/_pages/search/index.tsx"
click node_workspace "https://github.com/gendotnew/attempt/tree/main/web/app/routes/_layout/_pages/_protected"
click node_personal_content "https://github.com/gendotnew/attempt/tree/main/web/app/routes/_layout/_pages/_protected/pages"
click node_links_tasks "https://github.com/gendotnew/attempt/tree/main/web/app/routes/_layout/_pages/_protected/links"
click node_journals_topics "https://github.com/gendotnew/attempt/tree/main/web/app/routes/_layout/_pages/_protected/journals"
click node_schema "https://github.com/gendotnew/attempt/blob/main/web/app/lib/schema/index.ts"
click node_editor "https://github.com/gendotnew/attempt/blob/main/web/shared/editor/hooks/use-la-editor.ts"
click node_file_handler "https://github.com/gendotnew/attempt/blob/main/web/shared/editor/extensions/file-handler/index.ts"
click node_minimal_editor "https://github.com/gendotnew/attempt/blob/main/web/shared/minimal-tiptap/minimal-tiptap.tsx"
click node_editor_utils "https://github.com/gendotnew/attempt/blob/main/web/shared/editor/lib/utils/index.ts"
click node_actions "https://github.com/gendotnew/attempt/blob/main/web/shared/actions.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_client,node_router,node_routes,node_auth toneBlue
class node_landing,node_graph,node_topic,node_search toneAmber
class node_workspace,node_personal_content,node_links_tasks,node_journals_topics,node_schema toneMint
class node_editor,node_file_handler,node_minimal_editor,node_editor_utils,node_actions toneRose
class node_visitor toneIndigo
```

## Components

### Web Navigation

- [Web Client](https://github.com/gendotnew/attempt/blob/main/web/app/client.tsx): `web/app/client.tsx`
- [Application Router](https://github.com/gendotnew/attempt/blob/main/web/app/router.tsx): `web/app/router.tsx`
- [Route Registry](https://github.com/gendotnew/attempt/blob/main/web/app/routeTree.gen.ts): `web/app/routeTree.gen.ts`
- [Sign In / Up](https://github.com/gendotnew/attempt/blob/main/web/app/routes/_layout/(auth)/_auth.sign-in.%24.tsx): `web/app/routes/_layout/(auth)/_auth.sign-in.$.tsx`

### Knowledge Exploration

- [Knowledge Landing](https://github.com/gendotnew/attempt/blob/main/web/app/routes/_layout/(landing)/index.tsx): `web/app/routes/_layout/(landing)/index.tsx`
- [Topic Force Graph](https://github.com/gendotnew/attempt/blob/main/web/app/routes/_layout/(landing)/-components/force-graph-client.tsx): `web/app/routes/_layout/(landing)/-components/force-graph-client.tsx`
- [Topic Pages](https://github.com/gendotnew/attempt/blob/main/web/app/routes/_layout/_pages/(topic)/%24.tsx): `web/app/routes/_layout/_pages/(topic)/$.tsx`
- [Topic Search](https://github.com/gendotnew/attempt/blob/main/web/app/routes/_layout/_pages/search/index.tsx): `web/app/routes/_layout/_pages/search/index.tsx`

### Personal Workspace

- [Protected Workspace](https://github.com/gendotnew/attempt/tree/main/web/app/routes/_layout/_pages/_protected): `web/app/routes/_layout/_pages/_protected`
- [Personal Content](https://github.com/gendotnew/attempt/tree/main/web/app/routes/_layout/_pages/_protected/pages): `web/app/routes/_layout/_pages/_protected/pages`
- [Links and Tasks](https://github.com/gendotnew/attempt/tree/main/web/app/routes/_layout/_pages/_protected/links): `web/app/routes/_layout/_pages/_protected/links`
- [Journals and Topics](https://github.com/gendotnew/attempt/tree/main/web/app/routes/_layout/_pages/_protected/journals): `web/app/routes/_layout/_pages/_protected/journals`
- [User Data Model](https://github.com/gendotnew/attempt/blob/main/web/app/lib/schema/index.ts): `web/app/lib/schema/index.ts`

### Rich Text Editing

- [La Editor Hook](https://github.com/gendotnew/attempt/blob/main/web/shared/editor/hooks/use-la-editor.ts): `web/shared/editor/hooks/use-la-editor.ts`
- [Editor File Handler](https://github.com/gendotnew/attempt/blob/main/web/shared/editor/extensions/file-handler/index.ts): `web/shared/editor/extensions/file-handler/index.ts`
- [Minimal Tiptap UI](https://github.com/gendotnew/attempt/blob/main/web/shared/minimal-tiptap/minimal-tiptap.tsx): `web/shared/minimal-tiptap/minimal-tiptap.tsx`
- [Editor Utilities](https://github.com/gendotnew/attempt/blob/main/web/shared/editor/lib/utils/index.ts): `web/shared/editor/lib/utils/index.ts`
- [Image Actions](https://github.com/gendotnew/attempt/blob/main/web/shared/actions.ts): `web/shared/actions.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Web Client: opens
- Web Client → Application Router: creates (evidence: `web/app/client.tsx`)
- Application Router → Route Registry: uses (evidence: `web/app/router.tsx`)
- Route Registry → Knowledge Landing: routes to (evidence: `web/app/routeTree.gen.ts`)
- Route Registry → Sign In / Up: routes to (evidence: `web/app/routeTree.gen.ts`)
- Route Registry → Topic Pages: routes to (evidence: `web/app/routeTree.gen.ts`)
- Route Registry → Topic Search: routes to (evidence: `web/app/routeTree.gen.ts`)
- Knowledge Landing → Topic Force Graph: renders
- La Editor Hook → Editor File Handler: configures (evidence: `web/shared/editor/hooks/use-la-editor.ts`)
- La Editor Hook → Editor Utilities: uses (evidence: `web/shared/editor/hooks/use-la-editor.ts`)
- La Editor Hook → Image Actions: calls (evidence: `web/shared/editor/hooks/use-la-editor.ts`)
- Minimal Tiptap UI → Editor Utilities: uses
