Hateoas Driven API Recipe

Your Use Case

You're not just documenting the API โ€” you're using it:

  • To operate a mesh manually, before clients exist.
  • You need an executable interface, not just static documentation.
  • You want structured examples (i.e. recipes) that can act as proto-clients or decision-paths.
  • You lean toward HATEOAS style: i.e., user follows links (or rels), maybe inputting small bits along the way.

๐Ÿ”ฅ This is not what Scalar is designed for

Scalar is a docs tool, great for:

  • Rendering OpenAPI reference UIs.
  • Hosting and styling spec-based endpoints.
  • Not for chaining calls, dynamic flows, or acting like a human-in-the-loop client.

Even Stoplight or RapiDoc start to feel clunky in your context, because what you're actually describing is closer to:

> โœ… A human-usable API client with structured, composable, inspectable API macros or flows


๐Ÿšจ So yes, you probably need to build something.

But here's how to think about it critically, so you don't throw away everything or reinvent everything either.


๐Ÿง  What You Actually Want: A "HATEOAS Recipe Runner"

You're describing a system that does the following:

FeatureDescription
๐Ÿ”ง Embeds real OpenAPISo you get type safety, endpoint listings, schemas, validation
๐Ÿงช Can execute requestsFull HTTP interaction, possibly with state/cookies/token
๐Ÿชœ Supports recipes/flowsSequence of calls, possibly branching via hypermedia
๐Ÿงต Has local state/inputTo reuse values from previous steps
๐Ÿ“Ž HATEOAS link traversale.g. follow "next" or "create" link relations dynamically
๐Ÿงฐ Deno/TS-nativeSo it integrates with your mesh, Weave, etc.
๐Ÿงญ Interactive + replayableYou can try things, backtrack, debug