hyper-express
iron-session
Our great sponsors
hyper-express | iron-session | |
---|---|---|
38 | 18 | |
1,431 | 3,294 | |
- | - | |
8.8 | 9.0 | |
17 days ago | 5 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hyper-express
- HyperExpress: High Performance Node.js Webserver
- HyperExpress – High-perf HTTP/ws server (~20x Express.js)
-
I have done a full benchmark of a POST REST API on my computer: Node.js vs Fastify vs Express.js vs Deno vs Bun vs GO. Node.js is used WITH and WITHOUT clustering on 6-core I7 processor
Hey, I believe uWebsockets.js does support clustering. I'm the author of https://github.com/kartikk221/hyper-express which is written on top of uWebsockets.js and is pretty much the fastest webserver in Node land with an Express-like API and all of the common features such as middlewares, Router, async/sync, Websockets, Server Sent Events, File Uploading in a single package that is about same size as Express. The only catch is that you lose about 14% performance from the uWebsockets.js peak because of all the features but this is being improved and a well worth trade off for the familiar developer experience with still almost 2.5x performance of Fastify and other similar frameworks.
- HyperExpress – High Performance Node.js Webserver
- HyperExpress – Simple, performant HTTP/WebSocket server using uWebSockets.js
- Simple, Performant HTTP and WebSocket Server Using Uwebsockets.js
-
MRSK: Deploy Web Apps Anywhere
Yeah I’m personally of the opinion that the performance loss for regular web services is worth it 99% of the time. RAM is cheap, human time is not.
That said I definitely believe your characterization of resource hunger between nginx and traefik.
You are the second person to mention using websockets for requests in as many days… How do you deal with scale out? Sticky cookie routing seems like almost a requirement if you don’t want to deploy a redis-alike.
Also just out of curiosity, do you use hyper-express[0]?
[0]: https://github.com/kartikk221/hyper-express
-
What are some good projects for learning about buffers, event emitters, and streams in NodeJS?
Building your own webserver on top of a lower level networking library in Node.js can be a good way to learn all 3 of those things. I have built a webserver called HyperExpress which is essentially a layer on top of a low level C++ websever called uWebsockets and I had to utilize and progress my knowledge in buffers, emitters and streams to achieve the same API as Express.js and make it usable for Node.js applications: https://github.com/kartikk221/hyper-express Feel free to dig around in the code and make any PRs for improvements!
-
What are the performance overheads of V8 Engine
You can check out source code here if you’d like to do more digging https://github.com/kartikk221/hyper-express
-
Need help in understanding why we need classes in JS(node specifically).
Are classes absolutely needed in JS? No, not really. Are classes really nice and significantly improve the readability/flow of your code in some cases? Sure, an example could be a webserver I wrote: https://github.com/kartikk221/hyper-express
iron-session
- Show HN: iron-session, stateless web sessions
- Stateless session utility using signed and encrypted cookies to store data. Works with Express, and Node.js HTTP servers
- Node.js stateless session utility using signed and encrypted cookies
-
Our experience adding Edge Runtime to Next.js SDK
The iron-session module's latest version is Edge Runtime-friendly, so all we had to do was update our version. Simple as that!
-
`iron-session` with app directory - Getting session information in client side
Anybody know a way to get session information from iron-session in client side using the new app directory?
-
AES 256 CBC in Rust and JavaScript.
Hello everyone. I am trying to make a library that is compatible with brc-dd/iron-webcrypto. This lib is the underlying library for vvo/iron-session. Which is a session management for Next.js. I thought this is a great way to learn something. But now I have a problem with the algorithm.
-
How to use CORS for all routes with Next js and browser session api
If you read how it works, you can see it just does something before they return handler(req, res) at the end.
-
How do handle login and security on a microfrontend application?
You could use something like iron-session to pass along an encrypted token
-
What is the best way to handle authentication on Next.js?
Check out iron-session. I just started using it for a new project where I already have an authentication setup. It makes it easy to use cookies for authorization. The repo has some examples of how to wrap API routes and getServerSideProps with it.
-
How to handle external API calls behind a login
Ive recommend you to take a look to the iron-session that will help you with the auth controlled pages thing https://github.com/vvo/iron-session
What are some alternatives?
nanoexpress - Professional backend framework for Node.js
next-auth - Authentication for the Web.
Socket.io - Realtime application framework (Node.JS server)
next-session - Simple promise-based session middleware for Next.js, micro, Express, and more
bun - Bun JS app doing basically nothing
nest-next - A template for a NestJS + Next.js app
Express - Fast, unopinionated, minimalist web framework for node.
fastapi-sessions - Ready-to-use session cookies with custom backends for FastAPI
µWebSockets - Simple, secure & standards compliant web server for the most demanding of applications
Next.js - The React Framework
just - the only javascript runtime to hit no.1 on techempower :fire:
js-cookie - A simple, lightweight JavaScript API for handling browser cookies