Re:Blitz.js – Fullstack Toolkit for Next.js
by bluelightning2k on Monday August 15, 2022 @11:14AM
(#32470745)
I'd strongly suggest having a direct comparison vs. tRPC page in the documentation. I doubt we're alone in being curious, and this is the real flagship feature.
Since you say Blitz is no longer tied to Next - does that mean it can be used with Vite? Again I doubt I am alone in thinking this would be huge.
I've said it in other comments but to repeat - I think this is super interesting.
Honestly I can't decide whether this is a framework or a feature. But it's definitely interesting.
Re:Blitz.js – Fullstack Toolkit for Next.js
by flybayer on Monday August 15, 2022 @11:38AM
(#32471049)
> I'd strongly suggest having a direct comparison vs. tRPC page in the documentation
Yes, it's coming.
> does that mean it can be used with Vite?
Yes, but we do have a bit more work to clean up our internal package dependencies and APIs so that this works.
Depends what you mean by "same way". Yes in that both provide fully typesafe client-server communication. No in that the Blitz implementation is a tiny fraction of the size and does not have any Typescript-related performance slowdown at scale like TRPC.
The Blitz RPC tech itself will scale forever. However as a company scales it'll probably face another problem which is API contracts between internal teams. When you hit that, you may want to adopt GraphQL.
> 2. Having got used to Vite I just cannot go back to Webpack (which IIRC Next still wraps).
Yep, I want Next.js to get off webpack too