START HERE

Build your first Countex counter

Install the package, define a CounterMap, preview its cells, ingest events, flush, and query.

npm

Install for agents & tooling

Knowledge SDK โ€” install as a devDependency only (not a production runtime).

npm i -D @x12i/countex-docs

Agents / SDK details โ†’ ยท agent-manifest.json

Local quick start
  1. 1npm install @x12i/countex
  2. 2Define a CounterMap and create an in-memory client
  3. 3Preview, ingest, flush, and query
Production path
  1. 1Add MongoDB and optionally Redis
  2. 2Configure idempotency and cardinality controls
  3. 3Add lifecycle metrics, backup, and graceful shutdown

Node.js 18 or later is required by @x12i/countex. MongoDB and Redis are optional peer dependencies; install only the adapters your deployment uses.