How nianyi778/flowmaster works
Project Type Analysis
This is a desktop application built with Electron, combining a React frontend with a local database backend. It's a full-stack desktop application with features like todo management, quadrant views, and planned features such as Pomodoro focus and calendar integration.
Main Components
A. Frontend Layer (React Application)
• Components Structure
• Store Management (src/store)
• Routing System (src/router)
• Pages and Features
B. Electron Layer
• Main Process
• Renderer Process
• IPC Communication
• Database Services
C. Database Layer
• Entity Management
• Controllers
• Services
• Data Access Objects (DAO)
┌─────────────────────────────────────────────────┐
• Frontend (React) │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
• Pages │ │ Components │ │ Store │ │
• ┘ └─────────────┘ └─────────────┘ │
• ┬─────────────────────────┘
┌───────────────────────┼─────────────────────────┐
• Electron │ Infrastructure │
• ┌─────────────┐ ┌────┴────────┐ ┌─────────────┐ │
• Main Process │ │ IPC │ │ Preload │ │
• ┘ └─────────────┘ └─────────────┘ │
• ┬─────────────────────────┘
┌───────────────────────┼─────────────────────────┐
• Database Services │
• ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
• Entities │ │Controllers │ │ DAOs │ │
• ┘ └─────────────┘ └─────────────┘ │
• ┘
Component Details
Frontend Layer:
• Main pages: Home, AddTodo, Quest
• Store management (todo.ts)
• Component hierarchy
Electron Layer:
• IPC communication channels
• Main process and preload scripts
• Window management
Database Layer:
• Todo entity structure
• CRUD operations flow
• Service layer architecture
Data Flow Indicators
• IPC communication between frontend and backend
• Database operations flow
• User interaction paths
Technical Stack Indicators
• React
• Electron
• TypeScript
• Less for styling
• Tailwind CSS
• Local database system