@presenti/web
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

@presenti/web

@presenti/web is a lightweight wrapper around uWebSockets.js that aims to bridge the gap between middleware and performance.

What it does

It provides abstractions on top of the existing request/response objects provided by uWebSockets that improve the performance.

It allows for asynchronous route handling while taking care of onEnded and other mandatory handlers that are typically registered in a synchronous execution environment.

It creates optimized middleware stacks at runtime.

It provides decorators and a base class for defining your routes.

What it does not

Though it may seem similar to express, it is not. The goal of this project is not to be another nanoexpress, though that project does have it's uses. The goal of this project is to provide a highly customizable, low-level wrapper around the uWebSockets.js library while dealing with and preventing use-after-free errors.

Readme

Keywords

none

Package Sidebar

Install

npm i @presenti/web

Weekly Downloads

29

Version

1.3.0

License

GPL-3.0

Unpacked Size

41.5 kB

Total Files

34

Last publish

Collaborators

  • ericrabil