Kevin Whitley
banner
itty.dev
Kevin Whitley
@itty.dev
I build things from time to time. :)

https://itty.dev
FUN FACT:

itty.dev includes several itty scripts in the console... with examples you can copy/paste right there to play:
July 11, 2025 at 1:25 PM
FUN FACT:

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:
July 7, 2025 at 4:45 PM
Need some quick and dirty custom id hashes?

itty.id to the rescue :)

Full API help here: itty.id?help
June 25, 2025 at 2:39 PM
I mean I sorta see what they're getting at, but...

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:
June 25, 2025 at 1:49 PM
Inspired me to play… 🍻
June 17, 2025 at 6:11 AM
Still playing with this little ink demo... and I'm loving this concept of hybrid p2p state sharing.

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.
June 14, 2025 at 7:26 PM
The only 3rd-party component/UI in my entire trading app...

...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. 👌
June 12, 2025 at 6:17 PM
Cool things about itty-sockets:

- 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 :)
June 12, 2025 at 2:13 PM
Another example:
June 12, 2025 at 1:23 PM
Remember folks, take advantage of matching function signatures to just pass functions in directly!

(disclaimer: be careful with this if the args don't match)
June 12, 2025 at 1:22 PM
I built this in @svelte.dev, over a few months, from scratch (only external component is @simeydotme.bsky.social sliders).

Came from nearly a decade in @react.dev.

AMA! :)
June 10, 2025 at 5:17 PM
I'm cooking up a fun ittysockets.io demo - may share tonight after work if I have time to polish a bit...

Premise:
- 100% peer-to-peer drawing app
- no backend/storage
- fastest connections share board state with joiners

Reply/RP if interested!
June 9, 2025 at 3:19 PM
Quick(ish) demo in the browser... just assumes both have already pasted/imported the tiny snippet for the "connect" function.
June 4, 2025 at 2:54 PM
Want to style your console.log outputs for different messages/sources?

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!
May 30, 2025 at 4:20 PM
A few weeks back, I made a super tiny package to bring colors/CSS to the browser console.

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 :)
January 8, 2025 at 7:51 PM
As a followup continuation, here's a simpler D1 + Itty example (no CORS), for an API in under 1kB.

Itty allows all handlers to see router/route-level generics, and AutoRouter will transform any unformatted responses to JSON automatically, provide a 404, etc.
January 8, 2025 at 1:55 PM
Spinning up a simple D1 Worker with @itty.dev.

1.34KB, only a few lines, and it's working like a champ. Take that for simple syntax! :)

@cloudflare.social
January 6, 2025 at 8:25 PM
Busy documenting examples, but itty-chroma is technically live.

It brings stuff like this to the browser, in under 500 bytes all-in.

#javascript #browser #console #logs #color
December 18, 2024 at 6:06 PM
Sexy colored logging coming soon to a browser console near you:

- 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
December 8, 2024 at 10:08 PM
Testing an idea... similar to the ultra-popular chalk library, but:

- for browser consoles
- way more style options
- shorter syntax (it actually logs)
- 1/6th the size (~390 bytes), @itty.dev style ;)

Examples:
December 5, 2024 at 2:49 PM