v0.1.0
First public release.
- Estimates the number of distinct values (F0) in a stream with bounded memory and (ε, δ) guarantees.
- Implements the total, unbiased CVM variant (Karayel, Watt, Khu, Meel & Tan, ITP 2025, Algorithm 3): it never fails, and the estimate's expected value is exactly the true count.
- APIs:
estimateDistinct(promise),DistinctEstimateStream(Writable sink),CVM(pure core), pluscomputeThresholdandcreateRandom. - ESM-only, zero runtime dependencies, hand-written TypeScript types, Node ≥ 18.