Kevin Whitley

@itty.dev

I build things from time to time. :) https://itty.dev

Love to see it! If folks publish enough fun projects built on it, I might have to build a showoff page on the site to give others inspiration :)

Shaw@shaw.city · last mo.

🗺️ Multiplayer Cursors with Itty Sockets! @techsev.bsky.social mentioned ittysockets.com, a cool little library that seamlessly handles websocket connections for doing realtime communication. I had to give it a try, so I built this fun cursor demo. So much potential! codepen.io/editor/shsha...

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:

Bild

When the majority of the workforce is out of work from the AI revolution, who will be buying the products/services still being sold? 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.

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.

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 :)

Bild

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)

Bild

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!

Pro Tip to Congress: 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.

itty-sockets 0.3.0 (service + client) is now available to testers! 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...

itty-sockets

Tiny realtime messaging client in under 450 bytes. No backend needed.. Latest version: 0.3.0, last published: 13 hours ago. Start using itty-sockets in your project by running `npm i itty-sockets`. T...

npmjs.com

itty-router just crossed 100k downloads/week! 🥳🥂 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...

itty-router

A tiny, zero-dependency router, designed to make beautiful APIs in any environment.. Latest version: 5.0.18, last published: 10 months ago. Start using itty-router in your project by running `npm i it...

npmjs.com

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!

Bild

I was this many years old when a coworker told me I could command+click on a function/var in @vscode.dev to navigate to the file/definition. This will immediately change my life... no more hunting files down like a psychopath!

Think I’m officially switching over to here for tech posts and sharing itty updates! I’m hoping to get the feedback loop/interactions I *used* to have when sharing ideas on Twitter! So, if I post something worth sharing, please help me out (in the beginning) with a repost/reply/whatever! ❤️❤️❤️

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 :)

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.

Bild