Installation
Install the core package. Everything else is optional — install only what your stack needs.
Core package
bash
npm install @periodic/arsenicbash
yarn add @periodic/arsenicPeer dependencies
Arsenic has zero required dependencies. Install only the peer deps that match your stack:
Database adapters
bash
# MongoDB via Mongoose
npm install mongoose
# SQL via Prisma
npm install @prisma/client
# PostgreSQL raw driver
npm install pg
# Redis (either client works)
npm install redis
npm install ioredisFramework support
bash
npm install express # For Express
npm install fastify # For FastifyExporters
bash
npm install @opentelemetry/api # For OpenTelemetryPeer dependency table
| Package | Used for | Required? |
|---|---|---|
mongoose | MongoDB via Mongoose adapter | No — only with Mongoose |
@prisma/client | SQL databases via Prisma adapter | No — only with Prisma |
pg | PostgreSQL via raw pg adapter | No — only with pg |
ioredis / redis | Redis adapter | No — only with Redis |
express | Express request context | No — only with Express |
fastify | Fastify request context | No — only with Fastify |
@opentelemetry/api | OpenTelemetry exporter | No — only if using OTEL |
Requirements
- Node.js ≥ 16.0.0 (AsyncLocalStorage support)
- TypeScript ≥ 4.5.0 (if using TypeScript)
- npm ≥ 7.0.0
TypeScript support included
Full TypeScript types are bundled. No
@types/ package needed. Strict mode compatible.