data-decay-estimator v1.0.1

Crystal CLI and library: how many contact records go stale over time at a yearly decay rate you set, MIT

data-decay-estimator

A small Crystal command-line tool and library that estimates how stale a B2B contact list gets. Contact data hygiene fades as people change jobs and domains close; you tell the tool your own yearly decay rate (the 25% below is only an example input, not a market figure) and it shows, for a list of a given size, how many records are stale after 3, 6, 9 and 12 months and in which month the stale share crosses the limit you set. The rate compounds monthly. Crystal 1.10 or later, no dependencies. Built by OneGTMLab (GTM engineering for B2B teams).

Install

dependencies:
  data-decay-estimator:
    github: jaizendra-netizen/data-decay-estimator

Or build the command: shards build (the binary lands in bin/).

Use

data-decay-estimator --records 10000 --annual-decay 25
records 10000, yearly decay 25.0%
month  stale  still_good  stale_share
    3    694        9306         6.9%
    6   1340        8660        13.4%
    9   1941        8059        19.4%
   12   2500        7500        25.0%
stale share reaches 20.0% in month 10

Options: --records N and --annual-decay P are required, --months N (default 12) sets the last row, --limit P (default 20) sets the stale share to watch. With a decay rate of 0 the tool says so:

stale share never reaches 20.0% at this rate

A decay rate outside 0 to 100, a non-number or an unknown option prints error: ... and exits 1. From code: DataDecayEstimator.stale_count(10_000, 25.0, 12) returns 2500.

Test

crystal spec

MIT licence.

Repository

data-decay-estimator

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • 4 minutes ago
  • November 28, 2026
License

MIT License

Links
Synced at

Sat, 28 Nov 2026 17:29:38 GMT

Languages