Back to browse
GitHub Repository

Private Habit Tracker 🐢

10 starsJavaScript

Lentando, private habit and substance tracker (vanilla JavaScript, PWA)

by KilledByAPixel·Feb 17, 2026·2 points·0 comments

AI Analysis

●●SolidWizardryNiche Gem
The Take

The neat engineering move is the event-consolidation that keeps aggregates stable while shrinking on-disk history so a browser can hold decade-long data — that’s a non-obvious solution to a real storage problem. Pair that with a tombstone-and-timestamp merge for optional sync, custom canvas charts, and time-travel debugging, and you’ve got a privacy-first tracker that’s technically interesting and actually usable offline.

Category
Target Audience

People tracking substance use or habits (harm-reduction/recovery), privacy-conscious users, and developers interested in offline-first PWAs

Post Description

Hi HN, I built Lentando, a privacy first tracker for substance use and habits (nicotine, alcohol, cannabis, or custom). It's an offline first PWA, no account required unless you opt into multi device sync. Released under GPL 3.0.

Under the hood it's about 6K lines of vanilla ES6 with no runtime dependencies. To make long term browser storage practical, it consolidates older events while keeping aggregates stable. Optional sync uses a simple conflict tolerant merge (event timestamps and tombstones) so offline edits across devices don't break. Charts are a small custom canvas renderer (stacked bar charts and heatmaps), and there's time travel debugging plus 100+ Node unit tests.

I'd love feedback from both developers and anyone who tries it, on the architecture, the UX, and what you would improve.

Repo: https://github.com/KilledByAPixel/Lentando Live: https://lentando.3d2k.com

Similar Projects