API-First Habit Tracking for Developers
Track your habits with REST API, NFC Tags, Apple Shortcuts, Your Creativity!
An open-source, API-first habit tracker that seamlessly integrates with your workflow. Easy import/export, self-hosted, and no ads.
Habits as code
Simple, powerful REST API that lets you track habits from anywhere. CLI, mobile apps, smart watches, or even your coffee machine.
REST API
Track habits with simple HTTP requests.
Custom frequency
Track habits with custom frequencies. Daily, weekly, monthly, or even custom intervals.
Rich Metadata
Add custom data to your habits like mood, location, or any metric you want.
curl 'https://api.cronhabits.com/habits//track' \
-X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ' \
-d '{
"date": "2025-02-01",
"value": 65,
"metadata": {
"source": "MFP iOS calorie adjustment",
"type": "cardio",
}
}'
Connect with everything you use
Connect your habits with the tools you already use. From smart watches to home automation, the possibilities are endless.
Multiple Sources
Track habits from your phone, watch, or any IoT device.
Automation Ready
Perfect for Home Assistant, IFTTT, or custom scripts.
API Key Auth
Authenticate with API keys for automated and secure tracking.
Your data, your control
Your habits, your data. Import from other apps, export anytime, and keep your data under your control.
Easy Migration
Import your data from other habit tracking apps in seconds.
Data Portability
Export your complete history in standard JSON format.
curl 'https://api.cronhabits.com/habits//activities/import' \
-X POST \
-H 'Content-Type: application/json' \
-H 'x-api-key: ' \
-d '{
"activities": [
{
"date": "2024-03-21",
"value": 5,
"metadata": {
"imported_from": "other_app",
"original_id": "abc-123"
}
},
]
}'
Beautiful insights at a glance
Access your habits through our beautiful web client. Get insights with built-in charts and visualizations designed for habit tracking.
Web Client
Track and visualize your habits from your devices with our web client.
Built-in Analytics
Track your progress with heatmaps, streaks, and trend analysis.

Data that tells your story
Create custom visualizations and dashboards with your habit data. From simple charts to complex analytics, the possibilities are endless.
Custom Charts
Build your own visualizations using your favorite charting library.
Correlation Analysis
Connect habits with other data sources to find patterns and insights.
curl 'https://api.cronhabits.com/habits/meditation/activities' \
-H 'x-api-key: YOUR_API_KEY' \
-G \
--data-urlencode 'start_date=2025-02-01' \
--data-urlencode 'end_date=2025-02-03' \
{
"id": "be00a368-f944-4861-b9b4-a0ca87f8b28e",
"title": "Meditation",
"frequency": {
"frequencyType": "DAILY",
},
"completions": [
{
"id": "02f740a5-0119-4b01-92b0-ca8433c54793",
"slug": "meditation",
"status": "CHECKED",
"date": "2025-02-01",
"count": 1,
"metadata": {
"mood": "calm",
"weather": "sunny",
"notes": "Great meditation session today!"
}
},
]
}
Self-host or use our managed cloud
Choose between self-hosting or our managed cloud. Your subscription helps support development and hosting costs.
Cloud Fremium
Let us handle the hosting
- 15 habits
- Full API access
- Managed hosting
- Built-in analytics
- Import/Export*
- Priority support
- Metadata management (soon)
Cloud+
Support the project and get priority support and some other perks
- Unlimited habits
- Full API access
- Managed hosting
- Built-in analytics
- Import/Export
- Priority support
- Metadata management (soon)
Self-Hosted
Manage the infrastructure and host it yourself
- Unlimited habits
- Full API access
- Self-hosted infrastructure
- Built-in analytics
- Import/Export
- Community support
- Metadata management (soon)
Habits is and will always be open source. Cloud subscriptions help us maintain the project and cover hosting costs.
No vendor lock-in — export your data anytime and switch between self-hosted and cloud as you need.
* Advanced analytics available via the API.
* Data export in the free tier can take up to 24 hours to process.