HackerTrans
TopNewTrendsCommentsPastAskShowJobs

kwhitley

no profile record

Submissions

Show HN: New NPM library itty-time is much smaller/faster than the popular ms.

npmjs.com
1 points·by kwhitley·2 lata temu·3 comments

A different kind of JavaScript router

npmjs.com
2 points·by kwhitley·3 lata temu·1 comments

comments

kwhitley
·2 lata temu·discuss
Good tip - not really sure about the rules here?

What do you mean by page title though?
kwhitley
·2 lata temu·discuss
Love to hear it!

Btw, itty-router v5 just dropped a couple days ago, with a fun batteries-included (still ultra-small) router, that should make your code even leaner.

How is the integration w/ zod anyway, and how can we make it better?
kwhitley
·3 lata temu·discuss
Yeah, definitely recommend you try it before discounting... I too have been super jaded with the current Node import ecosystem (esp. as an author), but Bun has basically become something of a silver bullet, with some small exceptions.

If I want, I can literally run a TS file directly with mixed import/require (not that you would ever) directly, without a package.json, tsconfig, dependencies, etc.

In my experience, it's basically Node, minus all the setup/config/build headaches.
kwhitley
·3 lata temu·discuss
itty-router is different than other routers... and not just by being smaller (450 bytes for the Router itself, or 1.6k for the entire library... roughly ~140x smaller than express.js).

It takes a somewhat novel approach to routing, allowing your code to be shorter, simpler, and more readable.

Change the way you think about routing today! :)

<3