backend-trpc-openapi

Community

Expose REST endpoints from tRPC with OpenAPI docs.

Authorandrey-belen
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill generates REST endpoints and OpenAPI documentation from your tRPC routers, enabling external access and comprehensive API docs without duplicating logic.

Core Features & Use Cases

  • OpenAPI/Swagger generation: Automatically creates a specification from tRPC meta.
  • REST fallback for internal TS apps: Exposes REST endpoints while keeping tRPC as the single source of truth.
  • Use Case: When you have a tRPC-based API but need public or third-party REST access and clear documentation.

Quick Start

  1. Install the active fork and Swagger UI express packages: npm install trpc-to-openapi swagger-ui-express
  2. Install TypeScript typings for Swagger UI Express (development dependency): npm install -D @types/swagger-ui-express
  3. Integrate the OpenAPI generation in your server setup as shown in the provided examples, then run your server to access REST endpoints and Docs at /api and /docs respectively.

Dependency Matrix

Required Modules

None required

Components

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: backend-trpc-openapi
Download link: https://github.com/andrey-belen/alto-iam-cloud/archive/main.zip#backend-trpc-openapi

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.