serve-static
uWebSockets.js
serve-static | uWebSockets.js | |
---|---|---|
2 | 32 | |
434 | 7,458 | |
0.7% | 3.7% | |
9.1 | 8.1 | |
7 days ago | 11 days ago | |
TypeScript | C++ | |
MIT License | Apache License 2.0 |
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.
serve-static
-
Serving static files with Node.JS
Take a look at Nest.js web server. When the file serving option is turned on, it not only slows down your app because filesystem checks for every request but also using synchronous fs.stat to check if the file exists.
-
How do you implement your Front-end build & deploy process?
Alternatively, you can serve your frontend from the backend using serve-static. Note that this doesn't actually require that your frontend source code is nested in the backend source code directory. You are just serving the build files, not the source, so only those build files need to end up in the `nest` directory. Our dev script just peaks a level up (IE `../frontend`), while our deploy GitHub action builds the frontend and moves the files into the backend before building `nest`.
uWebSockets.js
-
Building Real-Time Next.js Apps with WebSockets and Soketi
If you have never heard of Soketi, to give you a brief overview, it is a WebSocket server that was built on top of uWebSockets.js and has great compatibility with Pusher Protocol.
-
8 Best WebSocket Libraries For Node
# Clone the repo w/ submodules git clone --recursive https://github.com/uNetworking/uWebSockets.js.git # Cd into the folder cd uWebSockets.js # build make
- uWebSockets.js
-
Ask HN: How do you handle WebSocket connections reconnect problem?
have you tried https://github.com/uNetworking/uWebSockets.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
If you'd like to test cluster mode, then use v19.3.0 as it described here https://github.com/uNetworking/uWebSockets.js/issues/593
- Simple, performant HTTP and WebSocket server using uWebSockets.js
- Millions of Active WebSockets with Node.js
-
KitaJs Survey - No runtime code, fast as bare metal and top level framework.
The fastest node framework is uWebSockets (as they claim, I didn't try it yet), so if Kita's goal is to maximize performance - you should check on it.
-
Can the performance of the clustered nodejs application compete with (or be better than) the performance of .NET Core-6-7?
I'm serving several hundred thousands queries per second from a single nodejs server (multithreaded) with this: https://github.com/uNetworking/uWebSockets.js/
-
Here is a fun question:
https://github.com/uNetworking/uWebSockets.js/ ^ this is the best for performance
What are some alternatives?
fastify-static - Plugin for serving static files as fast as possible
fastify-websocket - basic websocket support for fastify
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
ws - Simple to use, blazing fast and thoroughly tested WebSocket client and server for Node.js
sirv - An optimized middleware & CLI application for serving static files~!
pws - Just another simple, fast, and resilient open-source WebSockets server. 📣 [Moved to: https://github.com/soketi/soketi]
typescript-starter - Nest framework TypeScript starter :coffee:
Socket.io - Realtime application framework (Node.JS server)
amplication - 🔥🔥🔥 Open-source backend development platform. Build production-ready services without wasting time on repetitive coding.
subscriptions-transport-ws - :arrows_clockwise: A WebSocket client + server for GraphQL subscriptions
s3-sync-action - 🔄 GitHub Action to sync a directory with a remote S3 bucket 🧺
jelly-actix-web-starter - A starter template for actix-web projects that feels very Django-esque. Avoid the boring stuff and move faster.