ds-express-errors

ds-express-errors

Centralized error management for Express.js

dianastoyka
@dianastoyka
Last updated on Jan 12, 2026
Visit site
2 PeerPush
🔥
Awarded
Trending Now
PeerPush

Details

Follow on
LinkedIn
Categories
Developer Tools
Platforms
Web

Discovery signals

How AI and people discover ds-express-errors on PeerPush

Last AI readLast AI readHow long ago an AI crawler last read this listing.
2 days ago
  • ChatGPT

5 AI crawlers in the last 30 days

Time since an AI crawler last read this listing. 5 AI crawlers read it in the last 30 days.
Live AI conversations 30dLive AI fetchesReads that happened live while an AI assistant was answering a real user question, not routine background crawling.
13

Fetched by AI answering users

Fetched by ChatGPT while answering real user questions.

About ds-express-errors

ds-express-errors provides a single, predictable error-handling strategy for Express.js APIs, replacing scattered try/catch blocks and inconsistent responses. It automatically maps errors from tools like Zod, Joi, express-validator, Prisma, Mongoose, Sequelize, and JWT into proper HTTP errors with consistent JSON output. Everything is fully configurable — response shape, logging, environments, and custom error mapping. Built for production with async handling, process-level guards, graceful shutdowns, and full TypeScript support

Screenshots

Screenshot 1 of ds-express-errors
Screenshot 2 of ds-express-errors
Screenshot 3 of ds-express-errors
Screenshot 4 of ds-express-errors
Screenshot 5 of ds-express-errors
Screenshot 6 of ds-express-errors
Screenshot 7 of ds-express-errors

Product Updates (1)

dianastoyka
@dianastoyka

ds-express-errors — v1.8.0 & v1.8.1 Release Notes

Added support for user-provided error classes in custom mappers (Zod, Joi). Added the ability to enable only selected mappers via configuration, reducing unnecessary checks. Added rate limiting for the logger. Fixed incorrect logic in the express-validator mapper. Expanded supported Prisma errors: P2005, P2006, P2007, P2011, P2027. Improved validation logic for mongoose and sequelize mappers. Version 1.8.1 — January 12, 2026 Fixed missing API import for logDebug. Added maxLoggerRequests configuration option to limit the maximum number of log requests per minute (default is 100). Added BigInt handling to the internal safeStringify method. Fixed incorrect HTTP status codes in mongoose and sequelize mappers. Refactored logger logic for customLogger. Added Errors.GatewayTimeout(message). Fixed Sequelize mapping for the following errors: SequelizeOptimisticLockError, SequelizeEmptyResultError, SequelizeDatabaseError, SequelizeConnectionError, SequelizeTimeoutError.

Product had at the time: 2 upvotes • 0 comments • 2 followers • 1 PeerPush

Comments (1)

olli
@olliMar 6, 2026

🚀🚀

Reviews (0)

No reviews yet. Be the first to rate this product!

Comments (3)

olli
@olli

Nice one!