Enhance your procedures with metadata.
Scanned 9/12/2026
Install to Claude Code
npx -y skills add ali-master/skills --skill orpc-metadata --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Orpc Metadata?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ali-master-orpc-metadata)More formats (shields.io, HTML) on the badges page.
---
name: oRPC Metadata
description: Enhance your procedures with metadata.
license: MIT
metadata:
author: Ali Torki
homepage: https://github.com/ali-master
version: "1.0.0"
---
# Metadata
oRPC procedures support metadata — simple key-value pairs that customize behavior.
## Basic Example
```ts
import { os } from '@orpc/server'
interface ORPCMetadata {
cache?: boolean
}
const base = os
.$meta<ORPCMetadata>({}) // require initial metadata
.use(async ({ procedure, next, path }, input, output) => {
if (!procedure['~orpc'].meta.cache) {
return await next()
}
const cacheKey = path.join('/') + JSON.stringify(input)
if (db.has(cacheKey)) {
return output(db.get(cacheKey))
}
const result = await next()
db.set(cacheKey, result.output)
return result
})
const example = base
.meta({ cache: true })
.handler(() => {
// Implement your procedure logic
})
```
> `.meta` can be called multiple times; each call spread-merges new metadata with existing.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.