Alex / KATT ๐Ÿฑ Profile Banner
Alex / KATT ๐Ÿฑ Profile
Alex / KATT ๐Ÿฑ

@alexdotjs

19,617
Followers
1,682
Following
487
Media
7,788
Statuses

๐Ÿ‘‹ I'm Alex & I tweet about web dev stuff. ๐Ÿ‘‰ Creator of @trpcio (โญ๏ธ30k+). ๐Ÿง™โ€โ™‚๏ธ Open-sourcerer & fully-stacked typescripter. ๐Ÿ—ฃ Speak ๐Ÿ‡ธ๐Ÿ‡ช๐Ÿด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ๐Ÿ‡ง๐Ÿ‡ท

Malmรถ, Sweden
Joined July 2010
Don't wanna be here? Send us removal request.
Pinned Tweet
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
@trpcio 10.0.0 is now officially out! ๐Ÿš€๐Ÿš€ See the blog post below ๐Ÿ‘‡ ๐Ÿ‘‡ ๐Ÿ‘‡
39
147
810
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
This week I've been working on a declarative isomorphic permission library. On the backend we create Prisma `WhereInput`s & on the frontend we get rules like this hopefully will OSS it soon
41
53
775
@alexdotjs
Alex / KATT ๐Ÿฑ
8 months
TIL that this is correct syntax and that `finally` runs after the return of the function #junior4lyfe
Tweet media one
51
34
714
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Heyheheyheyhey!!!๐Ÿ‘‹ I got something exciting to share! We just released the version 10 beta of tRPC! ๐Ÿš€ Go have a look! ๐Ÿ‘‡๐Ÿ‘‡ (also, the website has gotten a real facelift recently ๐Ÿ‘€)
32
99
700
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
One of my favorite little ts utils ``` export type Maybe<T> = T | undefined | null; ```
Tweet media one
18
34
578
@alexdotjs
Alex / KATT ๐Ÿฑ
3 years
Building UI is harder than building backend
Tweet media one
44
60
478
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
The types are strong in this pic
Tweet media one
19
11
475
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Did ya know you probably should be using `interface` rather than `type` where possible? There's a section about this in the official wiki on ts performance
19
68
459
@alexdotjs
Alex / KATT ๐Ÿฑ
3 years
me in 2021 after a 5 year long monogamous relationship with react
Tweet media one
14
40
437
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
My mental model of how React renders my app is broken (again)
14
16
355
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
This is what I'd do. The way you typecast an unsafe object doesn't really matter, just ensure it's the right type instead.
Tweet media one
@housecor
Cory House
2 years
TypeScript decision: How should a function that calls fetch be typed? Options: 1. Type the return statement 2. Type the function's signature 3. Type both Poll in the next tweet ๐Ÿ‘‡ #typescript
Tweet media one
78
71
699
11
33
360
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
tRPC will likely require TypeScript 4.9 pretty soon, does that satisfy you?
19
7
350
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
are they big enough for you?
Tweet media one
16
14
299
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Spent some time hacking with @trpcio + @nextjs 13 - ๐Ÿš€ Use tRPC in RSC &/or in client - โ™พ Made infinite scrolling with the first page being RSC SSR'd - ๐Ÿ”’ Hacked next-auth to work It's ugly & code is quite messy, don't judge /
15
18
289
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Whaaaaaat!?!? ๐Ÿคฏ๐Ÿ’—โ™ฅ๏ธ
@calcom
Cal.com
2 years
We're now the official Gold Sponsor of @alexdotjs ' @trpcio for his amazing work in the open-source industry. We heavily use tRPC in our core app and look forward to the monthly consulting sessions, too! Sponsor Alex:
Tweet media one
Tweet media two
1
4
110
24
6
275
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
I cannot believe that all frameworks are stealing RPC
14
3
255
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Zod is the validation library in the JS/TS ecosystem with undoubtedly the best DX. ๐Ÿ”ฅ I use it everywhere: - frontend forms - backend request param parsing - env var parsing - validating shapes of third party APIs/webhooks - validating json blobs in my db
@colinhacks
Colin McDonnell
2 years
.....aaaaaaaaaaand ๐Ÿคฉ๐ŸŒŸโœจ๐Ÿ’ซโญ๏ธ๐ŸŒŸโœจ๐Ÿ’ซโญ๏ธ๐ŸŒŸโœจ๐Ÿ’ซ๐Ÿคฉ โญ๏ธ Zod just hit 10000 stars!!! โญ๏ธ ๐Ÿคฉ๐ŸŒŸโœจ๐Ÿ’ซโญ๏ธ๐ŸŒŸโœจ๐Ÿ’ซโญ๏ธ๐ŸŒŸโœจ๐Ÿ’ซ๐Ÿคฉ
14
7
169
9
15
254
@alexdotjs
Alex / KATT ๐Ÿฑ
3 months
Did you know that you can use @trpcio as the data layer in @nextjs to get a lightweight & secure layer with auth-checked code & runtime validated input/outputs? You don't even need to use trpc routers, client, or the react libs We should probably make a blog post about dis ๐Ÿ‘€
@sebastienlorber
Seb โš›๏ธ ThisWeekInReact.com
3 months
Interesting Next.js RSC security article ๐Ÿ’ก TIL that using Layout for checking auth/payment is not great The layout might not be accessible, but the page content can still leak through the RSC endpoint ๐Ÿ˜ฌ Using a middleware is a better protection
Tweet media one
17
32
270
21
10
244
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ reached 10,000 stars yesterday! Truly awesome. ๐Ÿ’ž ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Passed 9k less than a week later! ๐Ÿคฏ
Tweet media one
1
0
39
18
17
217
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
We're very close to releasing support for FormData in mutations so you can do file uploads nicer (w/o base64 encoding ๐Ÿ˜…) & to support form submits w/o js enabled @s4chinraja has done some really solid work to decouple our request handling to not only handle JSON bodies
14
15
207
@alexdotjs
Alex / KATT ๐Ÿฑ
5 months
@ccccjjjjeeee Curl Nodejs GraphQL LAMP Jquery Nginx Redis Sqlite RoR / django / laravel Git
28
4
207
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
`use` ๐Ÿค”
Tweet media one
13
6
202
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
tRPC version 10 should *really* be viewed as tRPC version 2, I was just very strict about semver the first 6 months of tRPC (whilst very few people were using it) This is the first real *big* change to tRPC since its creation.
7
5
200
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
@jaredpalmer @vercel S3 but nice to use
11
2
196
@alexdotjs
Alex / KATT ๐Ÿฑ
8 months
Hard disagree. This is actually fine. Coupling is better than letting the clients stitch together a bunch of APIs in various slow request/response iterations (aka "waterfalls") Use graphql or make a BFF, but avoid stitching APIs together too much on the client
@housecor
Cory House
8 months
Just audited a codebase with a REST API that returns this: { table1: [] table2: [] main: [] } Donโ€™t couple your API to UI elements.
94
41
1K
11
5
193
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
The first iteration of this has gotten approved internally at work, we'll be stress-testing our assumptions and hopefully OSSing it ๐Ÿ”œ๐Ÿคž
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
This week I've been working on a declarative isomorphic permission library. On the backend we create Prisma `WhereInput`s & on the frontend we get rules like this hopefully will OSS it soon
41
53
775
10
6
195
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
This must be my fave thing I've read this year:
Tweet media one
@t3dotgg
Theo - t3.gg
1 year
What are the best (technical) blog posts and articles you've read this year?
102
182
1K
7
25
190
@alexdotjs
Alex / KATT ๐Ÿฑ
3 years
I got a real Friday treat for all full-stack TypeScript lovers. ๐Ÿฌ Introducing zART ๐Ÿคฏ - Zero-API, React, & TypeScript A monorepo showcasing how you can leverage the power of TS to never have to write an API-schema for your React [Native] app again.
7
31
191
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
We borrowed @remix_run 's implementation on how they create a JSON representation of a specific type... then @s4chinraja improved it and fed that back into Remix! OSS is pretty cool sometimes huh? Also, follow @s4chinraja , he'll be your boss some day
@s4chinraja
Sachin Raja
1 year
TypeScript jump to definition + refactoring is coming to a framework near you! @remix_run
9
16
339
3
9
192
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Imagine doing any big refactor [of code you haven't written yourself] without type-safety
32
9
188
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
if something were to happen to me, @trpcio will be in safe hands
Tweet media one
7
0
187
@alexdotjs
Alex / KATT ๐Ÿฑ
5 months
@AdamRackis I'm sorry where do you work again? ๐Ÿ˜‚
4
0
177
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
GraphQL is still amazing and solves a lot of things that @trpcio doesn't. There's no silver bullet.
7
7
179
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
I did my first-ever in person conference talk yesterday! I'm so happy to be on the other side of it & that it went quite WELL! ๐Ÿ˜… I was anxious for over a month ahead of it I definitely want to do more of this shit now, hit me up! ๐Ÿ‘‹
15
3
181
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
So proud of trpc being 6th overall in js-land star growth in 2022 and second in the full-stack category
@trpcio
tRPC.io ๐Ÿง™โ€โ™‚๏ธ
1 year
Tweet media one
3
38
481
10
4
178
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
I really like where nextjs is going with the app dir stuff, I'm a ex-php guy who wrote my own php framework fifteen years ago in an eerily similar style to Remix/Nextjs stuff (I even had "action"-files using the PRG-pattern!) However, I mainly use React nextjs for *apps* [...]
11
1
177
@alexdotjs
Alex / KATT ๐Ÿฑ
7 months
We're close to 500k weekly downloads on trpc, pretty wild!
Tweet media one
8
5
174
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
@trpcio is the top trending project on @github right now! ๐Ÿคฏ๐Ÿคฏ๐Ÿคฏ๐Ÿคฏ
Tweet media one
13
9
173
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Apparently one of the biggest OnlyFans competitors, Fanvue, are using tRPC ๐Ÿ†๐Ÿคฃ
14
3
170
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ @trpcio just passed 13,000 stars on @github !!! ๐Ÿš€๐Ÿš€ ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
Tweet media one
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ ๐Ÿคฏ @trpcio just passed 12k stars! ๐Ÿคฏ ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
7
4
126
5
7
166
@alexdotjs
Alex / KATT ๐Ÿฑ
3 months
is this the way to globally disable caching in @nextjs ? (I find automatically enabled caching too scary to use)
Tweet media one
17
9
160
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
We just published an update to @trpcio that automatically serializes your output types to how JSON does it, in case you are **not** using something like superjson. tRPC without data transformers is now a lot better! ๐Ÿฅณ
5
11
160
@alexdotjs
Alex / KATT ๐Ÿฑ
5 years
@chipspopandabar could this be done to make an already blue whale even bigger? @awhalefact
3
0
146
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
The next major of @trpcio 's main "feature" will be removing the v9 interop support. It's a bit painful to support two parallel APIs and removing it will speed us up :) Current diff ๐Ÿ‘‡
Tweet media one
@TkDodo
Dominik ๐Ÿ”ฎ
1 year
I feel like people would expect new features in a major version, but that's mostly not what it is about. I know it makes them "less exciting", but it's about cleaning up all the little "mistakes" that have amassed over time.
1
1
88
5
2
158
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
I'm glad tRPC has automatic batching so my boss won't do random public attacks on my work in the future
@elonmusk
Elon Musk
2 years
Btw, Iโ€™d like to apologize for Twitter being super slow in many countries. App is doing >1000 poorly batched RPCs just to render a home timeline!
22K
10K
160K
1
2
157
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
At least 1 of the FAANG companies is using @trpcio in production ๐Ÿ‘€
6
8
151
@alexdotjs
Alex / KATT ๐Ÿฑ
3 months
"While building a feature, we performed a database migration command locally, but it incorrectly pointed to the production environment instead, which dropped all tables in production." I'm surprised this sort of incedent doesn't happen more frequently tbh I've had prod access
@resend
Resend
3 months
On February 21st, Resend experienced an outage that affected all users due to a database migration that went wrong. Here's a summary of what happened, how the incident was resolved, and the changes we're making moving forward.
65
81
640
13
1
152
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
Is this a kosher way of detecting version changes in @nextjs and forcing a reload on the next navigation change? The goal is to turn any `<Link>` into an `<a>` if we have a new build. Full gist:
Tweet media one
9
5
152
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Saturday night. I have friends too I promise
Tweet media one
4
0
147
@alexdotjs
Alex / KATT ๐Ÿฑ
7 months
Me at 19
Tweet media one
@kentcdodds
Kent C. Dodds ๐ŸŒŒ
7 months
Me at 19
Tweet media one
36
4
346
5
1
146
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
๐Ÿ tRPC is great. ๐ŸŠ GraphQL is great. They can and should be compared, but neither is "better" nor a silver bullet
@trpcio
tRPC.io ๐Ÿง™โ€โ™‚๏ธ
2 years
I will never disrespect GraphQL.
7
15
252
4
7
148
@alexdotjs
Alex / KATT ๐Ÿฑ
8 months
If you do anything with OSS, `gh pr checkout <<PR number>>` will save you a lot of annoyance
@trashh_dev
trash
8 months
damn iโ€™ve been sleeping on the github cli
28
3
271
9
7
145
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
@trpcio just hit 7k stars!! ๐ŸŒŸ ๐ŸŒŸ ๐ŸŒŸ ๐ŸŒŸ ๐ŸŒŸ ๐ŸŒŸ ๐ŸŒŸ
Tweet media one
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
tRPC passed 6,000 stars on GitHub today! ๐Ÿคฏ (6,014 as of writing!) ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
6
4
65
4
6
145
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
Oh jeez, spam bots have reached the trpc github repo. @github , surely you could detect and prevent this message from ever being sent?
Tweet media one
21
5
135
@alexdotjs
Alex / KATT ๐Ÿฑ
2 months
nobody: me: I hacked together a POC of an alternative API to `useFormState()` / `useActionState()` that I think is nicer than what's in @reactjs / @nextjs today
Tweet media one
@alexdotjs
Alex / KATT ๐Ÿฑ
2 months
I've made several attempts at trying to understand how to get `useFormState()`/`useActionState()` to work well isomorphically (which is the whole point, right!?). I made a repo to showcase the issues I have & added some API suggestions for React. Convince me I'm wrong. ๐Ÿ™ ๐Ÿ‘‡
Tweet media one
4
4
68
8
6
136
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
Tweet media one
5
8
133
@alexdotjs
Alex / KATT ๐Ÿฑ
3 months
Yo @microsoft , if you ain't paying @AndaristRake for all his work on @typescript yet, you should start yesterday
@AndaristRake
Mateusz Burzyล„ski
3 months
@anthonysheww @emmahamiltown Repro would be appreciated, with that on hand i can investigate it later
1
0
8
11
7
133
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ that's 16 stars ๐Ÿ‘† each of those represents a thousand people who've now starred @trpcio on GitHub, that is pretty damn crazy
@s4chinraja
Sachin Raja
2 years
๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ @trpcio just smashed 15,000 stars ๐Ÿ˜ฑ ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
2
4
83
8
3
132
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
Revisited my lil' thing that tries to make sure that the user is always on the latest version of the app The way I detect changes is that all tRPC response returns a request header with the commit hash which is used to signal that the next navigation should be a hard navigation
Tweet media one
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
Is this a kosher way of detecting version changes in @nextjs and forcing a reload on the next navigation change? The goal is to turn any `<Link>` into an `<a>` if we have a new build. Full gist:
Tweet media one
9
5
152
3
7
129
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
Freedom of type expression
Tweet media one
7
3
127
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
๐Ÿƒ๐Ÿผ to get that last โœ…
@t3dotgg
Theo - t3.gg
1 year
This started as a shitpost and went way too far. Don't read into this, just trying to document some things I think about too much. I rant more in the thread
Tweet media one
28
59
715
16
6
126
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ ๐Ÿคฏ @trpcio just passed 12k stars! ๐Ÿคฏ ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ reached 10,000 stars yesterday! Truly awesome. ๐Ÿ’ž ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
18
17
217
7
4
126
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Sooo.... tRPC v10 is pretty ready! ๐Ÿš€ .... buuuut there are still some room for tweaks & there are some API design decisions which already have had heated debates on GitHub even if we haven't shouted about the alpha yet. ๐Ÿ™‹โ€โ™‚๏ธ What is the best way to resolve those?
10
3
125
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Growth.
Tweet media one
11
2
122
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
Ok, LinkedIn won't be the next Twitter at least. ๐Ÿ˜‚ I've actually never received this kind of clueless/rude/arrogant hot take here in regards to @trpcio ๐Ÿคก
Tweet media one
19
0
121
@alexdotjs
Alex / KATT ๐Ÿฑ
7 months
@zeeg Here is hovering of the same procedure in v11 vs v10
Tweet media one
Tweet media two
6
7
118
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Oh shit, we've also broken 100,000 weekly downloads on npm ๐Ÿคฏ
Tweet media one
@s4chinraja
Sachin Raja
2 years
๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ @trpcio just smashed 15,000 stars ๐Ÿ˜ฑ ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
2
4
83
5
2
119
@alexdotjs
Alex / KATT ๐Ÿฑ
7 months
@AdamRackis GraphQL is still awesome, idk if it has crashed tbh, Twitter != reality
2
0
118
@alexdotjs
Alex / KATT ๐Ÿฑ
3 months
very flattering to have @trpcio being mentioned in the React-blog as a known point of reference on how server actions work
Tweet media one
3
4
117
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
Talked to a friend the other day who works at a company where some tech leads are lobbying that the solution to their recruiting problems is to migrate their whole tech stack from Vue to React ๐Ÿคฆโ€โ™‚๏ธ
@isamlambert
Sam Lambert
1 year
What happened to the "choose boring tech" movement?
67
10
185
19
4
115
@alexdotjs
Alex / KATT ๐Ÿฑ
8 months
๐Ÿ’ฏ It's a bit ridiculous that I've willingly reduced time, and a big chunk of my income, at my "real job" to hack on open-source stuff for free* (* I'm very grateful to all my sponsors who also enable me to distribute some to other people)
@DavidKPiano
David K ๐ŸŽน
8 months
I love maintaining open-source software and providing support for anyone who needs help using it. It's admittedly a bit ridiculous that we do it for free, but I love it anyway.
7
5
194
3
1
113
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
I genuinely don't know how to deal with this graph! ๐Ÿ˜ณ๐Ÿ’ž The most astonishing thing to me is that we've really not done any groundbreaking changes in over a year(!), but it's really exploding right b/c of a series of compounding events (& a lot of thanks to @t3dotgg 's rants tbh)
Tweet media one
5
5
116
@alexdotjs
Alex / KATT ๐Ÿฑ
7 months
So incredibly happy to see this pic of these amazing human beings ๐Ÿคฉ
@trashh_dev
trash
7 months
finally got to meet these smart dudes @trpcio gang
Tweet media one
12
6
347
7
2
112
@alexdotjs
Alex / KATT ๐Ÿฑ
2 months
Wdym @DavidKPiano , we only get fan mail and donor enquiries ๐Ÿ˜๐Ÿ˜‚
Tweet media one
@DavidKPiano
David K ๐ŸŽน
2 months
I don't think many developers realize how stressful being an open-source maintainer can be. You provide countless hours of work and support, for *free*. And devs will still complain and unfairly criticize your work. But the ones that are appreciative keep us going.
60
40
650
8
2
113
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Anyone knows why these don't act the same way and how I can make number 2 act like number 1? (zup @mattpocockuk ?๐Ÿ‘€)
Tweet media one
13
4
110
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
New lil' feature โœจ Do you find it annoying to invalidate specific queries on every mutation and keeping track of what should be invalidated? If so, maybe you want to always invalidate all queries automatically on any mutation.
11
2
110
@alexdotjs
Alex / KATT ๐Ÿฑ
10 months
Today I used the `form` attribute (for the first time ever ๐Ÿ˜…) - Now I can place my submit buttons anywhere instead of always nested within the `<form>` it's great and makes complex layout-code way less messy
2
6
109
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Can someone help me write or structure a blog post? The main thing holding back the RC of @trpcio 10 is my inability to write the announcement post ๐Ÿคฆโ€โ™‚๏ธ The whole marketing thing has never been my strong suit ๐Ÿฅฒ I'm glad it hasn't held back the growth too much
19
4
108
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
The new major of tRPC is slooowly getting there ๐Ÿ‘€ Spoiler: it's going to be ๐Ÿคฏ + fully backward compatible with an interoperability mode which will make incremental adoption trivial ๐Ÿ”ฅ
6
6
107
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Has anyone written a nice & small TypeScript-based `Promise.props()` util? I've missed this ever since I stopped using bluebirdjs in favor of native promise fns.
Tweet media one
10
8
103
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Have you seen the new inference helpers for v10? Kudos to @jullerino & @s4chinraja for pushing this through! Go & follow them! ๐Ÿ’ž
Tweet media one
4
2
102
@alexdotjs
Alex / KATT ๐Ÿฑ
8 months
Does anyone have a quick starter for creating a ts package? I want: - vitest - changesets - ci job that publises to npm - eslint / prettier
6
1
102
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
- Decoupling is often an anti pattern - Few big files with code > many small files - Your company should try to stick with 1 language for everything - Monorepo 4 lyfe - Serverful is easier than serverless
6
3
103
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
@kentcdodds Thank you! I'm sorry for how I responded to it too, thanks for all the good work you do as well :)
1
0
100
@alexdotjs
Alex / KATT ๐Ÿฑ
5 months
Imagine if every engineering team had a $1000/month budget for supporting OSS
@birk
Birk Jernstrรถm
5 months
We now support businesses @polar_sh - Sync your GitHub team - Set a monthly budget - Set team member limits Enable your engineers to easily fund open source efforts. Increase your own velocity & fund open source. Win-win. Just set our own team allowance: $200/month/engineer
4
10
60
5
5
100
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Is `force-cache` really a good default when that is not what the standard browser `fetch()` does? From
Tweet media one
15
7
100
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
@tannerlinsley how soon until you build an alternative to Next.js/Remix? You have most of the pieces soon ๐Ÿ˜…
11
0
99
@alexdotjs
Alex / KATT ๐Ÿฑ
2 months
The European mind cannot comprehend this
@thesherylralph
sheryl lee ralph
2 months
Is this normal for restaurants these days?
Tweet media one
1K
549
4K
25
0
94
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
With tRPC + Next.js 13, you'll have your components render on the edge but be able to have the "server logic" in a traditional lambda close to the DB. Unless you have a globally distributed DB, I at least *think* this is the best approach?
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Shower-thought: if you have any query waterfalls in your app, serving it on "the edge" will actually make it *slower* compared to hosting your app close to your data. I think I just killed my own hype for serving dynamic sites on the edge. Am I thinking about it wrong?
7
1
35
8
6
96
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
So incredibly grateful for the support of @t3dotgg and his amazing community ๐Ÿ’˜
@t3dotgg
Theo - t3.gg
1 year
1.5 years later, I'm still loving @trpcio
Tweet media one
5
6
70
1
3
96
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
@devagrawal09 @trpcio Haha yeah, people tend to get surprised about that. We mainly care that the "edges" are well typed to create the DX we want. The juice is not worth the squeeze in a bunch of the internals
2
0
97
@alexdotjs
Alex / KATT ๐Ÿฑ
8 months
@AdamRackis Yeah man, way too light, it's lucky your measurement system doubles all numbers tho ๐Ÿ™ƒ
3
1
93
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
Another obvious favorite TypeScript-utility of mine! - Infer the type of a function - Unwrap the return type's promise. ``` type AwaitedReturnType<T extends (...args: any) => any> = Awaited<ReturnType<T>>; ```
Tweet media one
1
6
96
@alexdotjs
Alex / KATT ๐Ÿฑ
8 months
If we generated typesafe Swift or Kotlin SDKs automatically for your tRPC API, would you be interested?
15
0
93
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
Me and @jullerino are hacking on automatic hydration for server-rendered "use client"-components component by generating a `<script>`-tag on the server that gets picked up by the browser
12
2
93
@alexdotjs
Alex / KATT ๐Ÿฑ
1 year
I want to say that an array satisfies an array of type X. What I'm missing here to get the behavior of `as const` + `satisfies X`?
Tweet media one
13
3
91
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ @trpcio now has >14,000 stars ๐Ÿคฏ ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ @trpcio just passed 13,000 stars on @github !!! ๐Ÿš€๐Ÿš€ ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ
Tweet media one
5
7
166
2
4
94
@alexdotjs
Alex / KATT ๐Ÿฑ
2 years
PHP is still the biggest inspiration for @trpcio ๐Ÿ™ƒ
Tweet media one
2
4
92