👋 I'm Alex & I tweet about web dev stuff Creator of @trpcio, work @square, scout @a16z

Malmö, Sweden
We created a jobs channel on the trpc.io/discord the other day, y'all should go in and search some talent in there! 💼
1
2
19
Hola 👋
¡Aprendiendo tRPC! La alternativa de REST y GraphQL para crear APIS. ¡Lo aprendemos desde cero con su creador @alexdotjs Stream en inglés, pero así practicas!!!! :) ⬇️ twitch.tv/midudev
1
15
Yeah, get on it if you haven't already! github.com/trpc/trpc/blob/13…
Added @typescript twoslash support to vscode with this little extension and I couldn't be happier with it :) github.com/orta/vscode-twosl…
10
PHP is still the biggest inspiration for @trpcio 🙃
2
4
84
Alex / KATT 🐱 retweeted
Yay! Here's a new project from Jotai Labs, "jotai-trpc" a binding for @trpcio! 👉 github.com/jotai-labs/jotai-… The example can't run with client-only codesandbox (does anyone know any public tRPC server for demo?), so here's the code how it's used. 👇
9
25
141
Apparently one of the biggest OnlyFans competitors, Fanvue, are using tRPC 🍆🤣
13
2
156
A bunch of guys, only guys, followed me on the back of this tweet - correlation? 🤔
4
19
Alex / KATT 🐱 retweeted
tRPC is insane. I’m building a Stripe integration – I return Stripe API payloads from the server I get the response data typed for my React components without even saving the files, as if I’m using the Stripe library on the frontend not backend. /cc @alexdotjs
1
6
49
Is it kosher to do use something like this in order to produce readable error messages when narrowing TypeScript generics?
6
19
As in instead of ` : never`, I do `: ErrorMessage<'You did something bad'>`
1
4
Do you want me to tweet more or less about @trpcio?
52% Yes, a lot more
20% Yes, more
21% The same (90% of tweets)
6% `/unfollow`
410 votes • Final results
3
1
16
Alex / KATT 🐱 retweeted
Here's a reference on how to use tRPC + zod + @HookForm: kitchen-sink.trpc.io/react-h… - reuse the same zod schema in tRPC & in RHF - use strings for form values (`.transform` if you need to coerce to dates, numbers etc) - use a hook like in the example which uses `rawValues: true`
1
8
40
Alex / KATT 🐱 retweeted
It's 6 years later and I still encounter people who want to push everything in root "test" folder 😭
1
1
4
Alex / KATT 🐱 retweeted
<T>
2
8
94
Alex / KATT 🐱 retweeted
📢 announcing remeda v1.0.0 🚀 My favourite TypeScript utils library finally became "officially stable". If you're looking for a light-weight, type-safe, fully treeshakable, data-first and data-last replacement for lodash/ramda, give it a try: github.com/remeda/remeda/rel…
10
31
249
Alex / KATT 🐱 retweeted
👆that! Recently did a green field project with Prisma + tRPC. Never had something so fast and effortless in my 15 year career. I’m very happy with GQL if clients are in different languages, but if you’re only running TS client(s), tRPC is just way simpler.
1
6
23
Focus on your own thing and stop looking sideways all the time
3
4
68