See every request. Capture every error. Understand your application.
Cipher Logger is a lightweight, production-ready HTTP request logging library for Node.js. It captures every request with adapters for Express, Next.js, Fastify, Hono, NestJS, and Nuxt, with full control over which fields get logged.
- TypeScript-first, fully typed API
- Configurable fields — required fields always logged, optional fields opt-in
- Framework adapters via subpath imports (
cipher-logger/express,cipher-logger/next, …) - Zero heavy dependencies — only your framework as an optional peer dependency
- Node.js 18+
npm install cipher-logger
# or
pnpm add cipher-logger
# or
yarn add cipher-loggerimport { createCipherLogger } from "cipher-logger";
import { createExpressMiddleware } from "cipher-logger/express";
const cipher = createCipherLogger({
fields: { ip: true, userAgent: true, query: true },
level: "info",
});
app.use(createExpressMiddleware(cipher));
// or: app.use(cipher.express());Full documentation — configuration reference, framework guides, log schema, API reference, and architecture — lives on the docs site:
| Resource | URL |
|---|---|
| Npm Package | npmjs.com |
| Documentation | cipherunits.github.io/CipherLogger |
| GitHub Org | github.com/cipherunits |
Contributions are welcome.
- Check open issues before opening a new one
- Fork the repo and create a branch:
git checkout -b feature/my-feature - Follow Conventional Commits for commit messages
- Run
pnpm run buildbefore submitting - Open a Pull Request
See the full contributing guide on the docs site for details.
Made with ❤️ for developers by CipherUnits
