12 packages matching “crashlab”
crashlab
v1.0.0 · 4 months ago
**Find 1-in-a-million race conditions in milliseconds, not months.**
No known vulnerabilities
@crashlab/tcp
v1.0.0 · 4 months ago
TCP interception layer for CrashLab. Patches `net.createConnection`, `net.connect`, and `net.Socket.prototype.connect` to route all outbound TCP connections through registered mock handlers. No real network I/O ever occurs.
No known vulnerabilities
@crashlab/filesystem
v1.0.0 · 4 months ago
In-memory virtual filesystem for CrashLab. Patches `fs.readFileSync`, `writeFileSync`, `existsSync`, `mkdirSync`, `readdirSync`, `unlinkSync`, and `statSync`. Supports error injection (ENOSPC, EIO) with optional after-N-writes thresholds.
No known vulnerabilities
@crashlab/http-proxy
v1.0.0 · 4 months ago
Lightweight HTTP interceptor for deterministic simulation testing. Patches `http.request`/`https.request`, records calls, serves static mocks, and integrates with `@crashlab/clock` for virtual latency.
No known vulnerabilities
@crashlab/redis-mock
v1.0.0 · 4 months ago
Redis RESP protocol mock for CrashLab. Supports 16 commands: GET, SET, DEL, EXPIRE, TTL, INCR, DECR, LPUSH, RPUSH, LPOP, RPOP, HSET, HGET, SMEMBERS, SADD, ZADD, ZRANGE. TTL integrates with virtual clock. Throws `CrashLabUnsupportedRedisCommand` for unsupp
No known vulnerabilities
@crashlab/core
v1.0.0 · 4 months ago
Simulation harness for CrashLab. Orchestrates all modules: virtual clock, seeded PRNG, scheduler, HTTP/TCP interceptors, virtual filesystem, and fault injector. Provides `Simulation` class with `scenario()`, `run({ seeds })`, and `replay({ seed, scenario
No known vulnerabilities
@crashlab/pg-mock
v1.0.0 · 4 months ago
PostgreSQL wire protocol v3 mock for CrashLab. Supports startup handshake (no SSL), simple query protocol, RowDescription/DataRow/CommandComplete, BEGIN/COMMIT/ROLLBACK, and basic SQL patterns (SELECT/INSERT/UPDATE/DELETE with WHERE). Throws `CrashLabUnsu
No known vulnerabilities
@crashlab/mongo
v1.0.0 · 4 months ago
High-fidelity MongoDB proxy for deterministic simulation testing.
No known vulnerabilities
@crashlab/random
v1.0.0 · 4 months ago
Deterministic seeded PRNG for Node.js, backed by the Mulberry32 algorithm.
No known vulnerabilities
@crashlab/scheduler
v1.0.0 · 4 months ago
Cooperative deterministic scheduler for mock I/O boundaries. Holds enqueued completions until their virtual time arrives, then releases them in a PRNG-shuffled order — making all macro-level race conditions fully reproducible with the same seed. Does **no
No known vulnerabilities
@crashlab/clock
v1.0.0 · 4 months ago
Deterministic virtual clock for Node.js. Replaces `Date`, `setTimeout`, `setInterval`, `clearTimeout`, `clearInterval`, and `performance.now()` with manually-controllable fakes.
No known vulnerabilities
crashlab-typescript-recorder
v0.1.2 · 5 months ago
Lightweight TypeScript trace recorder helper for Crash Lab
No known vulnerabilities