Bunyan
Keep, but not for new work. 9th of 9 logging libraries.
Bunyan was the first popular JSON logger for Node.js. It still works, but nobody has released it since January 2021 or committed to it since 2023. Pino uses the same model of child loggers and serializers, is faster, and is actively maintained. Keep Bunyan where it already runs, and pick Pino for new work.
Best for: Teams that already run Bunyan in Node.js services and want to keep it until they migrate.
Scores
Overall3.4
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
It still works, but it has been unmaintained since 2021 and is losing share. Pino covers the same design with better speed, types and active upkeep. Keep it where it runs, but do not choose it for new projects.
- pkgpulse.com/guides/best-nodejs-logging-libraries-2026: Legacy; Pino does the same job faster, and migration is straightforward.
- blog.sentry.io/javascript-logging-library-definitive-guide: Not recommended for new projects.
- peers Pino: Pino is active, with 311M downloads and growing at a ratio of about 5.1.
GPT-6.2 Sol: 3.8, likely 2.7 to 4.9
Bunyan still does the core job and makes sense where existing services depend on its log format. Pino is the stronger choice for a new Node.js service because it is actively maintained, has built-in redaction, and performs better in Node.js benchmarks. The range allows for projects that prize compatibility with an existing logging pipeline.
- npm.latestPublishedAt and peers: Bunyan’s stable release dates to 2021 and Pino published in October 2026.
- engineering.dept.global/in-praise-of-logging-a-node-js-javascript-logging-guide: Independent benchmark and practitioner comparison favor Pino.
- fastify.dev/docs/latest/Reference/Logging/#log-redaction: Fastify uses Pino and documents its configurable redaction.
- blog.sentry.io/javascript-logging-library-definitive-guide: Sentry favors retaining Bunyan in existing codebases.
Needed by many5.9
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Structured logging is needed by most backend developers. Bunyan serves only Node.js servers, not browsers or other runtimes, so it is narrower than the category.
- blog.sentry.io/javascript-logging-library-definitive-guide: Says Bunyan runs on Node.js only.
- github description: Describes itself as a JSON logging module for Node.js services.
GPT-6.2 Sol: 5.8, likely 4.7 to 7.0
Structured logs with levels are useful across Node.js services, and 46.4% of respondents to the 2026 Stack Overflow web technology question reported using Node.js. Bunyan primarily targets Node.js, with some documented browser bundler support and unresolved reports from users on the Next.js Edge Runtime. The survey measures runtime use, so the share of developers who need this kind of logger is an estimate.
- survey.stackoverflow.co/2026/technology/data: Node.js reached 46.4% among web technology respondents.
- github.com/trentm/node-bunyan#runtime-environments: Node.js is the primary target and the only regularly tested environment.
- github.com/trentm/node-bunyan/issues/717: Several users report Next.js Edge Runtime incompatibility.
Helps a lot5.7
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
The core features are solid: JSON output, child loggers, serializers, streams and a CLI viewer. However, it has no built-in types or redaction, it is about 2.4x slower than Pino in one benchmark, and bugs stay unfixed. Pino does the same job better.
- pkgpulse.com/guides/best-nodejs-logging-libraries-2026: Benchmark: Bunyan 1,100ms vs Pino 450ms for 100k log calls. Calls Bunyan a legacy choice.
- npm hasTypes: No bundled TypeScript types.
- github.com/trentm/node-bunyan/issues: A 2026 crash report against 1.8.15 is still open.
GPT-6.2 Sol: 6.3, likely 5.2 to 7.4
Stable 1.8.15 covers core structured logging with a documented API, child loggers, serializers, multiple streams, and a CLI. TypeScript declarations come separately, and field redaction takes custom code. An independent DEPT benchmark and a newer benchmark from LogTape both favor Pino on Node.js, though the performance gap depends on the workload.
- github.com/trentm/node-bunyan: Documents the logging API, streams, serializers, and CLI.
- raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/types/bunyan/index.d.ts: DefinitelyTyped supplies separate TypeScript declarations.
- github.com/trentm/node-bunyan/issues/718: Open request for built-in redaction describes a custom serializer workaround.
- engineering.dept.global/in-praise-of-logging-a-node-js-javascript-logging-guide: DEPT’s independent file-output benchmark put Pino ahead of Bunyan.
- logtape.org/comparison#performance-comparison: A competing maintainer’s benchmark found higher Node.js overhead for Bunyan 1.8.15.
Holds up over time2.2
Will it still be a good choice in two years?
Claude Opus 5.5: 2.0, likely 1.0 to 3.0
There were no commits or releases in the last year, and the last npm release was January 2021. The open issues (230) and open pull requests (60) outnumber the merged ones. One person owns the project, the ecosystem has moved to Pino, and it is not formally deprecated.
- github commitsLastYear / releasesLastYear: Both are 0; the last push was September 2023.
- npm latestPublishedAt: 2021-01-08.
- scorecard Maintained: Scored 0.
- blog.sentry.io/javascript-logging-library-definitive-guide: 5 years since the last release; not recommended for new projects.
GPT-6.2 Sol: 2.3, likely 1.2 to 3.7
The last stable npm release was in January 2021, and GitHub recorded zero commits and 60 open pull requests. The repository remains open, but the 2.x line is still marked beta and users are still reporting issues against the stable release. Existing services may run it for years, but the long gap makes timely fixes hard to count on.
- npm.latestPublishedAt: Stable 1.8.15 was published in January 2021.
- github: Zero commits and releases in the past year, with 60 open pull requests.
- github.com/trentm/node-bunyan/blob/master/CHANGES.md: The 2.x changelog still marks its newest entry as beta.
- github.com/trentm/node-bunyan/issues/731: A February 2026 CLI crash report on 1.8.15 remains open.
- peers: Pino recorded 82 commits in the past year and published in October 2026.
Used widely4.9
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Bunyan still gets about 22M downloads every 4 weeks and has 44k dependent repositories, but much of that comes from old code and transitive installs. Its download ratio of about 2.2 is well below the 4.1 median, so it is losing share. Pino and winston are far ahead.
- npm downloadsLast4Weeks vs downloadsSame4WeeksYearAgo: 22.0M vs 10.2M, a ratio of about 2.2, below the 4.1 median.
- dependents.repos: 44,385, vs 66k for Pino and 286k for winston.
- bluesky / hackerNews: No current attention.
GPT-6.2 Sol: 4.8, likely 3.7 to 6.1
Ecosyste.ms found about 44,400 dependent repositories and 3,549 packages, a substantial installed base below Pino and Winston on repository count. Four-week downloads rose from 10.2 million to 22.0 million, but the 2.16× increase trails the 4.1× catalog median and Pino’s 5.10× increase. Repeat installs and dependencies such as Renovate inflate the count, so the pace of new direct adoption is uncertain.
- dependents: 44,385 repositories and 3,549 packages in the collector’s index.
- npm.downloadsLast4Weeks and npm.downloadsSame4WeeksYearAgo: 22.0 million installs versus 10.2 million a year earlier.
- medianDownloadsRatio: 4.1× catalog median versus Bunyan’s 2.16×.
- peers: Pino has 66,445 dependent repositories and 5.10× download growth.
- github.stars and bluesky.posts: 7,206 GitHub stars and zero tracked Bluesky posts.
- raw.githubusercontent.com/renovatebot/renovate/44.245.0/package.json: Renovate’s November release pins Bunyan, generating indirect installs.
Vouched for4.4
Who stands behind it being good?
Claude Opus 5.5: 3.0, likely 2.0 to 5.0
Bunyan has a long history of production use, including Joyent and restify. Current independent write-ups, however, call it legacy and advise against it for new projects. Its recent endorsements are weak.
- blog.sentry.io/javascript-logging-library-definitive-guide: Popular, but not recommended for new projects.
- pkgpulse.com/guides/best-nodejs-logging-libraries-2026: Calls it stagnant and says it is not a realistic choice for new projects.
- restify / Joyent history: Historical production backing that is now old.
GPT-6.2 Sol: 5.7, likely 4.5 to 6.9
Google Cloud still ships a Bunyan integration, and Renovate’s November 2026 release depends on Bunyan directly. Salesforce CLI and Restify both moved to Pino, and Sentry’s 2026 guide recommends Bunyan for existing codebases. These sources show continuing use, with weaker evidence that teams are choosing it for new work.
- raw.githubusercontent.com/googleapis/google-cloud-node/main/handwritten/logging-bunyan/CHANGELOG.md: Google Cloud’s integration had an October 2026 release.
- raw.githubusercontent.com/renovatebot/renovate/44.245.0/package.json: A recent Renovate release depends directly on Bunyan.
- raw.githubusercontent.com/forcedotcom/cli/main/releasenotes/README.md: Salesforce CLI documented its switch from Bunyan to Pino.
- github.com/restify/node-restify/releases: Restify’s 9.0 release records its switch to Pino.
- blog.sentry.io/javascript-logging-library-definitive-guide: Sentry offers an integration and recommends Bunyan for existing codebases.
Safe4.9
How safe is it to depend on?
Claude Opus 5.5: 5.0, likely 4.0 to 7.0
It has an MIT licence, no advisories and few dependencies, which are mostly optional. However, the Scorecard is 3.1, with no security policy, no branch protection and no maintenance. Any future vulnerability would likely go unpatched.
- advisories.total: 0 advisories.
- scorecard score: 3.1; Security-Policy, Branch-Protection and Maintained are all 0.
- npm dependencies / license: 4 dependencies; MIT licence.
- github.com/trentm/node-bunyan/issues: The SECURITY.md pull request has been open since 2022.
GPT-6.2 Sol: 4.8, likely 3.4 to 6.4
Bunyan is MIT-licensed and declares four optional runtime dependencies. The bundle lists zero OSV entries, and the project’s changelog records an older CLI vulnerability fixed in 1.8.13. The optional file-rotation dependency chain has an open report about a memory leak in inflight, and the 3.1 OpenSSF Scorecard flags weak code review, branch protection, and security policy checks. Risk varies with the optional features installed, and current release safeguards are unclear.
- advisories: The collector found zero OSV entries for Bunyan.
- scorecard: 3.1 overall, with code review at 2 and branch protection and security policy at 0.
- raw.githubusercontent.com/trentm/node-bunyan/1.x/package.json: MIT license and four optional runtime dependencies.
- raw.githubusercontent.com/trentm/node-bunyan/1.x/CHANGES.md: Documents the historical CLI security fix in 1.8.13.
- github.com/trentm/node-bunyan/issues/729: Open report identifies inflight in the optional file-rotation dependency chain.
Good
- Simple JSON-lines output, with child loggers, serializers and levels that have proven themselves over many years.
- The bundled bunyan CLI pretty-prints and filters log files.
- No known security advisories, and its few runtime dependencies are mostly optional.
- Its API is close to Pino's, so moving away from it is easy.
Bad
- No release since 1.8.15 in January 2021, no commits since 2023, and about 230 open issues.
- It has no built-in TypeScript types, so you need the community @types/bunyan package.
- It is slower than Pino in independent benchmarks and has no built-in redaction.
- It runs only on Node.js, and the optional native dtrace-provider dependency has caused install problems in the past.
The numbers
- npm downloads, 4 weeks
- 22M ×2.2 in a year
- GitHub stars
- 7.2k
- Commits, 12 months
- 0
- npm version
- 1.8.15 Jan 2021
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.1 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (trentm/node-bunyan), npm (bunyan), OSV and the OpenSSF Scorecard.