itty

204 posts

itty banner
itty

itty

@ittydev

Itty is an ecosystem of time-saving & code-cutting libraries that weigh every single byte, so your users don't feel them. "Bytes matter." - @kevinrwhitley

Houston, TX Katılım Nisan 2021
1 Takip Edilen250 Takipçiler
Sabitlenmiş Tweet
itty
itty@ittydev·
TLDR; This is what your API can look like. ...in a single kilobyte, all-in.
itty tweet media
English
0
0
8
1.5K
itty
itty@ittydev·
Key goals: 1. Remove runtime/framework edge-case collisions. No more proxies. 2. No withParams. It'll be baked in. 3. Simpler CORS using AutoRouter. 4. Simpler nesting. 5. VERY few bytes gained to achieve all this.
English
0
0
0
46
itty
itty@ittydev·
itty-router v6.x discussion underway to solve existing v5.x DX issues. Want to help shape the direction? Join us on the @ittydev Discord ASAP (this will be a rapid consolidation of ideas before release).
English
1
0
2
92
itty
itty@ittydev·
@kinngh Awww thanks!! The how is by being obsessed with the lost art of code golfing while simultaneously really really caring about how the downstream code looks when actually used! :)
English
1
0
2
38
Harshdeep Singh Hura
Harshdeep Singh Hura@kinngh·
Idk how they do it but @ittydev has some of the tiniest and most powerful packages in the ecosystem
English
1
1
10
413
itty retweetledi
Kevin Whitley
Kevin Whitley@kevinrwhitley·
@wesbos Your own example shows one of the challenges of using this. 2nd to last example, breaks "I love pizza!" into 6 words, not 3. Then there's performance...
Kevin Whitley tweet media
English
8
3
89
8.6K
itty retweetledi
Kevin Whitley
Kevin Whitley@kevinrwhitley·
May or may not have been inspired by @Saadeghi and DaisyUI 🫡😁 @ittydev libs do powerful, simple things... for fewer bytes than you'd write yourself.
Kevin Whitley tweet media
English
1
1
3
377
Dan Vailur
Dan Vailur@dvailur·
@dok2001 Cloudflare is awesome. But they are terrible at marketing their products
English
1
0
3
522
Kevin Whitley
Kevin Whitley@kevinrwhitley·
Normally @ittydev libs end up being situationally awesome/not, depending on your use-case. NGL though, itty-sockets is shaping up to be *the* (JSON) WebSocket client. It's *only* better, easier, more powerful, and for less size than anyone would write themselves.
English
1
0
7
221
利덈늼
利덈늼@ridyeamnuim·
@ittydev ok i don't need useless emojis-only response
English
1
0
0
13
itty
itty@ittydev·
And here's a demo of using the live snippets at itty.dev, including a realtime example of itty-sockets in use :)
English
0
0
2
140
itty
itty@ittydev·
You can do things like this in your browser logs with itty-chroma. Check out itty.dev (open the browser console to see/play):
itty tweet media
English
0
0
1
91
itty
itty@ittydev·
FUN FACT: itty.dev includes several itty scripts in the console... with examples you can copy/paste right there to play:
itty tweet media
English
0
1
8
277
itty retweetledi
Kevin Whitley
Kevin Whitley@kevinrwhitley·
After several years cooking, itty-fetcher v1.x just dropped last night. This lets you make SUPER clean API calls using native fetch - for 650 bytes. npmjs.com/package/itty-f…
Kevin Whitley tweet mediaKevin Whitley tweet media
English
2
1
9
355
itty
itty@ittydev·
@wotschofsky Essentially allowed a user-configurable base class… this version only works on the old non-RPC durable objects though. The @next/RPC version is much much cleaner
English
1
0
1
49
Felix Wotschofsky
Felix Wotschofsky@wotschofsky·
Very interesting pattern in itty-durable @ittydev to extend the result of a function 👀
Felix Wotschofsky tweet media
English
1
0
3
330
itty retweetledi
Kevin Whitley
Kevin Whitley@kevinrwhitley·
Which do you want in your browser log messages?
English
1
1
2
160
itty retweetledi
Kevin Whitley
Kevin Whitley@kevinrwhitley·
If #2, check out itty-chroma. Under 500 bytes for easy colors, effects, backgrounds, full CSS support, etc. npmjs.com/package/itty-c… Want to test it out? Open the console on itty.dev and use it there: chroma.magenta.log('hello world')
English
0
1
1
104
itty
itty@ittydev·
@lukewj RIP... yeah if you ask most of the AIs for any info on itty-router, they don't even seem to grasp that it support middleware (all handlers can be middleware in itty). Or they'll try to generate express-style route handlers...
English
1
0
1
27
Prototype
Prototype@picosaurus·
Just asked Gemini 2.5 Pro to refactor my Cloudflare routing and use itty-router. Total trainwreck!
English
1
0
4
81
pilcrow
pilcrow@pilcrowonpaper·
I'm getting rid of all the framework-specific examples in Lucia and replacing it with a single example. So I just need a Typescript server that serves HTML with basic templating What library/framework/setup should I use?
English
42
1
140
19.4K
itty
itty@ittydev·
@Basix1120 @pilcrowonpaper Disclaimer: * itty-router can certainly handle your route matching, and serve any form of response (including HTML, etc)... but you'd need to use something for the templating part
English
0
0
0
21