adapter-express

Mount tRPC as Express middleware using createExpressMiddleware.

2|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/PlazaCC/antes-da-tela --skill adapter-express
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adapter-express
Source: https://github.com/PlazaCC/antes-da-tela/tree/main/.agents/skills/adapter-express
Command: npx skills add https://github.com/PlazaCC/antes-da-tela --skill adapter-express

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrate tRPC into an existing Express backend by mounting its middleware, enabling strongly-typed APIs behind a familiar Express route.

Core Features & Use Cases

  • Express integration: Mount tRPC as Express middleware using createExpressMiddleware to surface routers under a URL path and keep existing middleware.
  • Context access: Access Express req and res in createContext via CreateExpressContextOptions to build per-request data and auth decisions.
  • Seamless modernization: Reuse an existing Express server with minimal changes while gaining type-safe procedures.

Quick Start

Mount tRPC Express middleware in your app by calling createExpressMiddleware with your router and createContext, then attach it to your Express app.

Frequently Asked Questions about adapter-express

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate tRPC into an existing Express server?

Access Express req and res in your tRPC context by using CreateExpressContextOptions in your createContext function, enabling per-request data handling and auth decisions.

Can I keep my current Express middleware when adding tRPC?

Yes, mounting tRPC as Express middleware surfaces routers under a specific URL path, allowing you to keep your existing Express middleware and routes running alongside type-safe procedures.

How do I access Express req and res in a tRPC context?

Yes, mounting tRPC as Express middleware surfaces routers under a specific URL path, allowing you to keep your existing Express middleware and routes running alongside type-safe procedures.

What is the best way to modernize an Express API with type safety?

Access Express req and res in your tRPC context by using CreateExpressContextOptions in your createContext function, enabling per-request data handling and auth decisions.

Do I need to rewrite my Node.js backend to use tRPC?

Mount tRPC as Express middleware to reuse your existing Express server with minimal changes, gaining type-safe procedures and strongly-typed APIs without a full framework rewrite.