spb/earth-now Public License
earth-now.co — real-time planetary dashboard: live world metrics modeled, not streamed.
TypeScript 93%
Shell 2.3%
SQL 1.4%
JavaScript 1.3%
Dockerfile 1.2%
CSS 0.8%
1/**2 * earth-now.co3 * Author: Simon-Pierre Boucher4 * Contact: contact@spboucher.ai5 * File: packages/counter/src/index.ts6 * Purpose: Public entrypoint of the shared counter runtime (types, evaluation, windows, formatting)7 */89export {10 type CounterModel,11 type DisplayHints,12 type Harmonic,13 type RateFunction,14 DAY_SECONDS,15 SEASONAL_EPOCH_MS,16 WEEK_SECONDS,17 YEAR_SECONDS,18 parseIsoUtc,19} from "./counter-model.js";20export { counterValue, rateAt } from "./value.js";21export {22 type CounterWindow,23 startOfUtcDay,24 startOfUtcYear,25 windowValue,26} from "./windows.js";27export {28 type FormatOptions,29 formatCompact,30 formatRate,31 formatUncertainty,32 formatValue,33 roundToSigFigs,34} from "./format.js";35export { pchipDerivative, pchipEvaluate, pchipSlopes } from "./pchip.js";36