How thebuilderdao/kafe works
Main Components
a. Frontend Layer:
• Web Application (/apps/web)
• Documentation Site (/apps/docs)
• Both built with Next.js and TailwindCSS
b. Backend/Smart Contract Layer:
• Solana Programs (/dao-programs)
• Tutorial Program with TypeScript SDK
• Token Management System
c. Content Management Layer:
• Tutorial System
• Markdown Processing Pipeline
• Content Templates
d. Integration Layer:
• External Services Integration (Arweave, Ceramic, The Graph, etc.)
• Blockchain Integration (Solana)
• API Services
[User Interface Layer]
• Web App (Next.js)
• Components
• Pages
• Hooks
• Documentation (Nextra)
• Components
• Pages
[Core Services Layer]
• Tutorial Management
• Content Processing
• Template Engine
• Markdown Utils
• DAO Programs
• Solana Smart Contracts
• TypeScript SDK
• Migration Scripts
[Integration Layer]
• Blockchain Services
• Solana Integration
• Token Management
• External Services
• Arweave
• Ceramic
• The Graph
[Infrastructure Layer]
• Build System (Turborepo)
• Package Management (Yarn)
• Deployment (Vercel)
Connection Types
• Double lines for API connections
Additional Details
Annotations for:
• Authentication flows
• Data persistence paths
• Build/deployment pipelines
• Content creation and review workflows
Key Workflows to Highlight
a. Tutorial Creation Flow:
Author → Proposal → Voting → Content Creation → Review → Publication
b. User Interaction Flow:
Web Interface → Wallet Connection → Tutorial Access → Token Integration
Documentation Integration
• Quick reference guides for each major component
• Document integration points and dependencies
This system design should effectively communicate the architecture while maintaining clarity and providing sufficient detail for implementation and maintenance.