Move Fast and Break Nothing. E2E typesafe APIs without schemas nor build steps. 🌟 35,000+ πŸ’¬ trpc.io/discord πŸ€“ github.com/trpc/trpc

We've just* passed 30k stars on @github!! 🀩
25.000⭐️ and still going. Thank you all πŸ™
5
6
136
66,019
tRPC.io πŸ§™β€β™‚οΈ retweeted
How is @trpcio `httpBatchLink` able to fold multiple procedure calls into ONE batched call? Like how does `Promise.all([a.query(), b.query()])` end up in only a single HTTP request It's a pure timing trick built with a simple dataloader: Every call you make in the same tick gets pushed into one shared buffer. Only the very first call schedules a `setTimeout(dispatch)` Because `setTimeout` is a macrotask, it only runs after your synchronous code finishes. So by the time `dispatch` fires, all the calls from that tick are sitting in the buffer together `dispatch` then joins them into one request (`a,b,c`), sends it, and resolves each call's individual promise from the response array The neat part: `Promise.all` isn't special. Anything called in the same tick batches. The only thing that breaks it is an `await` in between, which yields to the event loop and flushes early I think this is a really elegant design: using the language's semantics for batching instead of exposing an explicit API
2
2
37
3,861
tRPC.io πŸ§™β€β™‚οΈ retweeted
On the side I'm setting up fumadocs (by @fuma_nama) by piping @colinhacks's @trpcio routers through `trpc/openapi` (alpha) to get well designed auto-generating docs. Some rough edges but working well so far.
1
1
9
2,168
tRPC.io πŸ§™β€β™‚οΈ retweeted
remember trpc? we passed 40k stars the other day
16
3
120
7,323
tRPC OpenAPI support isn't just about generating clients. You can use @oasdiff on your own API to check for breaking changes or generate changelogs too
3
2
53
5,065
tRPC.io πŸ§™β€β™‚οΈ retweeted
And it's out, tRPC 11.16.0 comes with updated OpenAPI support to support cyclic types, and lazy zod schemas!
Planning to drop an update to @trpcio OpenAPI support this weekend Removing the type depth limit and adding support for cyclic types, which was an initial limitation of the alpha
4
4
52
13,081
tRPC.io πŸ§™β€β™‚οΈ retweeted
Planning to drop an update to @trpcio OpenAPI support this weekend Removing the type depth limit and adding support for cyclic types, which was an initial limitation of the alpha
1
16
7,173
You’ve all been thinking it, and it’s coming
3
1
31
3,018
Agent skills with @tan_stack Intent Now in tRPC
2
4
139
17,389
Do submit issues and corrections! This is a near doubling of our documentation surface, only made possible by AI, and impossible to deeply critique as a whole. It will very likely have problems to iron out
6
1,328
tRPC.io πŸ§™β€β™‚οΈ retweeted
TRPC streaming improvement New `streamHeader` option switches from the custom `trpc-accept` header to the standard `Accept` header for JSON lines (jsonl) streaming Standard headers don't trigger CORS preflight, that means one less round-trip for cross-origin requests
1
1
33
3,232
And now @alexdotjs gave me access to the X handle #bigplans #trpc #ishashtaggingstillcool
Me and @ixahmedxii looking at @trpcio right now
1
1
31
3,407
tRPC.io πŸ§™β€β™‚οΈ retweeted
The alpha @trpcio @trpc/openapi package is now on NPM!
We have OpenAPI support for @trpcio is nearing a beta release, come give us some feedback!
7
5
135
18,656
tRPC.io πŸ§™β€β™‚οΈ retweeted
this was a lot of fun to make one of the reasons we keep out shipping everyone: trpc crazy how good it is, it feels like what graphql should have been in a way
25
9
284
45,202
tRPC.io πŸ§™β€β™‚οΈ retweeted
I'm excited to release fate, a modern data client for React & tRPC Check out the release blog post ‡
21
49
396
80,359
tRPC.io πŸ§™β€β™‚οΈ retweeted
We’re proud to sponsor @trpcio by @alexdotjs β€” end-to-end typesafe APIs that let you move fast without breaking things βš‘πŸ›‘οΈ Zero dependencies, full TypeScript inference, no build step. Just pure DX magic. Supported by #Mobb β€” fixing code so you don’t have to. #tRPC #TypeScript #FullStack #OpenSource #AIDeveloper #VibeCoding
1
2
6
4,168
tRPC.io πŸ§™β€β™‚οΈ retweeted
Ask my anything about tRPC
42
5
172
35,783
tRPC.io πŸ§™β€β™‚οΈ retweeted
that moment when your professor is teaching about the open source project you used to lead
10
9
651
35,302
tRPC.io πŸ§™β€β™‚οΈ retweeted
Part 2 of the @trpcio and @tan_stack Query and Start series is up. We're doing tRPC mutations! As well as authentication with @clerk, and checking out their awesome new Agent Toolkit! So lots of good AI in there too! piped.video/uE4devDh2rU
3
6
65
16,388