Hacker News

bohdanstefaniuk
Show HN: Track habits, metrics, time and whateven you think worth tracking habitpocket.io

bohdanstefaniukop14 hours ago

Hey everyone!

I just want to share an app - Habit Pocket. I built to track my habits and other metrics I like. For me the biggest problem of most trackers is limitation by only habit done and not done state.

But I prefer to track my actual effort and be consistent with using actual numbers. For example I have a goal to walk 10k steps everyday. What if I walked 9k, it's not a 10k but definitely good!

This is why I like to track actual numbers and time. In my case it help me stick to the habits better. Because showing up every day even if it's half of the goal is very important and for myself I like to see any effort I put.

Same with skip, I added support of skips because sometime I can go camping for 3-5 days and I'm not able to do some things, so I need to decide to loose my streak or mark it done and ruin stats. So this is why skips can be handy.

Also it has MCP integration so you can connect your AI of choice. Pull your data using Apple Health integration!

927tanmay8 hours ago

I’m curious about the architecture, specifically regarding the Apple Health and MCP integrations. How is the user data managed under the hood? Is the data being routed through a centralized server/external LLM APIs, or is the processing and AI integration handled entirely locally in-app?

bohdanstefaniukop5 hours ago

First of all mobile application has offline support. This feature implemented by producing operations log. Basically each action made in the app is a separate operation. Same happens on the backend. Every API call mutates state in the database and creates operations.

When internet connection restored for the mobile app it sends all operations to the server. Server applies and re conciliates properly values and returns the current correct state.

Apple Health integration works buy reading values from HealthKit and pushing those values into one operations log.

MCP integration is very simple. Basically I have an API which users can use to integrate into their own apps and MCP utilize same API with OAuth authentication

sajithdilshan12 hours ago

This is quite cool, but I cherish the comfort in ignorance is bliss when it comes to my habits

bohdanstefaniukop11 hours ago

Thank you! To be honest it depends on person, I just like to track everything even if sometimes in useless. So I wanted to have a place where I can do this and something a little more friendlier than excel spreadsheet

copperx12 hours ago

Cool! I was thinking of building something similar over the weekend, with a few differences. Do you accept PRs?

bohdanstefaniukop11 hours ago

For now it's not an open-source but I actually have plans to make it open and allow self-hosting. To have two models: paid cloud or self hosting

bahaMas111 hours ago

[dead]

hn-front (c) 2024 voximity
source