A modern, minimalist, and offline-first personal diary and journaling application crafted with Flutter. Document your daily reflections, track consistency through a contribution heatmap, generate contextual AI summaries, and export your personal journey into professional PDFs.
DAYMARK is built as a complete, production-ready mobile application designed for deep reflection and habit consistency. Inspired by modern developer productivity tools, DAYMARK blends intuitive journaling with a calendar contribution heatmap, privacy-first offline storage, and intelligent AI-powered synthesis of your written experiences.
- Rich Documentation: Write and format your thoughts with titles, multi-paragraph content, categories, and tags.
- Mood Tracking: Log your emotional state for each entry (e.g. Energized, Focused, Calm, Tired, Reflective).
- Categorization: Pre-built categories tailored for life balance:
Personal,Work,Learning,Fitness,Ideas,Gratitude, andReflection. - Search & Filter: Real-time full-text search across titles and content, combined with category and date filtering.
- Pin & Organize: Pin your most impactful reflections to the top of the timeline.
- Safety: Safe deletion with dialog confirmation and automatic activity logging.
- GitHub-Inspired Calendar Heatmap: Visual representation of your daily marks and consistency over weeks and months.
- Accurate Streak Calculator:
- Calculates current streak, longest streak, total active days, and total contributions.
- Strict timezone-aware local date calculations (never breaks across timezones).
- Multiple entries in a single day increment contribution intensity while counting as 1 active streak day.
- Monthly & Weekly Breakdown: Live metrics showing your weekly, monthly, and yearly activity momentum.
- Interactive Inspection: Tap any heatmap cell to view the exact date and number of marks logged.
- Flexible Date Range: Summarize your thoughts over any custom timeframe (e.g., 1 May 2026 to 22 November 2026).
- Strictly Grounded Synthesis: Generates structured overviews (Key Achievements, Learnings, Challenges, and Insights) exclusively from entries you actually wrote.
- Pluggable AI Architecture:
- Google Gemini API: Contextual, high-depth semantic summaries using the official Google Generative AI SDK.
- Local Heuristic Engine: Zero-network offline fallback engine that extracts real themes and patterns without requiring an internet connection.
- PDF Export: Generate clean, professional PDF reports with formatted typography, ready for printing or archiving.
- Contextual Greetings: Dynamic greeting based on device time (Good morning, Good afternoon, Good evening, Good night).
- Live Streak Badge: Prominently highlights your current active streak at a glance.
- Quick Mark Action: Immediate one-tap access to create a new entry for today.
- Recent Marks Timeline: Quick review of your latest entries.
- 100% Offline-First: Zero mandatory login. All journals and logs are stored locally on your device in an encrypted/local SQLite database.
- App Security (PIN Lock): Protect sensitive diaries behind an optional numeric PIN.
- Hide Previews: Privacy toggle to obscure journal snippet previews in public spaces.
- Backup & Restore: Easily export your entire database to a JSON backup file and restore it anytime.
- Dual Theme Support:
- Dark Mode: Premium deep dark canvas with muted borders and gold/cyan accents.
- Light Mode: High-contrast, clean paper-white aesthetic with crisp typography.
- Powered by custom
ThemeExtension<AppThemeColors>for seamless instant theme switching.
DAYMARK follows Feature-Driven Clean Architecture with separation of Data, Domain, and Presentation layers:
lib/
├── app.dart # App entry widget & theme provider binding
├── main.dart # Initialization (database, preferences, orientation)
├── core/
│ ├── constants/
│ │ ├── app_categories.dart # Category metadata, colors, and icons
│ │ ├── app_colors.dart # Color palette & accent tokens
│ │ ├── app_theme.dart # Light/Dark ThemeData & ThemeExtension
│ │ └── app_typography.dart # Typography system (Plus Jakarta Sans & JetBrains Mono)
│ ├── database/
│ │ └── app_database.dart # SQLite database helper & migrations
│ ├── services/
│ │ ├── ai/
│ │ │ ├── ai_summary_service.dart # Abstract AI contract
│ │ │ ├── gemini_summary_service.dart # Gemini API implementation
│ │ │ └── local_heuristic_summary_service.dart # Offline fallback summarizer
│ │ ├── backup/
│ │ │ └── backup_service.dart # JSON export & import
│ │ ├── pdf/
│ │ │ └── pdf_export_service.dart # PDF generation & layout builder
│ │ └── storage/
│ │ └── preferences_service.dart # SharedPreferences wrapper
│ └── utils/
│ ├── date_utils.dart # Date formatting & time greetings
│ └── streak_calculator.dart # Local date streak & contribution logic
└── features/
├── contribution/ # Heatmap widget, streak badge, stats grid
├── dashboard/ # Dashboard screen & summary cards
├── journal/ # CRUD journals, models, repositories, views
├── navigation/ # Main bottom navigation shell
├── settings/ # Preferences, PIN lock, profile, AI config
└── summary/ # Date range picker, AI summary UI, PDF export
| Category | Package | Purpose |
|---|---|---|
| Framework | Flutter | Cross-platform mobile development (API 36 ready) |
| State Management | flutter_riverpod | Reactive, testable state management |
| Local Database | sqflite / sqflite_common_ffi | Robust local relational database |
| Typography | google_fonts | Plus Jakarta Sans & JetBrains Mono |
| AI Integration | google_generative_ai | Gemini 1.5 Flash summarization engine |
| PDF Generation | pdf & printing | Document generation, preview, and sharing |
| Data Sharing | share_plus & file_picker | System share sheet & backup file handling |
| Date Utilities | intl | Multi-locale date and time formatting |
- Flutter SDK (
>= 3.47.0) - Dart SDK (
>= 3.13.0) - Android Studio / Android SDK with Platform API 36
-
Clone the repository:
git clone https://github.com/arundaya24/DayMark.git cd DayMark -
Install dependencies:
flutter pub get
-
Run the application:
flutter run
Execute unit and widget test suites:
flutter testCompile an optimized production APK:
flutter build apk --releaseTo enable cloud-powered Gemini summarization:
- Open the DAYMARK application.
- Navigate to Settings (
Profile & Settings). - Tap on AI Summary Provider.
- Select Google Gemini and input your Gemini API Key (obtained from Google AI Studio).
- Note: If no API key is set or the device is offline, DAYMARK automatically falls back to its built-in offline heuristic engine.
- No Placeholders: Every button, chip, and control has functional business logic behind it.
- Zero Generic AI Bloat: Clean, human-centered UI that stays out of your way.
- Respect for User Data: You own your journals. All data remains on the device unless exported by you.
- Consistent Visual Hierarchy: Purposeful typography scale and contrast standards in both dark and light modes.
This project is licensed under the MIT License - see the LICENSE file for details.



