Hey hey :prisma-rainbow: I’ve co-created a pretty...
# madewithprisma
k
Hey hey prisma rainbow I’ve co-created a pretty cool typescript library for full-stack javascripters which works amazingly well with prisma. It’s a data layer called tRPC which gives you similar capabilities to blitzjs’ “*zero api data layer*” except it’s not tied to React or Next.js & does not require any code generation or watchers. You can add it to your existing old project to supercharge your API creation. You get the capabilities of using type-safe API resolvers from your backend straight into your React / React Native / [..] frontend. The magic is all in the TypeScript compiler. 🧙‍♂️ I’ve created 3 libs: one for node, one for any client (using
fetch()
), & one for react which just adds type safe sugar from your backend onto react-query. If anyone has any questions or feedback, feel free to DM me! 👉 Have a look at https://trpc.io 👈
typescript 11
😮 4
🤯 3
🦜 4
🚀 7
🔥 6
good place to start if you wanna play with it: https://github.com/trpc/trpc/#new-project the second one,
examples/next-ssg-chat
, uses prisma, superjson, & (the experimental) subscriptions with long-polling
prisma rainbow 1
and FYI, i’m using this in prod on 2 different mission-critical apps already one is a using express + CRA & the other one Next.js
🚀 2
t
Was hoping to see this type of thing soon https://twitter.com/thdxr/status/1362092869264228355
But looks like you did it without codegen - very nice!
🙏 1
k
i’ve pushed a new website on trpc.io now that’s a bit bit easier to browse than a massive github readme
t
curious how you implemented this without codegen
t
Yeah I'm working on something similar through use of generics for jsonapi
k
just use trpc instead 🙂
t
But I was wondering if I had to eventually codegen since I've created some complex typing that the language server doesn't display super well
which is why I assumed prisma went the codegen route even for types