Just released jotai-trpc v0.5.1! https://github.com/jotaijs/jotai-trpc
It's an integration library for Jotai and tRPC.
This version supports a way to disable query depending on some atom values.
#reactjs #react #javascript #typescript #jotai #tRPC
π
tRPC vs graphQL
I want to hear opinions from people who have used both. π
My main reason for using graphQL is it can reduce request waterfalls; custom types; type safe; graphiql UI. I am not worried about client library.
I can see some of the benefits overlap with tRPC.
My concern; few graphQL server implementations are popular & they seem to take everyone in the direction they want.
I am willing to look at tRPC but does it provide all these benefits?
#graphql #tRPC #nodejs #typescript
Really enjoyed exploring using #TigrisData Database, #tRPC, with #nextjs
Combining the end-to-end type-safety of tRPC with data models defined in TypeScript with Tigris feels like a great combo.
Here's part 1 of the 3-part series:
https://www.tigrisdata.com/blog/tigris-database-search-trpc-nextjs-part-1/
Here's a video of a #TigrisData demo app I've been working on https://tella.video/an-overview-of-stream-social-demo-app-and-trying-out-tellatv-1-5g66
It uses #nextjs #tRPC, #mui (React component library), Tigris Database, & Tigris Search.
πΉ I recorded and edited the video & updated the subtitles with https://www.tella.tv/ directly from the browser.
#tigrisdata #nextjs #tRPC #mui
I'm learning #TypeScript, part 2/x
Here's what I do when I'm at my wit's end with TypeScript errors in VS Code:
https://mikebifulco.com/posts/typescript-vscode-error-fix-last-resort
πΉ I'll be live on Twitch again in about 5 minutes to continue my exploration of #tRPC with #nextjs and #TigrisData https://www.twitch.tv/leggetter
I going to start an impromptu #twitch stream over at https://www.twitch.tv/leggetter at 2pm GMT (in about 10 minutes).
This is part of my prep for an upcoming tutorial, I'm digging into #tRPC with #nextjs and #TigrisData.
#twitch #tRPC #nextjs #tigrisdata
Been using and researching options for typed APIs:
- #tRPC seems cool, but almost requires monorepo setup for best DX
- #gRPC is the way to go between backend services. Needs extras with frontends and git submodule to share proto files.
- #GraphQL is a full blown query language creating extra complexity, not just typed API.
None of them is perfect, hoping to see #tRPC evolve and grow.
Am I missing some technologies?
I've often thought #tRPC seems cool, but I can't use it because my backend is in #golang.
My favorite thing about #graphql is having shared types between the client and server, but the complexity of using it (especially in go) is high.
I just watched @dimitropoulos talk at #JSWorld about using #protobuf and #gRPC on the web using https://github.com/bufbuild/connect-web and I'm pretty intrigued. Guarantees on the shape of my data? JSON serialization? Generated #TanstackQuery clients? Yes, please.
#tRPC #golang #graphql #jsworld #protobuf #grpc #tanstackquery
Just sent out the first dispatch of π Tiny Improvements for the year
Let's talk about fresh starts and side projects.
When learning new tech, it's best to only dive into one new thing at a time.
With that said, my latest side project has me learning #typescript #trpc #gpt3 #ai and #tailwind for the first time... so, yeah.
It's going out to my mailing list as I type this. You can check out previous dispatches here:
#typescript #tRPC #gpt3 #ai #tailwind
Working with #tRPC I can definitely tell that #rtkquery was trying to solve the same issue, but it just took forever to setup and lacked docs.
Overall setting up rtkquery with types, transformations and authentication (because it is done client side) was much harder to setup.
Trpc is not really a 1 to 1 to rtkqery it is more of a βyes andβ. With #reactquery built into trpc you get the benefit of avoiding the transformation section on server side + type inference to client side
@irreverentmike letβs extend this out a bit, if anyone is learning questions #typescript, #sveltekit, and/or #trpc and has some questions, feel free to ask!
You do not know what you missed until you use #tRPC and #sveltekit. Complete end-to-end type safety everywhere! π€©π #webdev #typescript #javascript
#tRPC #sveltekit #webdev #typescript #javascript
I"ve spent some time over the past few days diving into create-t3-app, and while the learning curve is real, the benefits should be pretty amazing.
The combination of #prisma, #typescript, and #trpc makes for a type-safe API on the #database of my choosing, and with #turborepo, I can set up a monorepo that houses a #nextjs app and a #reactnative app under one roof.
I'm really digging this so far. Pretty insane for a community-built stack!
#prisma #typescript #tRPC #database #turborepo #NextJS #reactnative
Hats off to the team at Prisma for making it that much easier for devs to get in and try out their demo repos with their new npx package try-prisma.
As a self proclaimed Prisma-enjoyer, this is something I'll be using to poke at Prisma features as I use it more!
https://www.youtube.com/watch?v=2sCWMNGGGUE
@prisma #dx #prisma #ORM #database #javascript #typescript #trpc
#dx #prisma #orm #database #javascript #typescript #tRPC
I have a talk about #tRPC next week. I deleted my Twitter handle from the slides and now only have my Mastodon account. #twittermigration
For anyone interested, the slides are online https://webworker-hannover-meetup-trpc-talk.vercel.app