This repository contains two Angular packages for tRPC:
@heddendorp/trpc-link-angular- Angular HttpClient link for tRPC client@heddendorp/tanstack-angular-query- TanStack Angular Query Integration for tRPC
These packages have been extracted from the main tRPC repository and simplified for Angular-specific use cases.
An Angular HttpClient link for tRPC client that allows you to use Angular's HttpClient with tRPC.
- Location:
projects/trpc-link-angular - Main Purpose: Provides HTTP transport for tRPC client using Angular's HttpClient
- Peer Dependencies:
@angular/common >=16.0.0@angular/core >=16.0.0@trpc/client 11.4.3@trpc/server 11.4.3rxjs >=7.0.0typescript >=5.7.2
TanStack Angular Query integration for tRPC that provides reactive data fetching capabilities.
- Location:
projects/tanstack-angular-query - Main Purpose: Provides TanStack Query integration for tRPC with Angular-specific features
- Peer Dependencies:
@angular/common >=16.0.0@angular/core >=16.0.0@tanstack/angular-query-experimental ^5.83.0@trpc/client 11.4.3@trpc/server 11.4.3rxjs >=7.0.0typescript >=5.7.2
yarn installTo build all packages:
yarn buildTo build a specific package:
ng build trpc-link-angular
ng build tanstack-angular-queryTo start a local development server:
ng serveTo execute unit tests:
ng test- Integration Guide - How to use both packages together
- Standalone Examples - Individual package examples
- Maintenance Guide - Development and publishing workflow
Please see the Maintenance Guide for information on contributing to this project.
This project is licensed under the MIT License.