Utils

Keep your servers light and fast with composables.

H3 is a composable framework. Instead of providing a big core, you start with a lightweight app instance and for every functionality, there is either a built-in utility or you can make yours.

Composable utilities have huge advantages compared to traditional plugin/middleware approaches:

✅ Your server only includes and runs the code that is needed
✅ You can extend your server functionality easily without adding global plugins
✅ The usage is explicit and clean with less global middleware and plugins

All utilities have access to event object. This way they can access incoming requests and use a shared context with event.context.