This product was not featured by Product Hunt yet.
It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).

Product Thumbnail

rpc-dart

Type-safe tRPC v11 client for Flutter apps

API
Open Source
Developer Tools
GitHub
Google Cloud Run
Visit WebsiteSee on Product HuntGithub ⧉

Hunted byAdityaAditya

Bring tRPC’s end-to-end type safety to Flutter and Dart without OpenAPI or build_runner. rpc-dart uses TypeScript’s compiler API to generate zero-cast Dart models and clients with SuperJSON, HTTP batching, and an agnostic reactive cache runtime.

Top comment

Hey Product Hunt! 👋

Not long ago I was building a monorepo with a Node.js + Fastify backend using tRPC. The backend DX was awesome — until I had to build the mobile app. With a few years of Flutter and zero React Native experience, I chose Flutter and quickly realized there was no proper tRPC integration for Dart. I ended up hand-writing DTOs and HTTP wrappers again, losing the tight end-to-end type safety that makes tRPC great in the first place.

So I built rpc-dart (and trpc_flutter).

Instead of routing through OpenAPI or relying on Dart's `build_runner`, `rpc-dart` uses the TypeScript Compiler API (`ts.TypeChecker`) directly against your tRPC v11 router and generates standalone, zero-cast Dart 3 models and clients (`npx rpc-dart generate`).

What's included in v0.1:

- Zero `build_runner` or `freezed`: Outputs pure, immutable Dart 3 classes, sealed unions, and nested router clients with pattern-matched `RpcJson` decoders (zero raw `as` casts).

- True wire semantics: Preserves `z.input` vs. `z.output` transforms, supports SuperJSON (`DateTime`, `BigInt`, `Set`, `Map`, `Uri`), and uses 3-state `RpcOpt<T>` so `PATCH` mutations distinguish omitted keys from `null`.

- Composable link pipeline & cache runtime: Includes microtask `HttpBatchLink`, single-flight `AuthLink` refresh, `RetryLink`, and a lightweight `RpcQueryCache` + `ValueListenable` bridge that drops into `setState`, Riverpod, BLoC, or Provider.

Queries, mutations, and HTTP batching work out of the box today, with subscriptions and oRPC support on the roadmap.

It's 100% open source on GitHub with full docs and a runnable Fastify + Flutter example. Would love your feedback, stars, or contributions!

Comment highlights

How does your product turn technology into positive change? Share the cause you're supporting, the people you're helping, and the impact you hope to make. Tell us what you deployed on Cloud Run and how it works together. Which of these did you use? - Deploy and host a web app - Host LLMs with Cloud Run GPUs - Host AI agents - Build microservices - Data processing

About rpc-dart on Product Hunt

“Type-safe tRPC v11 client for Flutter apps”

rpc-dart was submitted on Product Hunt and earned 2 upvotes and 1 comments, placing #156 on the daily leaderboard. Bring tRPC’s end-to-end type safety to Flutter and Dart without OpenAPI or build_runner. rpc-dart uses TypeScript’s compiler API to generate zero-cast Dart models and clients with SuperJSON, HTTP batching, and an agnostic reactive cache runtime.

rpc-dart was featured in API (98.9k followers), Open Source (69.1k followers), Developer Tools (523.7k followers), GitHub (41.5k followers) and Google Cloud Run (15 followers) on Product Hunt. Together, these topics include over 163.5k products, making this a competitive space to launch in.

Who hunted rpc-dart?

rpc-dart was hunted by Aditya. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.

Want to see how rpc-dart stacked up against nearby launches in real time? Check out the live launch dashboard for upvote speed charts, proximity comparisons, and more analytics.