tinyhttp
polka
Our great sponsors
tinyhttp | polka | |
---|---|---|
14 | 7 | |
2,601 | 5,340 | |
0.5% | - | |
7.8 | 4.4 | |
26 days ago | about 2 months ago | |
TypeScript | JavaScript | |
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.
tinyhttp
- tinyhttp: 0-legacy, tiny & fast web framework as a replacement of Express
-
Hacktoberfest Conclusion
After this I really hit the ball rolling and was able to find more issues to work on. One thing that I enjoyed was that all of my PRs were drastically different from each other. I worked on correcting documentation for AdonisJS, fixed a HTTP Content-Type Header bug in tiny-http, and then finally even created a short script for users to load up their own local version of the Electron documentation site.
-
Hacktoberfest Week 2 (Pt. 2)
I worked on Issue 360. Essentially, when a user would set the "Content-Type" header before returning the file, the framework would overwrite the "previous" header, with the type that it determined from the files type.
- NRAF(Not Really a Framework) - A zero external dependency framework for WebApps
-
Using tsm as a shebang interpreter in TypeScript
tinyhttp: a modern web framework written in TypeScript. It uses tsm in its documentation examples as a simple way to get users up and running quickly
- Why are you still using express?
- tinyhttp V2 released: Now pure ESM
- tinyhttp V2 released — now with pure ESM
-
Using Redis Pub/Sub with Node.js
The framework I decided to use today was tinyhttp, with an API similar to Express, I don't have a specific reason to use this framework and the example code is easily replicated to other frameworks.
- Show HN: Tinyhttp v2 Released
polka
-
Serving static files with Node.JS
Express.js, with its long-lived version 4 is famous for its somewhat low performance. Other projects like fastify or polka have benchmarks outperforming Express.js. I don’t know why Express is slower, maybe because of regex processing of routes? If you’re using parametric routes like /users/:userid/entity and have no regexp routes, then replacing Express.js with fastify or polka will add a performance boost to your app. They are not direct replacements, but you can convert code if you really need that boost. In the article below benchmarks shows huge improvement, but in reality, your code will be a limiting factor to your app performance, and you are unlikely notice any improvement.
-
My Evaluation of SvelteKit for Full-Stack Web App Development
- once released and popular, they cease getting frequent updates
Now, yes this is a generalization. It doesn't apply to all of their packages, and not at the same point in time. But there is a pattern there. Some quick diving into the author's Github account, and their more popular repos shows the pattern. It's also clear that this was a choice made by a Svelte contributor to use their own package for "official" support in Svelte Kit.
When it comes to polka itself, I just don't get why a maturing framework like Svelte would choose something whose only real advantage lies in micro-benchmarking porn [1]. Speculation aside, I'm surprised the Svelte team didn't look at that choice through a lens of higher scrutiny. Koa would have been an infinitely better choice in my personal opinion, and there are several community-driven setups [2][3] for it.
[1] https://github.com/lukeed/polka#benchmarks
[2] https://github.com/kaladivo/svelte-kit-koa-boilerplate
[3] https://blog.logrocket.com/sapper-svelte-tutorial-2021/
-
What are some packages that you used to solve problems that you encountered while developing applications?
Check out polka if you haven’t. It’s far leaner, and faster.
-
Looking For Light Weight Node API Framework
polka link
-
Deploying Sapper application to Deta.sh
Sapper, by default, uses polka as the server. I decided to use express instead.
-
Multitenancy in Next.js
Learn something new every day. This is awesome I could probably use polka instead of express.
What are some alternatives?
fastify - Fast and low overhead web framework, for Node.js
SvelteKit - web development, streamlined
Express - Fast, unopinionated, minimalist web framework for node.
http-proxy - A full-featured http proxy for node.js
serve-static - Serve static files
request - 🏊🏾 Simplified HTTP request client.
fastify-static - Plugin for serving static files as fast as possible
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
Koa - Expressive middleware for node.js using ES2017 async functions
marshal.ts - A new full-featured and high-performance TypeScript framework