PromptHub
Back to Blog
Developer Tools Open Source Software

FriesI23/mhabit: Open Source Micro Habit Tracker with Cross-Platform Sync

B

Bright Coding

Author

10 min read 13 views
FriesI23/mhabit: Open Source Micro Habit Tracker with Cross-Platform Sync

Developers and technical professionals often struggle to build consistent routines amid context-switching, irregular hours, and project crunch. Generic habit apps feel bloated, lock data behind paywalls, or lack the flexibility to track nuanced behaviors—like "review PRs within 2 hours" or "avoid checking production logs after 10 PM." FriesI23/mhabit (also marketed as Table Habit) addresses this gap with a purpose-built, open-source micro habit tracker that emphasizes data ownership, cross-platform availability, and visual feedback through growth curves and charts.

This article examines what makes FriesI23/mhabit distinctive in the crowded productivity space, how its technical architecture supports developer workflows, and why its Apache 2.0 licensing and WebDAV sync matter for users who refuse vendor lock-in.


What is FriesI23/mhabit?

FriesI23/mhabit is an open-source habit tracking application maintained by independent developer Fries_I23. Built with Flutter 3.35.7 and written primarily in Dart, it targets a simple but technically demanding goal: help users establish and sustain micro habits through measurable, visualized progress.

The project sits at the intersection of personal productivity tooling and cross-platform mobile development. With 1,426 GitHub stars, 82 forks, and active development through July 2026, it demonstrates sustained community interest despite being a solo-maintained project. The maintainer explicitly notes: "I am an independent developer and do not have professional expertise in managing projects and writing documentation"—a transparency that shapes the project's contribution culture and documentation gaps.

FriesI23/mhabit distinguishes itself through complete data portability (JSON export/import), network sync via WebDAV with more options planned, and zero advertising. It supports both positive habits (actions to build) and negative habits (actions to reduce), with a scoring system designed around micro habit principles—small, repeatable behaviors rather than streak-based gamification.

The application's relevance extends beyond personal use. For developers evaluating Flutter for cross-platform deployment, FriesI23/mhabit serves as a production reference: it ships to seven distribution channels across five platforms (Android, iOS, macOS, Windows, Linux), implements Material3 dynamic theming, and handles landscape/large-screen adaptations. The codebase demonstrates real-world patterns for [INTERNAL_LINK: Flutter state management] and platform-specific build pipelines.


Key Features

Dual Habit Polarity The app supports both positive and negative habit tracking—a critical distinction missing from many competitors. Positive habits accumulate toward goals; negative habits track reduction targets. Each uses the same scoring infrastructure but presents context-appropriate metrics.

Growth Curves and Visualization Rather than simple streak counters, FriesI23/mhabit implements "a comprehensive set of growth curves and charts." These visualizations help users identify plateau periods, acceleration phases, and regression trends—analytical depth that appeals to data-inclined users.

WebDAV Synchronization Current sync relies on WebDAV, with explicit acknowledgment that "more options [are] coming soon." This design prioritizes user-controlled infrastructure over proprietary cloud services. Users can self-host Nextcloud, ownCloud, or any WebDAV-compatible server for data sync.

Material3 and Dynamic Color Android 12+ users benefit from native Material3 theming with dynamic color extraction, making the app feel integrated with system aesthetics rather than a foreign overlay.

Cross-Platform Coverage The distribution matrix is unusually broad for an indie project:

Platform Distribution Channels
Android GitHub APK, F-Droid, IzzyOnDroid, Google Play, Obtainium
iOS Apple App Store, AltStore, SideStore, TestFlight, GitHub IPA
macOS Mac App Store, TestFlight, Homebrew Tap, GitHub DMG
Windows Microsoft Store, Scoop Bucket, GitHub MSIX
Linux Flathub, GitHub Flatpak

Data Portability Habits export to human-readable JSON, enabling programmatic analysis, backup automation, or migration to other tools. This contrasts sharply with apps that encrypt or obfuscate user data.

Ad-Free Operation The README explicitly states "No ADs"—a monetization stance that aligns with the open-source ethos but places sustainability pressure on donation channels.


Use Cases

Developer Routine Engineering Technical workers can track habits like "morning code review," "documentation updates before EOD," or "no deploys after 6 PM." The negative habit support specifically enables tracking avoidance behaviors—critical for burnout prevention. JSON export allows correlation with git activity logs or IDE time-tracking for integrated productivity analysis.

