# varunteja007006/buildio architecture

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

- Interactive diagram: https://gitdiagram.com/varunteja007006/buildio
- Repository: https://github.com/varunteja007006/buildio

## Overview

Buildio.pro is a portfolio of small apps in a monorepo, rather than one shared product workflow. The catalog describes the apps and their capabilities; the tree also exposes implementations for Billezy, Book, Cortex, and game-backend features. Cortex’s sampled chat route shows authentication, workspace and agent context, attachment handling, guardrails, and message persistence. Other feature connections are kept dashed where the tree or catalog indicates a capability but sampled source does not establish its runtime wiring.

Main entry points: [`buildio_pro/packages/ui/src/apps.ts`](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/packages/ui/src/apps.ts) (App catalog), [`buildio_pro/apps/cortex-ai/app/api/chat/route.ts`](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts) (Chat endpoint), [`buildio_pro/apps/cortex-ai/app/api/documents/route.ts`](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/documents/route.ts) (Document library), [`buildio_pro/apps/billezy`](https://github.com/varunteja007006/buildio/tree/main/buildio_pro/apps/billezy) (Billezy bills)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["App portfolio"]
  node_catalog["App catalog<br/>[apps.ts]"]
  node_billezy["Billezy bills"]
  node_book["Book library"]
  node_cortex_app["Cortex assistant"]
  node_expense["Expense tracker"]
  node_game_apps["Games"]
end

subgraph group_cortex["Cortex AI"]
  node_chat_api["Chat endpoint<br/>[route.ts]"]
  node_identity["User and workspace<br/>[route.ts]"]
  node_agent_context["Agent context<br/>[route.ts]"]
  node_chat_safety["Chat guardrails<br/>[route.ts]"]
  node_chat_history[("Chat history<br/>[route.ts]")]
  node_documents["Document library<br/>[route.ts]"]
  node_ingestion["Document ingestion<br/>[route.ts]"]
  node_extraction["Extraction workflows<br/>[route.ts]"]
  node_connections["Data connections<br/>[route.ts]"]
end

subgraph group_billezy_book["Personal tools"]
  node_bill_math["Bill calculations<br/>[billMath.ts]"]
  node_book_notes["Books and notes<br/>[book-editor.tsx]"]
end

subgraph group_games["Games backend"]
  node_link_preview["Wishlist previews<br/>[linkPreview.ts]"]
  node_convex_functions["Convex functions<br/>[server.js]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"browses"| node_catalog
node_catalog -->|"lists"| node_billezy
node_catalog -->|"lists"| node_book
node_catalog -->|"lists"| node_cortex_app
node_catalog -->|"lists"| node_expense
node_catalog -->|"lists"| node_game_apps
node_chat_api -->|"checks access"| node_identity
node_chat_api -->|"loads context"| node_agent_context
node_chat_api -->|"scans query"| node_chat_safety
node_chat_api -->|"persists messages"| node_chat_history
node_documents -.->|"may feed"| node_ingestion
node_documents -.->|"may feed"| node_extraction
node_connections -.->|"may provide tools"| node_agent_context
node_billezy -.->|"may use"| node_bill_math
node_game_apps -.->|"provides"| node_link_preview
node_link_preview -->|"uses"| node_convex_functions
node_book -.->|"includes"| node_book_notes

click node_catalog "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/packages/ui/src/apps.ts"
click node_billezy "https://github.com/varunteja007006/buildio/tree/main/buildio_pro/apps/billezy"
click node_book "https://github.com/varunteja007006/buildio/tree/main/buildio_pro/apps/book"
click node_cortex_app "https://github.com/varunteja007006/buildio/tree/main/buildio_pro/apps/cortex-ai"
click node_expense "https://github.com/varunteja007006/buildio/tree/main/buildio_pro/apps/expense-tracker"
click node_game_apps "https://github.com/varunteja007006/buildio/tree/main/buildio_pro/packages/games-convex-backend"
click node_chat_api "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts"
click node_identity "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts"
click node_agent_context "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts"
click node_chat_safety "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts"
click node_chat_history "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts"
click node_documents "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/documents/route.ts"
click node_ingestion "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/ingest/route.ts"
click node_extraction "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/extraction/route.ts"
click node_connections "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/connections/route.ts"
click node_bill_math "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/packages/games-convex-backend/convex/lib/billMath.ts"
click node_book_notes "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/book/components/notes/book-editor.tsx"
click node_link_preview "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/packages/games-convex-backend/convex/linkPreview.ts"
click node_convex_functions "https://github.com/varunteja007006/buildio/blob/main/buildio_pro/packages/games-convex-backend/convex/_generated/server.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_catalog,node_billezy,node_book,node_cortex_app,node_expense,node_game_apps toneBlue
class node_chat_api,node_identity,node_agent_context,node_chat_safety,node_chat_history,node_documents,node_ingestion,node_extraction,node_connections toneAmber
class node_bill_math,node_book_notes toneMint
class node_link_preview,node_convex_functions toneRose
class node_visitor toneIndigo
```

## Components

### App portfolio

- [App catalog](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/packages/ui/src/apps.ts): `buildio_pro/packages/ui/src/apps.ts`
- [Billezy bills](https://github.com/varunteja007006/buildio/tree/main/buildio_pro/apps/billezy): `buildio_pro/apps/billezy`
- [Book library](https://github.com/varunteja007006/buildio/tree/main/buildio_pro/apps/book): `buildio_pro/apps/book`
- [Cortex assistant](https://github.com/varunteja007006/buildio/tree/main/buildio_pro/apps/cortex-ai): `buildio_pro/apps/cortex-ai`
- [Expense tracker](https://github.com/varunteja007006/buildio/tree/main/buildio_pro/apps/expense-tracker): `buildio_pro/apps/expense-tracker`
- [Games](https://github.com/varunteja007006/buildio/tree/main/buildio_pro/packages/games-convex-backend): `buildio_pro/packages/games-convex-backend`

### Cortex AI

- [Chat endpoint](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts): `buildio_pro/apps/cortex-ai/app/api/chat/route.ts`
- [User and workspace](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts): `buildio_pro/apps/cortex-ai/app/api/chat/route.ts`
- [Agent context](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts): `buildio_pro/apps/cortex-ai/app/api/chat/route.ts`
- [Chat guardrails](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts): `buildio_pro/apps/cortex-ai/app/api/chat/route.ts`
- [Chat history](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/chat/route.ts): `buildio_pro/apps/cortex-ai/app/api/chat/route.ts`
- [Document library](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/documents/route.ts): `buildio_pro/apps/cortex-ai/app/api/documents/route.ts`
- [Document ingestion](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/ingest/route.ts): `buildio_pro/apps/cortex-ai/app/api/ingest/route.ts`
- [Extraction workflows](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/extraction/route.ts): `buildio_pro/apps/cortex-ai/app/api/extraction/route.ts`
- [Data connections](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/cortex-ai/app/api/connections/route.ts): `buildio_pro/apps/cortex-ai/app/api/connections/route.ts`

### Personal tools

- [Bill calculations](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/packages/games-convex-backend/convex/lib/billMath.ts): `buildio_pro/packages/games-convex-backend/convex/lib/billMath.ts`
- [Books and notes](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/apps/book/components/notes/book-editor.tsx): `buildio_pro/apps/book/components/notes/book-editor.tsx`

### Games backend

- [Wishlist previews](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/packages/games-convex-backend/convex/linkPreview.ts): `buildio_pro/packages/games-convex-backend/convex/linkPreview.ts`
- [Convex functions](https://github.com/varunteja007006/buildio/blob/main/buildio_pro/packages/games-convex-backend/convex/_generated/server.js): `buildio_pro/packages/games-convex-backend/convex/_generated/server.js`

### Other components

- **Visitor**

## Connections

- Visitor → App catalog: browses
- App catalog → Billezy bills: lists (evidence: `buildio_pro/packages/ui/src/apps.ts`)
- App catalog → Book library: lists (evidence: `buildio_pro/packages/ui/src/apps.ts`)
- App catalog → Cortex assistant: lists (evidence: `buildio_pro/packages/ui/src/apps.ts`)
- App catalog → Expense tracker: lists (evidence: `buildio_pro/packages/ui/src/apps.ts`)
- App catalog → Games: lists (evidence: `buildio_pro/packages/ui/src/apps.ts`)
- Chat endpoint → User and workspace: checks access (evidence: `buildio_pro/apps/cortex-ai/app/api/chat/route.ts`)
- Chat endpoint → Agent context: loads context (evidence: `buildio_pro/apps/cortex-ai/app/api/chat/route.ts`)
- Chat endpoint → Chat guardrails: scans query (evidence: `buildio_pro/apps/cortex-ai/app/api/chat/route.ts`)
- Chat endpoint → Chat history: persists messages (evidence: `buildio_pro/apps/cortex-ai/app/api/chat/route.ts`)
- Document library → Document ingestion: may feed
- Document library → Extraction workflows: may feed
- Data connections → Agent context: may provide tools
- Billezy bills → Bill calculations: may use
- Games → Wishlist previews: provides (evidence: `buildio_pro/packages/games-convex-backend/convex/linkPreview.ts`)
- Wishlist previews → Convex functions: uses (evidence: `buildio_pro/packages/games-convex-backend/convex/linkPreview.ts`)
- Book library → Books and notes: includes
