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:
IMO it solves an edge case problem that I don't think stresses the majority of devs out (we expect *any* function to be able to throw)
...by converting arguably readable code into symbol soup, with added bloat per function.
By their own example:
IMO it solves an edge case problem that I don't think stresses the majority of devs out (we expect *any* function to be able to throw)
...by converting arguably readable code into symbol soup, with added bloat per function.
By their own example:
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! :)
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!
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!
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
It brings stuff like this to the browser, in under 500 bytes all-in.
#javascript #browser #console #logs #color
It brings stuff like this to the browser, in under 500 bytes all-in.
#javascript #browser #console #logs #color
- easy, obvious syntax
- can log directly (unlike chalk)
- works in the browser (unlike chalk)
- works with log/warn/error
- mix and match styles
- 540 bytes currently, all-in... but I'm still working on that
- easy, obvious syntax
- can log directly (unlike chalk)
- works in the browser (unlike chalk)
- works with log/warn/error
- mix and match styles
- 540 bytes currently, all-in... but I'm still working on that
- for browser consoles
- way more style options
- shorter syntax (it actually logs)
- 1/6th the size (~390 bytes), @itty.dev style ;)
Examples:
- for browser consoles
- way more style options
- shorter syntax (it actually logs)
- 1/6th the size (~390 bytes), @itty.dev style ;)
Examples: