capnwasm OpenAPI conversion
Paste OpenAPI JSON. The browser converts it to capnwasm's manifest IR,
emits canonical .capnp, and emits canonical OpenAPI again.
Live converter
OpenAPI ↔ Cap'n Proto bridge. For pure OpenAPI → typed JS client work, mature
generators (openapi-typescript, kiota, openapi-generator)
cover more edge cases. This page's niche is the rare OpenAPI ↔ .capnp pairing,
and it runs the same parser/emitter modules as the CLI: parseOpenApi,
buildManifest, buildCapnp, buildOpenApiJson.
Direction:
Ready.
Input
Manifest summary
Run conversion.
Result
—
Round-trip back to OpenAPI
Sanity check: input → manifest → canonical OpenAPI. Should match your input.
—
Pros / cons
| path | good for | tradeoff |
|---|---|---|
| OpenAPI / JSON | public REST docs, partner APIs, DevTools-friendly debugging | lowest adoption cost |
| Cap'n Proto | binary payloads, sparse reads, cross-language RPC, explicit schema evolution | requires schema/runtime discipline |
| Manifest pipeline | keeping OpenAPI, capnp, tests, probes, codecs, and tools in sync | extra contract step up front |