FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
tRPC v11 Has a Free API That Eliminates the API Layer Between Frontend and Backend
How-ToWeb Development

tRPC v11 Has a Free API That Eliminates the API Layer Between Frontend and Backend

via Dev.to ReactAlex Spinov2h ago

tRPC v11 lets you call backend functions from the frontend with zero API layer — full type safety, no codegen, no schemas. Define Your API: Procedures import { initTRPC , TRPCError } from " @trpc/server " ; import { z } from " zod " ; const t = initTRPC . context < Context > (). create (); const appRouter = t . router ({ products : t . router ({ list : t . procedure . input ( z . object ({ category : z . string (). optional (), minPrice : z . number (). optional (), maxPrice : z . number (). optional (), page : z . number (). default ( 1 ), })) . query ( async ({ input }) => { return db . product . findMany ({ where : { category : input . category , price : { gte : input . minPrice , lte : input . maxPrice }, }, skip : ( input . page - 1 ) * 20 , take : 20 , }); }), create : t . procedure . input ( z . object ({ title : z . string (). min ( 1 ), price : z . number (). positive (), url : z . string (). url (), })) . mutation ( async ({ input }) => { return db . product . create ({ data

Continue reading on Dev.to React

Opens in a new tab

Read Full Article
0 views

Related Articles

Building a Simple Lab Result Agent in .NET (Microsoft Agent Framework + Ollama)
How-To

Building a Simple Lab Result Agent in .NET (Microsoft Agent Framework + Ollama)

Medium Programming • 33m ago

“You don’t need to learn programming anymore” — Reality Check from a CTO
How-To

“You don’t need to learn programming anymore” — Reality Check from a CTO

Medium Programming • 53m ago

The Biggest Lie in Bug Bounty Tutorials
How-To

The Biggest Lie in Bug Bounty Tutorials

Medium Programming • 1h ago

DAY 8: The System Was Never Meant to Pay You
How-To

DAY 8: The System Was Never Meant to Pay You

Medium Programming • 1h ago

How-To

MakerCode v2.0 Release

Medium Programming • 2h ago

Discover More Articles