# alexmojaki/heartrate

Simple real time visualisation of the execution of a Python program.

Repository: https://github.com/alexmojaki/heartrate
Canonical: https://ross.abutalabs.com/products/heartrate
Language: Python
License: MIT
License Family: permissive
Topics: python, visualization, debugger
Last push: 2021-11-13T14:58:11+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2688, "days_push": 1754, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1840, forks 121 (observed 2026-08-28T04:05:43.006788+00:00)

## What it is
A Python library that provides a real-time visualisation of program execution, showing line hit counts, recent activity bars, and a live stacktrace in a browser. It traces selected files via a simple trace() call and serves the visualisation from a local HTTP server.

## Use cases
- visualize which lines of my Python code execute in real time
- see how often each line is hit while my program runs
- debug a Python program with a live stacktrace in the browser
- trace execution of specific files in a Python app
- understand program flow of a running Python script

## When to choose
- you want lightweight, zero-config execution visualisation for a Python script
- you need a quick visual sense of hot code paths and current execution point
- you prefer a browser-based live view over a full debugger

## When to avoid
- you need step debugging, breakpoints, or variable inspection - use a full debugger like pdb or IDE debuggers
- you need production-grade profiling with performance metrics
- you need multi-threaded tracing out of the box - each thread must be traced separately

## Facets
- artifact type: library
- maturity: maintenance
- function: monitoring, developer-tools, data-visualization
- domain: developer-tools
- platform: python, cross-platform
- tags: debugger, code-visualization, line-tracing, live-stacktrace, profiling, debugging, python, web-server

## Member repositories
- alexmojaki/heartrate (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:43.006788+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:18:03.436874+00:00, confidence not recorded.
  - readme: https://github.com/alexmojaki/heartrate (fetched 2026-08-28T04:05:43.006788+00:00, sha 179c07c106c5)
  - registry_pypi: https://pypi.org/pypi/heartrate/json (fetched 2026-08-29T10:57:26.236774+00:00, sha 726e020b0330)
- Data as of 2026-08-30T08:39:29.467469+00:00.
