How igorberezkin/nextday works
Next Day is a local Windows day planner. The main workflow is to plan tomorrow, track tasks during the day, then assemble and seal a board of results for history. Goals add a topic-map stage whose tasks can be scheduled into plans; an optional local MCP server lets AI clients read history and work with goals. The graph combines documented capabilities with sampled imports and calls; several backend and UI connections are omitted or shown as unverified where source excerpts do not establish their wiring.
Main entry points: logic.rs Day logic · App.tsx App navigation · goals.rs Goal engine · store.rs Local JSON store
Components 22
Planning and daily use
- App navigation
src/App.tsx - Today and tomorrow
src/screens - Plan wizard
src/screens/PlanWizard.tsx - Task clock
src/screens/ClockScreen.tsx
Results and history
- Results board
src/board/BoardScreen.tsx - Board model
src/board/model.ts - History insights
src-tauri/src/insights.rs
Goal planning
- Goals and map
src/screens - Goal UI helpers
src/screens/goalKit.tsx - Goal engine
src-tauri/src/goals.rs
Application backend
- Frontend API
src/api.ts - App commands
src-tauri/src/commands.rs - Day logic
src-tauri/src/logic.rs - Day and time
src-tauri/src/clock.rs - Local JSON store
src-tauri/src/store.rs - Domain model
src-tauri/src/model.rs - Notifications and scheduling
src-tauri/src/scheduler.rs - Updater
src-tauri/src/updater.rs
AI integration
- MCP server
src-tauri/src/mcp.rs - AI guide resource
src-tauri/src/ai_guide.rs - MCP client
Other components
- Planner
Connections 35
- Planner → App navigation: uses
README.md - App navigation → Frontend API: loads overview
src/App.tsx - App navigation → Today and tomorrow: routes to
src/App.tsx - App navigation → Task clock: routes to
src/App.tsx - App navigation → Results board: routes to
src/App.tsx - App navigation → Goals and map: routes to
src/App.tsx - Planner → Plan wizard: plans tomorrow
README.md - Plan wizard → Frontend API: requests changes
src/screens/PlanWizard.tsx - Planner → Task clock: views schedule
README.md - Frontend API → App commands: invokes commands
- App commands → Day logic: dispatches
- Day logic → Local JSON store: reads and writes
src-tauri/src/logic.rs - Day logic → Day and time: uses time rules
src-tauri/src/logic.rs - Day logic → Goal engine: uses goal planning
src-tauri/src/logic.rs - Day logic → Domain model: uses domain types
src-tauri/src/logic.rs - Planner → Results board: assembles results
README.md - Results board → Frontend API: loads board
src/board/BoardScreen.tsx - Results board → Board model: parses board data
src/board/BoardScreen.tsx - Results board → Local JSON store: persists board
- Planner → Goals and map: edits goal map
README.md - Goals and map → Goal UI helpers: uses helpers
src/screens/GoalsScreen.tsx - Goals and map → Frontend API: requests goal data
src/screens/MapScreen.tsx - Goal engine → Local JSON store: reads and writes
src-tauri/src/goals.rs - Goal engine → Day logic: plans ahead
src-tauri/src/goals.rs - Goal engine → Day and time: uses date rules
src-tauri/src/goals.rs - Goal engine → Domain model: uses domain types
src-tauri/src/goals.rs - Local JSON store → Domain model: stores records
src-tauri/src/store.rs - Planner → History insights: reviews history
- MCP client → MCP server: requests data
README.md - MCP server → AI guide resource: serves guide
src-tauri/src/mcp.rs - MCP server → History insights: reads history
src-tauri/src/mcp.rs - MCP server → Goal engine: edits goals
src-tauri/src/mcp.rs - MCP server → Local JSON store: reads data
src-tauri/src/mcp.rs - Notifications and scheduling → Day logic: checks day state
- Updater → Local JSON store: reads settings
src-tauri/src/updater.rs