@x12i/countex 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +520 -0
- package/dist/backup/export.d.ts +19 -0
- package/dist/backup/export.d.ts.map +1 -0
- package/dist/backup/export.js +36 -0
- package/dist/backup/export.js.map +1 -0
- package/dist/core/buffer.d.ts +27 -0
- package/dist/core/buffer.d.ts.map +1 -0
- package/dist/core/buffer.js +63 -0
- package/dist/core/buffer.js.map +1 -0
- package/dist/core/cardinality.d.ts +43 -0
- package/dist/core/cardinality.d.ts.map +1 -0
- package/dist/core/cardinality.js +93 -0
- package/dist/core/cardinality.js.map +1 -0
- package/dist/core/countex.d.ts +49 -0
- package/dist/core/countex.d.ts.map +1 -0
- package/dist/core/countex.js +331 -0
- package/dist/core/countex.js.map +1 -0
- package/dist/core/extraction.d.ts +39 -0
- package/dist/core/extraction.d.ts.map +1 -0
- package/dist/core/extraction.js +176 -0
- package/dist/core/extraction.js.map +1 -0
- package/dist/core/mapping.d.ts +8 -0
- package/dist/core/mapping.d.ts.map +1 -0
- package/dist/core/mapping.js +90 -0
- package/dist/core/mapping.js.map +1 -0
- package/dist/core/normalization.d.ts +15 -0
- package/dist/core/normalization.d.ts.map +1 -0
- package/dist/core/normalization.js +43 -0
- package/dist/core/normalization.js.map +1 -0
- package/dist/core/timeframe.d.ts +30 -0
- package/dist/core/timeframe.d.ts.map +1 -0
- package/dist/core/timeframe.js +151 -0
- package/dist/core/timeframe.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/query/formatter.d.ts +9 -0
- package/dist/query/formatter.d.ts.map +1 -0
- package/dist/query/formatter.js +119 -0
- package/dist/query/formatter.js.map +1 -0
- package/dist/query/planner.d.ts +14 -0
- package/dist/query/planner.d.ts.map +1 -0
- package/dist/query/planner.js +32 -0
- package/dist/query/planner.js.map +1 -0
- package/dist/storage/memory.d.ts +36 -0
- package/dist/storage/memory.d.ts.map +1 -0
- package/dist/storage/memory.js +150 -0
- package/dist/storage/memory.js.map +1 -0
- package/dist/storage/mongo.d.ts +56 -0
- package/dist/storage/mongo.d.ts.map +1 -0
- package/dist/storage/mongo.js +323 -0
- package/dist/storage/mongo.js.map +1 -0
- package/dist/storage/redis.d.ts +44 -0
- package/dist/storage/redis.d.ts.map +1 -0
- package/dist/storage/redis.js +193 -0
- package/dist/storage/redis.js.map +1 -0
- package/dist/types/index.d.ts +317 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +9 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/errors.d.ts +20 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +44 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/hash.d.ts +30 -0
- package/dist/utils/hash.d.ts.map +1 -0
- package/dist/utils/hash.js +61 -0
- package/dist/utils/hash.js.map +1 -0
- package/dist/utils/jsonpath.d.ts +40 -0
- package/dist/utils/jsonpath.d.ts.map +1 -0
- package/dist/utils/jsonpath.js +162 -0
- package/dist/utils/jsonpath.js.map +1 -0
- package/dist/utils/logger.d.ts +7 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +24 -0
- package/dist/utils/logger.js.map +1 -0
- package/docs/DEPLOYMENT.md +244 -0
- package/docs/END_TO_END_EXAMPLE.md +316 -0
- package/package.json +91 -0
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
# End-to-end example — access-style counters with `@x12i/countex`
|
|
2
|
+
|
|
3
|
+
This tutorial walks through one complete use case: **counting labeled “access” activity per tenant**, broken down by **actor/target**, **labels**, **event type**, and **time**.
|
|
4
|
+
|
|
5
|
+
You will:
|
|
6
|
+
|
|
7
|
+
1. Install the package (and optional adapters).
|
|
8
|
+
2. Declare a **counter map** that describes how JSON events become increments.
|
|
9
|
+
3. Run **in-memory** adapters (no external services).
|
|
10
|
+
4. **Ingest** events, **flush**, and **query** aggregated results.
|
|
11
|
+
5. See how the same map plugs into **MongoDB + Redis** in production.
|
|
12
|
+
|
|
13
|
+
After `npm install @x12i/countex`, this file is available at `node_modules/@x12i/countex/docs/END_TO_END_EXAMPLE.md` (see **Stable paths** below).
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Domain scenario
|
|
18
|
+
|
|
19
|
+
Imagine your product emits JSON events like:
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"tenant": { "id": "org_123" },
|
|
24
|
+
"event": {
|
|
25
|
+
"id": "evt_001",
|
|
26
|
+
"type": "share",
|
|
27
|
+
"situation": "external",
|
|
28
|
+
"createdAt": "2026-05-08T14:33:00Z"
|
|
29
|
+
},
|
|
30
|
+
"actor": { "id": "user_42" },
|
|
31
|
+
"target": { "id": "doc_99", "type": "document" },
|
|
32
|
+
"labels": ["PCI", "PII"]
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
You want to answer:
|
|
37
|
+
|
|
38
|
+
- How many **label hits** (`PCI`, `PII`, …) per **day**, per **actor** or **target**?
|
|
39
|
+
- How does **event type** (`share` vs `download`) break down over time?
|
|
40
|
+
|
|
41
|
+
Countex does not know “tenant” or “document” — only **scope**, **subjects**, **metrics**, **dimensions**, **timeframes**, and **delta**. You map your JSON into those primitives once.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Step 1 — Install
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm install @x12i/countex
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
For the **production** section later:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npm install mongodb ioredis
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Step 2 — Define the counter map
|
|
60
|
+
|
|
61
|
+
A **`CounterMap`** tells Countex how to read each field from an event:
|
|
62
|
+
|
|
63
|
+
| Map field | Meaning in this example |
|
|
64
|
+
|-----------|-------------------------|
|
|
65
|
+
| `counterId` | Logical name for this matrix (e.g. `access_by_subject_metric`). |
|
|
66
|
+
| `scope` | Tenant boundary — JSONPath to `$.tenant.id`. |
|
|
67
|
+
| `eventTime` | Bucketing time — `$.event.createdAt` (ISO string or `Date`). |
|
|
68
|
+
| `subjects` | Two extractors: **actor** (`$.actor.id`) required, **target** (`$.target.id`) optional. Each produces separate cells. |
|
|
69
|
+
| `metrics` | Fan-out over **labels** — `$.labels[*]` (each label is one metric value). |
|
|
70
|
+
| `dimensions` | Breakdown fields: event type, situation, target type. |
|
|
71
|
+
| `delta` | How much to add (default `1`, or a path like `$.change`). |
|
|
72
|
+
| `timeframes` | Which buckets to maintain (`day`, `week`, …). |
|
|
73
|
+
|
|
74
|
+
Example map (TypeScript):
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
import type { CounterMap } from "@x12i/countex";
|
|
78
|
+
|
|
79
|
+
export const accessMap: CounterMap = {
|
|
80
|
+
counterId: "access_by_subject_metric",
|
|
81
|
+
|
|
82
|
+
scope: { path: "$.tenant.id" },
|
|
83
|
+
eventTime: { path: "$.event.createdAt" },
|
|
84
|
+
|
|
85
|
+
subjects: [
|
|
86
|
+
{ type: "actor", path: "$.actor.id", required: true },
|
|
87
|
+
{ type: "target", path: "$.target.id", required: false },
|
|
88
|
+
],
|
|
89
|
+
|
|
90
|
+
metrics: [{ path: "$.labels[*]", required: true }],
|
|
91
|
+
|
|
92
|
+
dimensions: [
|
|
93
|
+
{ name: "eventType", path: "$.event.type" },
|
|
94
|
+
{ name: "situation", path: "$.event.situation" },
|
|
95
|
+
{ name: "targetType", path: "$.target.type" },
|
|
96
|
+
],
|
|
97
|
+
|
|
98
|
+
delta: { default: 1 },
|
|
99
|
+
timeframes: ["day", "week", "month", "quarter", "year"],
|
|
100
|
+
};
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**Cardinality:** each distinct actor id, label string, and dimension value participates in dictionary or dimension hashing. For high-cardinality streams, configure **`cardinality`** on `createCountex` (see README).
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Step 3 — Full in-memory program
|
|
108
|
+
|
|
109
|
+
No Mongo or Redis — ideal for tests and local demos.
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
import { createCountex } from "@x12i/countex";
|
|
113
|
+
import { MemoryDurable, MemoryCache } from "@x12i/countex/adapters/memory";
|
|
114
|
+
import type { CounterMap } from "@x12i/countex";
|
|
115
|
+
|
|
116
|
+
const accessMap: CounterMap = {
|
|
117
|
+
counterId: "access_by_subject_metric",
|
|
118
|
+
scope: { path: "$.tenant.id" },
|
|
119
|
+
eventTime: { path: "$.event.createdAt" },
|
|
120
|
+
subjects: [
|
|
121
|
+
{ type: "actor", path: "$.actor.id", required: true },
|
|
122
|
+
{ type: "target", path: "$.target.id", required: false },
|
|
123
|
+
],
|
|
124
|
+
metrics: [{ path: "$.labels[*]", required: true }],
|
|
125
|
+
dimensions: [
|
|
126
|
+
{ name: "eventType", path: "$.event.type" },
|
|
127
|
+
{ name: "situation", path: "$.event.situation" },
|
|
128
|
+
{ name: "targetType", path: "$.target.type" },
|
|
129
|
+
],
|
|
130
|
+
delta: { default: 1 },
|
|
131
|
+
timeframes: ["day", "week", "month"],
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
async function main() {
|
|
135
|
+
const countex = createCountex({
|
|
136
|
+
maps: [accessMap],
|
|
137
|
+
durable: new MemoryDurable(),
|
|
138
|
+
cache: new MemoryCache(),
|
|
139
|
+
flush: { everyMs: 0 }, // manual flush for clarity
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
await countex.ingest({
|
|
143
|
+
tenant: { id: "org_123" },
|
|
144
|
+
event: {
|
|
145
|
+
type: "share",
|
|
146
|
+
situation: "external",
|
|
147
|
+
createdAt: "2026-05-08T14:33:00Z",
|
|
148
|
+
},
|
|
149
|
+
actor: { id: "user_42" },
|
|
150
|
+
target: { id: "doc_99", type: "document" },
|
|
151
|
+
labels: ["PCI", "PII"],
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
await countex.flush();
|
|
155
|
+
|
|
156
|
+
const table = await countex.query({
|
|
157
|
+
scope: "org_123",
|
|
158
|
+
counterId: "access_by_subject_metric",
|
|
159
|
+
timeframe: { type: "day", from: "2026-05-08", to: "2026-05-08" },
|
|
160
|
+
groupBy: ["metric"],
|
|
161
|
+
format: "table",
|
|
162
|
+
orderBy: "-count",
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
console.log(table.rows);
|
|
166
|
+
await countex.shutdown();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
main();
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## Step 4 — What happened?
|
|
175
|
+
|
|
176
|
+
For that single event:
|
|
177
|
+
|
|
178
|
+
- **Subjects:** actor + target ⇒ **2** subject lines (if target present).
|
|
179
|
+
- **Metrics:** two labels ⇒ **2** metrics.
|
|
180
|
+
- **Timeframes:** `day`, `week`, `month` ⇒ **3** buckets per combination.
|
|
181
|
+
|
|
182
|
+
So you get **2 × 2 × 3 = 12** buffered cell deltas from one ingest (before merging duplicate cells). Exact merged cell count depends on shared identities.
|
|
183
|
+
|
|
184
|
+
After **`flush`**, those cells exist in **`MemoryDurable`** and are mirrored to **`MemoryCache`** for reads.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Step 5 — Queries you can run
|
|
189
|
+
|
|
190
|
+
**Table — top metrics for one day:**
|
|
191
|
+
|
|
192
|
+
```ts
|
|
193
|
+
await countex.query({
|
|
194
|
+
scope: "org_123",
|
|
195
|
+
counterId: "access_by_subject_metric",
|
|
196
|
+
timeframe: { type: "day", from: "2026-05-08", to: "2026-05-08" },
|
|
197
|
+
groupBy: ["metric"],
|
|
198
|
+
format: "table",
|
|
199
|
+
orderBy: "-count",
|
|
200
|
+
limit: 50,
|
|
201
|
+
});
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**Timeseries — counts by day and event type:**
|
|
205
|
+
|
|
206
|
+
```ts
|
|
207
|
+
await countex.query({
|
|
208
|
+
scope: "org_123",
|
|
209
|
+
counterId: "access_by_subject_metric",
|
|
210
|
+
timeframe: { type: "day", from: "2026-05-01", to: "2026-05-08" },
|
|
211
|
+
groupBy: ["dim:eventType"],
|
|
212
|
+
format: "timeseries",
|
|
213
|
+
});
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**Pivot dimensions** using `groupBy: ["subject", "metric", "dim:eventType"]` etc. See README for full query options.
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Step 6 — Production shape (Mongo + Redis)
|
|
221
|
+
|
|
222
|
+
Swap adapters only; the **same map** stays.
|
|
223
|
+
|
|
224
|
+
Conceptually:
|
|
225
|
+
|
|
226
|
+
```ts
|
|
227
|
+
import { MongoClient } from "mongodb";
|
|
228
|
+
import IORedis from "ioredis";
|
|
229
|
+
import { createCountex } from "@x12i/countex";
|
|
230
|
+
import { MongoDurable } from "@x12i/countex/adapters/mongo";
|
|
231
|
+
import { RedisCache } from "@x12i/countex/adapters/redis";
|
|
232
|
+
|
|
233
|
+
const mongo = new MongoClient(process.env.MONGO_URI!);
|
|
234
|
+
await mongo.connect();
|
|
235
|
+
const redis = new IORedis(process.env.REDIS_URL!);
|
|
236
|
+
|
|
237
|
+
const countex = createCountex({
|
|
238
|
+
maps: [accessMap],
|
|
239
|
+
durable: new MongoDurable({
|
|
240
|
+
client: mongo,
|
|
241
|
+
dbResolver: ({ scope }) => `countex_${scope}`,
|
|
242
|
+
}),
|
|
243
|
+
cache: new RedisCache({
|
|
244
|
+
client: redis,
|
|
245
|
+
keyPrefix: "countex",
|
|
246
|
+
ttlSeconds: 92 * 24 * 3600,
|
|
247
|
+
}),
|
|
248
|
+
flush: {
|
|
249
|
+
everyMs: 60_000,
|
|
250
|
+
maxBufferedCells: 100_000,
|
|
251
|
+
maxBufferedEvents: 50_000,
|
|
252
|
+
flushOnShutdown: true,
|
|
253
|
+
},
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
await countex.init();
|
|
257
|
+
// … ingest from your queue / API …
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
Operational checklist (indexes, URIs, shutdown) is in **`DEPLOYMENT.md`**.
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## Step 7 — Idempotency (optional)
|
|
265
|
+
|
|
266
|
+
To skip duplicate **logical events**, enable **`idempotency`** on the map and ensure **`RedisCache`** implements **`markEventSeen`**:
|
|
267
|
+
|
|
268
|
+
```ts
|
|
269
|
+
const accessMapWithDedupe: CounterMap = {
|
|
270
|
+
...accessMap,
|
|
271
|
+
idempotency: {
|
|
272
|
+
enabled: true,
|
|
273
|
+
eventIdPath: "$.event.id",
|
|
274
|
+
ttlSeconds: 86_400,
|
|
275
|
+
},
|
|
276
|
+
};
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
Second ingest with the same `event.id` for that scope produces **no new increments** (and emits a **`duplicate`** event).
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## Runnable scripts in the Git repository
|
|
284
|
+
|
|
285
|
+
The npm tarball includes **`dist/`**, **`README.md`**, **`LICENSE`**, and **`docs/`** — not the repo’s **`examples/`** folder. To run the maintained scripts that mirror this tutorial:
|
|
286
|
+
|
|
287
|
+
1. Clone **https://github.com/x12i/countex**.
|
|
288
|
+
2. **`npm install`**
|
|
289
|
+
3. **`npx tsx examples/basic.ts`** — in-memory path.
|
|
290
|
+
4. **`MONGO_URI=... REDIS_URL=... npx tsx examples/access-counter.ts`** — Mongo + Redis path.
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## Stable paths inside the published package
|
|
295
|
+
|
|
296
|
+
| Document | Subpath (package exports) | File on disk |
|
|
297
|
+
|----------|---------------------------|--------------|
|
|
298
|
+
| Deployment guide | `@x12i/countex/docs/deployment` | `docs/DEPLOYMENT.md` |
|
|
299
|
+
| This tutorial | `@x12i/countex/docs/end-to-end-example` | `docs/END_TO_END_EXAMPLE.md` |
|
|
300
|
+
|
|
301
|
+
Resolve from Node if needed:
|
|
302
|
+
|
|
303
|
+
```js
|
|
304
|
+
import { createRequire } from "node:module";
|
|
305
|
+
import path from "node:path";
|
|
306
|
+
const require = createRequire(import.meta.url);
|
|
307
|
+
const root = path.dirname(require.resolve("@x12i/countex/package.json"));
|
|
308
|
+
// path.join(root, "docs", "END_TO_END_EXAMPLE.md")
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Related
|
|
314
|
+
|
|
315
|
+
- **`DEPLOYMENT.md`** — npm release and production deployment steps.
|
|
316
|
+
- **README** — API reference, mental model, and additional examples.
|
package/package.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@x12i/countex",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Generic sparse counter matrices for JSON events. Dynamic counting, aggregation, and retrieval from mapped JSON inputs.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/x12i/countex.git"
|
|
8
|
+
},
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/x12i/countex/issues"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/x12i/countex#readme",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"registry": "https://registry.npmjs.org/"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"counters",
|
|
19
|
+
"aggregation",
|
|
20
|
+
"analytics",
|
|
21
|
+
"metrics",
|
|
22
|
+
"sparse-matrix",
|
|
23
|
+
"mongo",
|
|
24
|
+
"redis",
|
|
25
|
+
"events",
|
|
26
|
+
"timeseries"
|
|
27
|
+
],
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"author": "x12i",
|
|
30
|
+
"main": "dist/index.js",
|
|
31
|
+
"types": "dist/index.d.ts",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"import": "./dist/index.js",
|
|
36
|
+
"require": "./dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./adapters/mongo": {
|
|
39
|
+
"types": "./dist/storage/mongo.d.ts",
|
|
40
|
+
"import": "./dist/storage/mongo.js",
|
|
41
|
+
"require": "./dist/storage/mongo.js"
|
|
42
|
+
},
|
|
43
|
+
"./adapters/redis": {
|
|
44
|
+
"types": "./dist/storage/redis.d.ts",
|
|
45
|
+
"import": "./dist/storage/redis.js",
|
|
46
|
+
"require": "./dist/storage/redis.js"
|
|
47
|
+
},
|
|
48
|
+
"./adapters/memory": {
|
|
49
|
+
"types": "./dist/storage/memory.d.ts",
|
|
50
|
+
"import": "./dist/storage/memory.js",
|
|
51
|
+
"require": "./dist/storage/memory.js"
|
|
52
|
+
},
|
|
53
|
+
"./docs/deployment": "./docs/DEPLOYMENT.md",
|
|
54
|
+
"./docs/end-to-end-example": "./docs/END_TO_END_EXAMPLE.md"
|
|
55
|
+
},
|
|
56
|
+
"files": [
|
|
57
|
+
"dist",
|
|
58
|
+
"docs",
|
|
59
|
+
"README.md",
|
|
60
|
+
"LICENSE"
|
|
61
|
+
],
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "tsc",
|
|
64
|
+
"clean": "rm -rf dist",
|
|
65
|
+
"test": "node --test --import=tsx tests/unit/*.test.ts",
|
|
66
|
+
"test:integration": "node --test --import=tsx tests/integration/*.test.ts",
|
|
67
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"ioredis": "^5.10.1",
|
|
71
|
+
"mongodb": "^7.2.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"mongodb": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"ioredis": {
|
|
78
|
+
"optional": true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@types/node": "^20.19.40",
|
|
83
|
+
"ioredis": "^5.10.1",
|
|
84
|
+
"mongodb": "^7.2.0",
|
|
85
|
+
"tsx": "^4.21.0",
|
|
86
|
+
"typescript": "^5.9.3"
|
|
87
|
+
},
|
|
88
|
+
"engines": {
|
|
89
|
+
"node": ">=18"
|
|
90
|
+
}
|
|
91
|
+
}
|