Documentation
Architecture
Tech Stack

Tech Stack

Frontend

LayerTechnology
FrameworkNext.js (App Router) + React + TypeScript
StylingTailwind CSS with custom design tokens
Client stateZustand + Immer
Drag and drop@dnd-kit/core
Rich text editorTipTap (over Markdown via tiptap-markdown)
AI chat UIVercel AI SDK (useChat hook)
Markdown renderingreact-markdown + remark-gfm
Offline persistenceidb-keyval (IndexedDB)
Iconslucide-react

Backend (Cloudflare)

ServiceRole
Cloudflare WorkersAPI runtime — all /api/* routes
Cloudflare D1 (SQLite)Server-side board/note/work-item storage and sync
Cloudflare KVSessions, OTP, board metadata, billing state, rate limits
Cloudflare R2Board Markdown snapshots and changelog artifacts

AI

ComponentTechnology
SDKVercel AI SDK (ai, @ai-sdk/react)
Primary modelGoogle Gemini (gemini-3-flash-preview) via @ai-sdk/google
StreamingstreamTexttoUIMessageStreamResponse() for chat; generateText for structured generation
Tool callingZod-validated tool schemas + client-side result application

Billing

ComponentTechnology
PaymentsStripe (Checkout, Billing Portal, Webhooks)
EmailSMTP2GO HTTP API

Build and deploy

StepTool
BundlerNext.js (SWC)
Cloudflare adapter@opennextjs/cloudflare
Deploymentwrangler deploy

See also