Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Why I stopped using REST for side projects

28.5K views
•
July 14, 2022
by
Web Dev Cody
YouTube video player
Why I stopped using REST for side projects

TL;DR

TRPC offers efficient RPC-style communication between frontend and backend, enhancing type safety and usability.

Transcript

all right so i wanted to do a little talk about why i've decided to kind of embrace trpc and just use this as my communication layer between my front and my back end um i've been watching a lot of theo and he kind of introduced me to this stack create t3 app he's another youtuber and a twitch streamer so check him out he has a lot of good informati... Read More

Key Insights

  • 😣 TRPC simplifies backend communication by allowing direct function calls, which reduces complexity compared to REST APIs.
  • 👨‍💻 TypeScript integration is crucial for ensuring type safety, thereby enhancing code reliability across the application stack.
  • 💱 The ability to make immediate changes in backend functions and receive instant feedback in the frontend is a game-changing aspect of using TRPC.
  • 😣 Developers moving from REST to TRPC can experience a significant reduction in boilerplate code, resulting in a cleaner and more maintainable codebase.
  • 😣 TRPC's structure is particularly beneficial for internal applications, where traditional REST endpoints may be overly complex or unnecessary.
  • 👻 The integration with tools like React Query enhances the data-fetching experience, allowing for more robust applications without additional complexity.
  • 😄 The speaker encourages developers to explore TRPC's documentation for setup guidance, but emphasizes the ease of integrating TRPC into existing projects.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is the primary advantage of using TRPC over traditional REST APIs?

The primary advantage of TRPC is its ability to simplify the communication layer between frontend and backend. It allows developers to call functions directly rather than navigating RESTful endpoints, thereby streamlining the development process and reducing boilerplate code. TRPC's structure makes internal services easier to manage, particularly for applications without public APIs.

Q: How does TypeScript enhance the developer experience when using TRPC?

TypeScript enhances the developer experience by providing type safety between the frontend and backend. This means that errors related to incorrect data types or missing parameters are caught at compile time rather than runtime. This immediate feedback significantly decreases debugging time and increases code reliability, allowing developers to resolve issues more efficiently.

Q: Can you provide an example of how TRPC improves interaction between the frontend and backend?

A notable improvement is seen in how developers can call backend functions, such as deleting an image. Instead of crafting RESTful endpoints, developers use a simple call like images.delete, passing required parameters directly. If there's a change to the backend function that requires additional parameters, TypeScript flags this error in the frontend immediately, ensuring accurate interactions.

Q: What role does IntelliSense play when using TRPC with TypeScript?

IntelliSense plays a critical role by providing real-time feedback and suggestions within code editors. When developers integrate TRPC in their projects, they benefit from IntelliSense, which automatically retrieves available queries, mutations, and parameter requirements directly from the code. This reduces reliance on external documentation and enhances coding efficiency.

Summary & Key Takeaways

  • The speaker discusses their transition from REST APIs to TRPC as an API solution, emphasizing the advantages of remote procedure calls for better backend function accessibility.

  • They highlight the benefits of using TypeScript with TRPC to ensure type safety between the frontend and backend, reducing errors and improving debugging.

  • The speaker mentions additional features of TRPC, like IntelliSense support in code editors, which aids developers in quickly identifying available endpoints and required parameters, streamlining the development process.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Web Dev Cody 📚

How I'm doing authentication on my simple Go app (with Fiber) thumbnail
How I'm doing authentication on my simple Go app (with Fiber)
Web Dev Cody
Live Coding a Shopping Cart using React thumbnail
Live Coding a Shopping Cart using React
Web Dev Cody
I got my first DDoS (and what you can do to help prevent it) thumbnail
I got my first DDoS (and what you can do to help prevent it)
Web Dev Cody
How Does the MacBook Air M1 Compare for Coding? thumbnail
How Does the MacBook Air M1 Compare for Coding?
Web Dev Cody
How I setup pagination in my Next.js app (with Drizzle ORM) thumbnail
How I setup pagination in my Next.js app (with Drizzle ORM)
Web Dev Cody

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.