oRPC Router to Contract

Installation
SKILL.md

Router to Contract

A normal router works as a contract router as long as it doesn't include a lazy router.

Unlazy the Router

import { unlazyRouter } from '@orpc/server'

const resolvedRouter = await unlazyRouter(router)

Minify & Export the Contract Router for the Client

  1. Minify and Export to JSON:
import fs from 'node:fs'
import { minifyContractRouter } from '@orpc/contract'
Installs
–
GitHub Stars
8
First Seen
–
oRPC Router to Contract — ali-master/skills