Distributed Team Coordination Teams using shared WebDAV infrastructure (corporate Nextcloud, for example) could theoretically synchronize habit data across members for team challenges or wellness programs. The JSON format enables custom dashboard generation without proprietary APIs.

Open Source Contribution Sustainability For maintainers of projects like FriesI23/mhabit itself, tracking contribution habits—"respond to issues within 48 hours," "weekly dependency updates"—provides accountability without the surveillance feel of GitHub's own metrics.

Health-Technical Hybrid Tracking The "micro habit" framing suits health behaviors with technical measurement: "stand every 45 minutes" (pair with smartwatch data), "20-minute walk after lunch" (correlate with step count exports), or "no screens after 22:00" (enforce via router automation, track compliance in-app).

Flutter Learning Reference Developers studying cross-platform Flutter deployment can examine the CI/CD configuration, platform-specific packaging (MSIX, Flatpak, DMG), and release automation. The project's build badge and multi-channel distribution represent production-grade patterns rarely visible in tutorial code.


Installation & Setup

FriesI23/mhabit distributes through numerous channels. Select based on your platform and trust model:

Android (Obtainium — direct from source)

# Obtainium configuration for verified GitHub releases
# Install Obtainium first, then add source:
# https://github.com/FriesI23/mhabit
# Enable "include prereleases" for beta access

iOS (TestFlight for prerelease)

# Join TestFlight via:
# https://testflight.apple.com/join/aJ5PWqaR
# Or install released version from Apple App Store

macOS (Homebrew)

# Add custom tap (documented in project wiki)
brew tap friesi23/mhabit
brew install --cask table-habit

Windows (Scoop)

# Add bucket and install
scoop bucket add mhabit https://github.com/FriesI23/mhabit
scoop install mhabit

Linux (Flatpak)

# Install from Flathub
flatpak install flathub io.github.friesi23.mhabit

WebDAV Sync Configuration After installation, navigate to sync settings and enter your WebDAV endpoint:

Server URL: https://your-nextcloud.example.com/remote.php↗ Bright Coding Blog/dav/files/username/
Username: [your WebDAV user]
Password: [app-specific password recommended]

The app currently supports WebDAV only; the README notes additional sync protocols are planned but not yet implemented. For users without self-hosted infrastructure, providers like pCloud, TeraCloud, or Koofr offer WebDAV-compatible storage.


Real Code Examples

The README does not contain extensive code samples for API usage, as FriesI23/mhabit is an end-user application rather than a library. However, the JSON export format enables programmatic interaction:

Exported Habit Structure

{
  "habits": [
    {
      "uuid": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Morning code review",
      "type": "positive",
      "color": "#FF6B6B",
      "frequency": {
        "type": "daily",
        "times": 1
      },
      "records": [
        {
          "date": "2026-07-14",
          "value": 1.0,
          "comment": "Reviewed 3 PRs"
        }
      ]
    }
  ]
}

This structure enables custom analytics. For example, calculating weekly completion rates:

import json
from datetime import datetime, timedelta
from collections import defaultdict

with open('mhabit_export.json') as f:
    data = json.load(f)

weekly_stats = defaultdict(lambda: {'completed': 0, 'target': 0})

for habit in data['habits']:
    if habit['type'] != 'positive':
        continue  # Skip negative habits for this analysis
    
    for record in habit.get('records', []):
        date = datetime.strptime(record['date'], '%Y-%m-%d')
        week_key = date.strftime('%Y-W%U')
        weekly_stats[week_key]['completed'] += 1
    
    # Calculate targets based on frequency
    # (simplified: assumes daily habits)
    for week in weekly_stats:
        weekly_stats[week]['target'] += 7

for week, stats in sorted(weekly_stats.items())[-4:]:
    rate = stats['completed'] / max(stats['target'], 1) * 100
    print(f"{week}: {stats['completed']}/{stats['target']} ({rate:.1f}%)")

Automated Backup via WebDAV

#!/bin/bash
# Cron job for nightly habit data backup
# Requires cadaver or curl with WebDAV support

EXPORT_DIR="$HOME/.local/share/mhabit/backups"
WEBDAV_URL="https://nextcloud.example.com/remote.php/dav/files/user/mhabit/"
DATE=$(date +%Y%m%d)

# Export from app (manual trigger or future API)
# Then sync to WebDAV
curl -u "user:app-password" -T "$EXPORT_DIR/habits-$DATE.json" \
  "$WEBDAV_URL/habits-$DATE.json"

# Retain only 30 days
find "$EXPORT_DIR" -name "habits-*.json" -mtime +30 -delete

