
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@emeryld/rrroutes-openapi
Advanced tools
RRRoutes docs + “try it” playground, shipped as static assets plus a thin Express helper. The UI is React-based and reads the serialized registry you provide (no OpenAPI YAML needed).
RRRoutes docs + “try it” playground, shipped as static assets plus a thin Express helper. The UI is React-based and reads the serialized registry you provide (no OpenAPI YAML needed).
/routes/:endpointId is the canonical playground location – tab/layout state is encoded in the URL (?tab=metrics&layout=detailsMax) so deep links reopen the exact view.DetailModals that merge request bodies, headers, cache hits, and logs.groupId ties back to a request.import express from 'express'
import { finalize } from '@emeryld/rrroutes-contract'
import { mountRRRoutesDocs } from '@emeryld/rrroutes-openapi'
import { leaves } from './contract'
const registry = finalize(leaves)
const router = express.Router()
// Mounts page at /__rrroutes/docs and serves JS/CSS from /__rrroutes/docs/assets
mountRRRoutesDocs({
router,
leaves: registry.all,
options: { path: '/__rrroutes/docs' },
})
path (default /__rrroutes/docs): where the page is mounted.assetBasePath (default ${path}/assets): where the static JS/CSS are served from.csp (default true): emit a CSP header + nonce.auth: HTTP Basic auth for the docs + webhooks. Uses process.env.RRROUTES_DOCS_PASSWORD by default; set enabled: false to skip the guard.redactLogEntry: (entry) => entry | null hook to scrub or drop log entries before they hit the UI.onRequest: (ctx) => ({ leaves?, nonce?, html? }) hook to tweak leaves, override the nonce, or return a fully custom HTML response.If you want to control rendering:
import {
createLeafDocsDocument,
renderLeafDocsHTML,
} from '@emeryld/rrroutes-openapi'
// React element – mount into your own tree
const element = createLeafDocsDocument(registry.all, {
assetBasePath: '/__rrroutes/docs/assets',
})
// Or prerender to a string
const html = renderLeafDocsHTML(registry.all, {
assetBasePath: '/__rrroutes/docs/assets',
})
The docs UI expects serialized leaves from @emeryld/rrroutes-contract. Each leaf includes:
method, path, and cfg (summary, description, tags, docsGroup, stability, deprecated, docsMeta, feed)Presets use packages/openapi/src/web/v2/utils/presetCsv.ts for import/export. That module expects the heading
presetId,presetName,presetDescription,presetGroupId,presetTags,opStepNumber,opName,opDescription,opMethod,opPath,opEndpointId,opQueryJson,opExtraHeadersJson,opBodyJson
and emits the same order when saving CSV, with tags stored as ;-separated values and JSON cells kept compact.
pnpm install
pnpm run dev # Vite dev server for the UI (serves index.html)
pnpm run build # Builds node bundle + types + web assets to dist/public
Published package contents:
dist/index.{mjs,cjs,d.ts}: server helper + exportsdist/public/assets/docs.{js,css}: the docs UI bundle served by mountRRRoutesDocsFAQs
RRRoutes docs + “try it” playground, shipped as static assets plus a thin Express helper. The UI is React-based and reads the serialized registry you provide (no OpenAPI YAML needed).
We found that @emeryld/rrroutes-openapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.