Understand the Dispatch project structure
mainThe project is organized into several key directories that define its functionality:
src/app/: Contains Next.js App Router pages and API route handlers (REST endpoints).src/components/: Reusable UI components, including layout shells, specialized page views, and utility components likeToastProviderandSearchOverlay.src/lib/: Core logic and utilities, including API authentication helpers (withAuth), a typed API client (client.ts), and AI/encryption helpers.src/mcp-server/: A standalone Model Context Protocol (MCP) HTTP server providing tools for tasks, notes, projects, and search.src/db/: Database schema definitions (Drizzle) and the SQLite client.src/test/: Test utilities including an in-memory SQLite factory and auth mocking.