skeld Get started

Modules

Your API, described from the contract.

Writes an OpenAPI document from the contract your service already has, so the description and the code start from the same place.

Install
npm install @skeld/openapi
Needs
@skeld/core beside it
Writes
An OpenAPI 3.1.2 document, with no server running
It refuses to write a document it cannot write accurately.

What it is

A generator. Give it your contract and it returns an OpenAPI 3.1.2 document describing every route, input and response. It runs offline: no server, no network and no files read. Where skeld enforces a rule that OpenAPI has no way to express, the document says so and tells you where.

Should you use it

What it is not

  • A documentation site. It produces the document; showing it to people is up to you.
  • A server feature. It serves nothing and adds no route.
  • A description of the running service. It describes the contract, so run the service from the same one.

When to reach for it

  • People outside your team need to read or call your API.
  • You generate clients or run tools that read OpenAPI.
  • A customer or an auditor asks for a description of the API.

What good looks like

  • The document is generated when you build, from the contract the service runs.
  • Its security section matches how the service is really protected.
  • Descriptions hold nothing you would not publish.

Where to go next