Skip to content
Back to skills

Orpc Openapi Reference

ASecurity

Plugin that serves API reference documentation (Scalar/Swagger) and the OpenAPI specification.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 12, 2026
documentationgitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add ali-master/skills --skill orpc-openapi-reference --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orpc Openapi Reference?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orpc Openapi Reference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ali-master-orpc-openapi-reference/badge)](https://www.skillsdirectory.com/skills/ali-master-orpc-openapi-reference)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: oRPC OpenAPI Reference Plugin
description: Plugin that serves API reference documentation (Scalar/Swagger) and the OpenAPI specification.
license: MIT
metadata:
  author: Ali Torki
  homepage: https://github.com/ali-master
  version: "1.0.0"
---

# OpenAPI Reference Plugin (Swagger/Scalar)

Provides API reference documentation powered by [Scalar](https://github.com/scalar/scalar) or [Swagger UI](https://swagger.io/tools/swagger-ui/), along with the OpenAPI specification.

> Relies on the [OpenAPI Generator](/docs/openapi/openapi-specification).

## Setup

```ts
import { ZodToJsonSchemaConverter } from '@orpc/zod/zod4'
import { OpenAPIReferencePlugin } from '@orpc/openapi/plugins'

const handler = new OpenAPIHandler(router, {
  plugins: [
    new OpenAPIReferencePlugin({
      docsProvider: 'swagger', // default: 'scalar'
      schemaConverters: [
        new ZodToJsonSchemaConverter(),
      ],
      specGenerateOptions: {
        info: {
          title: 'ORPC Playground',
          version: '1.0.0',
        },
        servers: [
          { url: 'https://api.example.com/v1' },
        ],
      },
    }),
  ]
})
```

> Default paths: client at `/`, OpenAPI spec at `/spec.json`. Customize via `docsPath` and `specPath` options.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.