Skip to main content

🇺🇸 English | 🇨🇴 Español

DevTrack

DevTrack

PyPI version Python versions License CI

Local-first development activity tracker. Tracks lines written, files edited, sessions, and Bash commands — with a web dashboard and optional AI summaries via Ollama.

No data leaves your machine. No accounts. No API keys.


Quick install

pip install devtrack-local
devtrack start

Dashboard opens at http://127.0.0.1:17321.


Requirements

  • Python 3.11+
  • macOS, Linux or Windows
    • macOS: starts as a LaunchAgent (survives logout, restarts itself)
    • Linux and Windows: detached background process with a PID file
  • Ollama — optional, for local AI summaries

Usage

devtrack start        # Start daemon + open dashboard in browser
devtrack stop         # Stop daemon and remove LaunchAgent
devtrack open         # Open dashboard (daemon must be running)
devtrack status       # Show running status + dashboard URL

devtrack              # Today's summary in terminal
devtrack week         # Last 14 days history
devtrack files        # Files edited today
devtrack report DATE  # Detailed report for a specific day (YYYY-MM-DD)
devtrack range FROM [TO]  # Summary for a date range
devtrack help         # Full command list

Export

devtrack export                   # Today as Markdown (stdout, pipeable)
devtrack export --json            # Today as JSON
devtrack export --csv             # Today as CSV
devtrack export --week            # Last 7 days as Markdown table
devtrack export --week --csv      # Last 7 days as CSV
devtrack export --all             # Full history as Markdown
devtrack export --all --json      # Full history as JSON array
devtrack export --all --csv > history.csv  # Pipe to file

Daily aggregates

devtrack aggregate    # Recalculate daily_aggregates for all historical dates

Aggregates are also updated automatically on every incoming event. The /aggregate API endpoint exposes the current table state.


Dashboard

Web dashboard at http://127.0.0.1:17321:

  • Daily metrics: lines written, files edited, sessions, Bash commands
  • Bar chart for the last 7 days
  • Most-edited files table with project + language detection
  • Contribution heatmap (GitHub-style, last 8 weeks)
  • AI productivity summary (requires Ollama)

Auto-refreshes every 30 seconds.


Optional: AI summaries with Ollama

No internet required. No API keys.

brew install ollama
ollama pull qwen2.5-coder:3b
# Optional: use the DevTrack Modelfile
ollama create qwen-dev -f Modelfile.qwen-dev

Once Ollama is running, the "Day Summary" block in the dashboard activates automatically.


Data & privacy

All data is stored locally:

~/.local/share/devtrack/devtrack.sqlite3

The daemon listens on 127.0.0.1:17321 and is NOT exposed to the network.


Uninstall

devtrack stop
pip uninstall devtrack-local
rm -rf ~/.local/share/devtrack/

Contributing

See CONTRIBUTING.md.
Spanish speakers: see docs/es/contribuir.md.


Made by

Built by Ultragresion — because saying "I wrote a lot of code today" hits different when you have a heatmap to prove it.

Metadata

Release files for devtrack-local 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for devtrack-local 0.2.0
File Size Uploaded
devtrack_local-0.2.0.tar.gz 594.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for devtrack-local 0.2.0
File Interpreter ABI Platform
devtrack_local-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 631.1 kB

Release files / devtrack_local-0.2.0.tar.gz

Download URL devtrack_local-0.2.0.tar.gz
Size 594.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bfc8cb901759dc6d6228dfb740808fd569b2b648a8bdad4eb3db4ca1aa7934ca
BLAKE2b-256 checksum
How to use checksums
3a31731265ae81709c6a326d91493d16950ec2606d2d33ee329fe5c318f1ebe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.14 {"installer":{"name":"uv","version":"0.12.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / devtrack_local-0.2.0-py3-none-any.whl

Download URL devtrack_local-0.2.0-py3-none-any.whl
Size 37.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6db1c17ecfb033d565b0c4083252789d1a6fdadcd4344e4a99cfd97d3ff6740d
BLAKE2b-256 checksum
How to use checksums
dba96210fa63acabfc3f6c0437310735143682114d78ff988b868c77c27a878f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.14 {"installer":{"name":"uv","version":"0.12.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page