The README's sparse code coverage reflects the project's end-user orientation. Developers seeking deeper integration should examine the Dart source directly or contribute to the documentation via the docs/wiki folder pull request workflow.


Advanced Usage & Best Practices

Scoring System Optimization The README mentions a "scoring system to help you develop micro habits" without detailing algorithms. Based on the growth curve visualization, scores likely compound with consistency and decay with missed days. For accurate tracking, log habits at consistent times—morning logging for morning habits reduces retrospective bias.

Color-Coded Habit Taxonomy With color differentiation supported, establish a semantic scheme: warm colors (red/orange) for negative habits, cool colors (blue/green) for positive, purple for neutral tracking. This leverages pre-attentive visual processing for faster dashboard scanning.

WebDAV Reliability Self-hosted sync introduces failure modes absent from centralized services. Monitor sync status after app updates, verify WebDAV server certificates aren't expired, and maintain local exports as fallback. The JSON format makes disaster recovery straightforward.

Landscape Mode for Tablet Workflows The landscape/large-screen adaptation suits tablet-based morning reviews or desk-mounted displays. Consider dedicated device deployment for habit check-in stations.

Contribution Pathways The maintainer actively solicits documentation help and follows Flutter's official style guide for code contributions. Translation occurs via Weblate or direct .arb file edits. The wiki syncs automatically from docs/wiki merges, enabling SEO↗ Bright Coding Blog-indexable documentation improvements.


Comparison with Alternatives

Feature FriesI23/mhabit Loop Habit Tracker Habitica
License Apache 2.0 GPL 3.0 GPL 3.0 / proprietary services
Sync WebDAV (self-hosted) None (local only) Proprietary cloud
Negative habits Yes Yes No (all tasks are positive)
Data format JSON (human-readable) SQLite Proprietary API
Cross-platform 5 platforms Android only Web + mobile
Gamification Minimal (growth curves) Minimal RPG mechanics
Ads None None Present (free tier)

Loop Habit Tracker (Android-only, GPL) offers similar simplicity but lacks sync and multi-platform reach. Habitica gamifies habit formation extensively, which appeals to some users but introduces cognitive overhead and requires proprietary infrastructure.

FriesI23/mhabit occupies a middle ground: more portable than Loop, less gamified than Habitica, with stronger data sovereignty than both. The trade-off is ecosystem maturity—Loop has longer development history; Habitica has larger community. For users prioritizing cross-platform consistency and data control, FriesI23/mhabit's WebDAV-first approach is distinctive.


FAQ

Q: Is FriesI23/mhabit free? A: Yes, fully open source under Apache License 2.0. No paid tiers or feature restrictions.

Q: Can I sync between Android and iOS? A: Yes, via WebDAV. Configure the same endpoint on both devices.

Q: What happens if WebDAV is unavailable? A: Data stores locally. Sync resumes when connectivity restores. Export JSON periodically for backup.

Q: Does it integrate with Apple Health or Google Fit? A: The README does not mention health platform integrations. Feature requests should go to the Trello board or Discord.

Q: How active is development? A: Last commit dated 2026-07-14 with ongoing CI/CD automation. Roadmap items (widgets, grouping) are partially complete.

Q: Can I contribute without Dart experience? A: Yes—documentation, translation (via Weblate), and testing contributions are explicitly welcomed.

Q: Is there an API for third-party integrations? A: No formal API. Use JSON export for programmatic access, or examine the Flutter source for internal patterns.


Conclusion

FriesI23/mhabit delivers precisely what its README promises: an open-source, cross-platform micro habit tracker with visual analytics and user-controlled sync. It will not suit users seeking social features, elaborate gamification, or turnkey cloud convenience. It will appeal to developers, privacy advocates, and technical professionals who value data portability, inspectable code, and platform flexibility.

The project's 1,426 stars and broad distribution matrix demonstrate that solo-maintained open source can achieve production-grade reach. Sustainability depends on community contribution—particularly documentation, where the maintainer acknowledges expertise gaps.

For Flutter developers, FriesI23/mhabit offers reference-grade patterns for multi-platform deployment. For habit-tracker users, it provides rare combination of negative habit support, JSON data freedom, and zero advertising.

Explore the source, review the project wiki, or install directly from your preferred channel: https://github.com/FriesI23/mhabit.

Comments (0)

Comments are moderated before appearing.

No comments yet. Be the first to share your thoughts!

Recommended Prompts

View All
All tools