client-setup
OfficialCreate a type-safe tRPC client with dynamic auth.
Software Engineering#typescript#authentication#trpc#type-safety#error-handling#client#abortcontroller
AuthorPlazaCC
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Developers need a reliable way to create a tRPC client that preserves full type safety, handles dynamic authentication, supports request cancellation, and provides accurate error handling, without losing type information.
Core Features & Use Cases
- Typed client creation: Generates a client typed with the server's AppRouter, ensuring compile-time safety for all procedures.
- Dynamic auth headers: Updates authentication tokens on each request via a headers callback.
- Abortable queries: Allows cancelling in-flight requests with AbortController.
- Typed error handling: Detects and processes TRPCClientError instances.
- Transformer configuration: Applies superjson or other transformers on terminating links.
Quick Start
Use the client-setup skill to generate a type-safe tRPC client with dynamic authentication headers for the API at http://localhost:3000/trpc.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: client-setup Download link: https://github.com/PlazaCC/antes-da-tela/archive/main.zip#client-setup Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.