Tiny size isn't the strongest selling point of itty-router... it's how clean your code can look.
Removing virtually every shred of boilerplate while keeping it fast, Web Standards, and ultra-tiny was the original goal.
Here's a direct comparison with Hono:
Tiny size isn't the strongest selling point of itty-router... it's how clean your code can look.
Removing virtually every shred of boilerplate while keeping it fast, Web Standards, and ultra-tiny was the original goal.
Here's a direct comparison with Hono:
That requires income that many will no longer have…
Ultimately much of our economy hinges on a massive consumer base that spends constantly. Without that, it dies.
That requires income that many will no longer have…
Ultimately much of our economy hinges on a massive consumer base that spends constantly. Without that, it dies.
Basically there's zero backend - the boards are shared between players only. That has limitations, but it's also SUPER fast.
Here's how it works.
Basically there's zero backend - the boards are shared between players only. That has limitations, but it's also SUPER fast.
Here's how it works.
...the glorious @simeydotme.bsky.social sliders (still on v3, if you can believe it!)
This component is SUPER flexible, and SUPER sexy. The end effect is unmatched IMO. 👌
...the glorious @simeydotme.bsky.social sliders (still on v3, if you can believe it!)
This component is SUPER flexible, and SUPER sexy. The end effect is unmatched IMO. 👌
- auto stringifies/parses payloads
- WebSocket race conditions solved
- message queuing built in
- event handlers are resilient through disconnects
- it's insanely small (~480 bytes)
I will eventually re-release the generic ws (not ittysockets.io) version again :)
- auto stringifies/parses payloads
- WebSocket race conditions solved
- message queuing built in
- event handlers are resilient through disconnects
- it's insanely small (~480 bytes)
I will eventually re-release the generic ws (not ittysockets.io) version again :)
(disclaimer: be careful with this if the args don't match)
(disclaimer: be careful with this if the args don't match)
Came from nearly a decade in @react.dev.
AMA! :)
Came from nearly a decade in @react.dev.
AMA! :)
ink.itty.dev/50x50
It's a p2p tech demo where the board only lives in memory (wipes after last person leaves), and players share it with each other!
No backend at all, and uses the ~500 byte ittysockets.io (free/public) for messaging. 🥳
ink.itty.dev/50x50
It's a p2p tech demo where the board only lives in memory (wipes after last person leaves), and players share it with each other!
No backend at all, and uses the ~500 byte ittysockets.io (free/public) for messaging. 🥳
Premise:
- 100% peer-to-peer drawing app
- no backend/storage
- fastest connections share board state with joiners
Reply/RP if interested!
Premise:
- 100% peer-to-peer drawing app
- no backend/storage
- fastest connections share board state with joiners
Reply/RP if interested!
Treat bills like devs treat PRs.
Don't try to cram too many unrelated "fixes" in a single, mega-sized PR that touches literally the entire codebase.
Almost always a bad idea.
Keep bills to single issues and let them fly through without a bunch of riders/favors to allies.
Treat bills like devs treat PRs.
Don't try to cram too many unrelated "fixes" in a single, mega-sized PR that touches literally the entire codebase.
Almost always a bad idea.
Keep bills to single issues and let them fly through without a bunch of riders/favors to allies.
for under 500 bytes, you get:
- a realtime socket messaging service
- no backend required
- simplifies WebSocket usage
- works in any environment that supports WebSockets
www.npmjs.com/package/itty...
for under 500 bytes, you get:
- a realtime socket messaging service
- no backend required
- simplifies WebSocket usage
- works in any environment that supports WebSockets
www.npmjs.com/package/itty...
Try "itty-time/ms" instead!
- 1/5th the size
- nearly 2x as fast
www.npmjs.com/package/itty...
Try "itty-time/ms" instead!
- 1/5th the size
- nearly 2x as fast
www.npmjs.com/package/itty...
While I certainly recommend sticking with Hono if you need its framework features, itty is:
- much smaller @ ~1/14th the size
- more stable: less feature creep == smaller code
- 100% web standards
- slightly faster
www.npmjs.com/package/itty...
While I certainly recommend sticking with Hono if you need its framework features, itty is:
- much smaller @ ~1/14th the size
- more stable: less feature creep == smaller code
- 100% web standards
- slightly faster
www.npmjs.com/package/itty...
Check out: www.npmjs.com/package/itty...
Under 500 total bytes to drastically simplify adding colors/styles to console.log/warn/error output :)
Here's an example of it in use on my own project to help organize messages!
Check out: www.npmjs.com/package/itty...
Under 500 total bytes to drastically simplify adding colors/styles to console.log/warn/error output :)
Here's an example of it in use on my own project to help organize messages!
This will immediately change my life... no more hunting files down like a psychopath!
This will immediately change my life... no more hunting files down like a psychopath!
So, if I post something worth sharing, please help me out (in the beginning) with a repost/reply/whatever!
❤️❤️❤️
So, if I post something worth sharing, please help me out (in the beginning) with a repost/reply/whatever!
❤️❤️❤️
Me: Yes, it's set up with a Flexbox property
Me: an unintended side-effect of employers doing everything in their limited powers to avoid being labeled as employers, I can not legally claim to be affiliated with any of them. I do however have the keys to a worryingly large nr of buildings
me: yes, it’s a retail chain that sells inexpensive, moderately fashionable clothing to white suburbanites, and I worked there for a time
Me: Yes, it's set up with a Flexbox property
(From NPR here: www.npr.org/2025/03/13/n...)
Think "chalk", but:
- for the browser
- easier layering
- full CSS support
- absurdly small @ 490 bytes
Wanna try it out?
Try it in the browser console @ itty.dev :)
Think "chalk", but:
- for the browser
- easier layering
- full CSS support
- absurdly small @ 490 bytes
Wanna try it out?
Try it in the browser console @ itty.dev :)
Itty allows all handlers to see router/route-level generics, and AutoRouter will transform any unformatted responses to JSON automatically, provide a 404, etc.
Itty allows all handlers to see router/route-level generics, and AutoRouter will transform any unformatted responses to JSON automatically, provide a 404, etc.
1.34KB, only a few lines, and it's working like a champ. Take that for simple syntax! :)
@cloudflare.social
1.34KB, only a few lines, and it's working like a champ. Take that for simple syntax! :)
@cloudflare.social