X12I · COUNTEX
Pre-aggregate arbitrary JSON events into query-ready counters
Define CounterMaps once, ingest at event time, and serve counts, measures, rankings, forecasts, and operational rollups without rescanning raw events.
What Countex gives you
Generic event mapping
Map arbitrary JSON paths into scope, subjects, metrics, dimensions, timeframes, deltas, and measures.
Sparse pre-aggregation
Store only observed cells so read cost follows the requested rollup, not raw event volume.
Durable plus fast storage
Use MongoDB for durable truth, Redis for hot reads, or memory for tests and local workflows.
Insights and simulation
Rank, compare, detect anomalies, forecast, advise, and estimate capacity over the same counter model.
Build your first counter
- 1Install @x12i/countex
- 2Define and preview a CounterMap
- 3Ingest, flush, and query
Prepare for production
- 1Choose durable and cache adapters
- 2Estimate fan-out and resources
- 3Add health checks, backup, and shutdown
Featured books
View full catalog →Countex is an embedded Node.js library for generic counter workloads. Your application owns event schemas, tenant routing, source-of-truth data, and rebuild policy; Countex owns projection, aggregation, storage, and retrieval.