Move Fast and Break Nothing. E2E typesafe APIs without schemas nor build steps. 🌟 35,000+ πŸ’¬ https://xitter.cf/t.co/xtoowqMBH8 πŸ€“ https://xitter.cf/t.co/aqeZ3i6adD

Joined January 2021
Since September, we have been unable to publish because every URL under `PUT registry.npmjs.org/@trpc/` is being blocked by a @npmjs @Cloudflare WAF. You can even prove it locally, they've just wholesale blocked our npm scope. Support have not yet done anything to help.
anyone from @npmjs that can have a look at request #4870687 from me? nick tried first but got a non-response
6
19
5
337
34,582
tRPC.io πŸ§™β€β™‚οΈ retweeted
tRPC can’t publish new package versions for at least a week now, and it looks like an @npmjs Cloudflare WAF is blocking our @github actions from publishing on a vanilla GitHub runner Anyone out there who can help?
4
4
1
37
7,260
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,871
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
1
9
2,184
tRPC.io πŸ§™β€β™‚οΈ retweeted
remember trpc? we passed 40k stars the other day
15
3
120
7,377
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
54
5,371
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
1
52
13,101
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
1
16
7,192
Agent skills with @tan_stack Intent Now in tRPC
2
4
3
141
17,698
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
7
1,492
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,243
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
1
134
18,674
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
283
45,212
tRPC.io πŸ§™β€β™‚οΈ retweeted
I'm excited to release fate, a modern data client for React & tRPC Check out the release blog post ‡
21
49
9
396
80,375
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,169
tRPC.io πŸ§™β€β™‚οΈ retweeted
Ask my anything about tRPC
42
5
172
35,784