How saulo-duarte/chronos works
Project type and purpose
• This is a desktop-focused, full-stack application written in Next.js/React on the frontend and Rust (via Tauri) on the backend.
• Purpose: Provide a “Chrono Vault” file-management UI, a configurable workspace/task manager, and persistent settings, all backed by a local SQL database and file‐system operations.
File structure
• app/…: Next.js “app router” directory, subdivided into three main feature areas:
• chrono-vault (file explorer, CRUD dialogs, folder navigation)
• workspace (category/task/study-task management)
• settings (DB & base‐directory configuration)
• components/ui: Shared UI primitives (buttons, dialogs, tables, etc.)
• src-tauri/: Tauri Rust application:
• commands/ — IPC command handlers (file, folder, task, categories, config, window)
• services/ — business logic layer calling repositories
• repository/ — data access layer (CRUD against database or file system)
• db/ & models/ & schema/ — database initialization, type definitions, ORM mappings
• config/ — application configuration manager
• Hooks (useFilePreview, useFolderSystem, useWorkspace, useTaskSystem) bridge React components → Tauri invoke API
• Configuration: next.config.ts, tauri.conf.json, Tailwind/postCSS, TypeScript settings
Extract insights from README
• Standard Next.js bootstrap, served locally on port 3000 in dev mode.
Detail
• Every feature area (chrono-vault, workspace, settings) as separate UI modules if desired.
• Hooks as the client-side invocation mechanism.
• “config_manager” and “window_commands” as supporting infrastructure.
• Don’t hesitate to break out the repository per model (file, folder, task) for maximum clarity.