Ask me anything about Sayan!
In a world saturated with simple checklists, Snappy Todo aims to be a "Life OS." It’s not just about checking boxes; it’s about capturing intent, managing energy, and using AI to organize the chaos of daily life.

Today, we’re tearing down the full-stack architecture of Snappy Todo, exploring how we built a lightning-fast, AI-integrated task manager using the MERN stack (MongoDB, Express, React, Node.js), Socket.io, and Google’s Gemini AI.
Part 1: The Frontend – Speed & Interactivity The frontend is built to feel instant. We chose React paired with Vite for a lightning-fast development environment and optimized production builds.
Core: React 18 + Vite
State Management: Zustand for global UI state (like sidebar toggles and auth tokens) and @tanstack/react-query for server state caching and synchronization.
Styling: Tailwind CSS for utility-first styling, paired with framer-motion for fluid animations (drag-and-drop, modal transitions).
Routing: React Router v6.
Snappy doesn't force a specific workflow. The data is decoupled from the view, allowing us to render tasks in four distinct modes:
List View: The classic checklist.
Kanban Board: A drag-and-drop interface for status management (Todo, In Progress, Done).
Timeline View: A horizontal Gantt-style chart visualizing task duration and deadlines.
Eisenhower Matrix: A quadrant view splitting tasks by Urgency and Importance.
The frontend isn't just a display layer; it contains significant logic:
Intention Engine: This component analyzes available time vs. task effort. It visually plans your day, suggesting "Quick Wins" or "High Energy" tasks based on the time of day.
Focus Mode: A built-in Pomodoro timer that tracks interruptions. It features a full-screen immersive UI with ambient animations to keep you in the "flow".
Smart Inbox: A unified capture point that aggregates tasks from various sources like Email, WhatsApp, and Screenshots, allowing users to convert them into actionable tasks with one click.
Part 2: The Backend – The Brains of the Operation The backend is a robust Node.js/Express application designed for scalability and real-time interaction.
We moved away from simple task schemas. The Todo model in MongoDB is extensive, supporting the "Brain Dump" philosophy. It includes:
Context: Energy levels (low, medium, high), effort (in minutes), and location context (home/office).
Rich Media: Voice notes (with transcripts), image attachments, and sub-steps.
Collaboration: Arrays for comments, reactions, and assignedTo fields, enabling multiplayer features.
We use Socket.io to enable real-time features.
Presence: Users can see who is currently viewing a list, visualized by floating cursors and avatars.
Live Updates: When a task is updated, created, or deleted, events are emitted to specific rooms (e.g., list:123). This triggers a React Query invalidation on the frontend, ensuring all clients see the latest data instantly.
This is where Snappy shines. We use a dedicated ai.service.js to interface with Google's Gemini models (specifically gemini-1.5-flash for speed).
Key AI Capabilities:
Natural Language Processing: Users can dump a paragraph of text, and the AI extracts structured tasks, dates, and priorities.
Visual Analysis: Users can upload a screenshot or photo. The backend uses Gemini Vision to parse the image (e.g., a photo of a handwritten note) and convert it into digital tasks.
Smart Suggestions: The backend analyzes the user's current workload and energy level to suggest what to work on next, acting as an AI productivity coach.
Part 3: The Ecosystem & Deployment Mobile (iOS)
Snappy isn't just web-based. We have a native iOS client written in SwiftUI. It mirrors the web features, using the same API endpoints for authentication and data management. It leverages native iOS components like PhotosUI for avatar uploads and follows an MVVM architecture.
Docker & Infrastructure
The application is containerized for easy deployment.
Backend: A multi-stage Dockerfile sets up the Node.js environment and creates necessary upload directories.
Frontend: Built using Nginx to serve static assets, ensuring high performance and proper caching headers.
Conclusion Snappy Todo demonstrates how modern web technologies can transform a simple concept into a powerful tool. By combining the reactivity of the MERN stack with the intelligence of Generative AI, we've built an app that doesn't just store tasks—it understands them.
Whether you are dragging cards on the Kanban board, focusing with the Pomodoro timer, or letting AI plan your day, Snappy is designed to get out of your way and let you get things done.
Loading comments...