Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

Ouch

> 编程语言
Open source

NodeJS errors for cool kids

200 stars0 likes3 views
WebsiteGitHub

About

NodeJS errors for cool kids

Ouch

NodeJS errors for cool kids

Ouch is a NodeJS implementation of PHP's Whoops library. It's not an exact port of Whoops, but implements similar functionality and uses same front end resources in some of its error handlers. It is an error handler base/framework for NodeJs. Out-of-the-box, it provides a pretty error interface that helps you debug your web projects, but at heart it's a simple yet powerful stacked error handling system.

Pretty page handler demo

Blue theme

Orange theme

Installation

The source is available for download from GitHub. Alternatively, you can install using Node Package Manager (npm):

javascript
npm install ouch

Usage examples

…

For more options, have a look at the example files in examples to get a feel for how things work. Also take a look at the API Documentation and the list of available handlers below.

Available Handlers

Ouch currently ships with the following built-in handlers, available in the require("ouch").handlers namespace:

  • PrettyPageHandler - Shows a pretty error page when something goes pants-up
  • JsonResponseHandler - Process errors and returns information on them as a JSON string.
  • CallbackHandler - Wraps a callable as a handler. You do not need to use this handler explicitly, Ouch will automatically wrap any callable you pass to ouchInstance.pushHandler.

Todo

- Add more handlers.

License

Ouch is open-sourced software licensed under the MIT license.

Issues· 3 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptbeautifyerrorhandlingnodejs

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言