Solution Design Packs: Document, Diagrams and API Contract in One Folder

Keep the design document, its Mermaid diagrams and the OpenAPI contract as plain files in one folder, read them together, and share them as an offline site.

Solution Design Packs: Document, Diagrams and API Contract in One Folder

A solution design is never one file, and Prisment lets you keep it that way: the design document, its Mermaid diagrams and the OpenAPI contract stay as plain files in one folder, render in one place, and export as one browsable site. The usual alternative is a wiki for the prose, a drawing tool for the boxes, a spec editor for the contract — and a PDF assembled the night before the review.

1. What is a design pack made of?

Five or six artifacts that normally live in five or six tools — and as plain files in one folder they become one reviewable state. It diffs, branches and reviews in git like the code it describes.

One folder holds the design pack: solution-design.md with its diagrams as text, data-model.md, the ADR decision records and openapi.yaml; Prisment renders each in its own viewer; export turns the folder into an interlinked offline site that reviewers open with a double-click

Artifact In the pack Usually lives in
Solution design solution-design.md A wiki
Context and flow diagrams Mermaid blocks in the document Drawing-tool exports
Data model data-model.md A third tool
Decision log adr-001-*.md Wiki child pages
API contract openapi.yaml A spec editor, or a repo nobody browses

The catch has always been reading it: a folder of .md and .yaml is the right storage and the wrong reading experience. That is the part Prisment supplies.

2. How does the design document read?

A Mermaid block inside the Markdown renders as a real diagram with pan, zoom and fullscreen — not a picture, and not a code fence the reader compiles in their head. The diagram is the same text the document is written in:

flowchart LR
  SF[Storefronts] --> API[Order API]
  API --> Q[(Order events)]
  Q --> ORCH[Orchestrator]
  ORCH --> WMS[Warehouse]

A solution design document open in Prisment: section 3, Target architecture, drawing a Mermaid flowchart from Storefronts through the Order API, order events and an orchestrator to Warehouse, Billing and the order store, with its zoom toolbar

That matters most the next time the design changes: a diagram that is text is edited in the same pass, review and commit as the paragraph above it, instead of going stale in someone's drawing tool. To make it move, see animated Mermaid diagrams.

3. How does the API contract read?

One top-level key decides it: a YAML or JSON file with openapi: or swagger: at its root renders as browsable API documentation, and any other YAML renders as a read-only code view. The spec is parsed in your browser and never sent to an external Swagger service.

openapi.yaml open in Prisment as browsable API documentation: Order API with version 1.4.0 and OAS 3.0 badges, a servers dropdown set to the production address, and an Orders group with a GET /orders List orders operation

Operations expand in place to parameters, request bodies, responses, schemas and examples, and the viewer keeps the last valid version on screen while an edit leaves the spec briefly invalid. Details: OpenAPI and Swagger.

4. How do reviewers get it without the repository?

Export the folder as All Interlinked Wiki: every document becomes a page, the contract becomes interactive API docs, links are rewritten, and a sidebar tree navigates the pack. Reviewers double-click index.html; nothing is installed and nothing runs on a server.

The Export Options dialog on its Multiple Files tab: four files ticked — adr-001-event-driven.md, data-model.md, openapi.yaml and solution-design.md — under a filter field, All Interlinked Wiki recommended among the three workspace options, and an Export (4) button

The other export shapes suit other hand-offs; sharing Markdown as HTML, a wiki or a PDF compares them.

5. Where does review come in?

A design pack is what an AI agent builds from, so the pack is where people should decide. Start a review over the folder: comment on a passage or a diagram, see what changed since the last read, approve the exact versions, and let Git or a shared drive carry the review to your team. If the first draft came from a terminal agent, mount its folder and read it as it lands.

6. Try it

Open the workspace to explore a booking-app project — its requirements, a flow diagram and an OpenAPI contract in one folder — or mount your own. Free, no account, nothing uploaded.

Frequently asked questions

Can I keep a design document, its diagrams and its API contract in one place?

Yes, as plain files in one folder. Prose and Mermaid diagrams live in .md files and the contract in an openapi.yaml, and Prisment renders all of them: Markdown as a styled document with live diagrams, and the YAML as browsable API documentation. Because everything is text, the whole pack diffs and reviews in git like the code it describes.

How does Prisment decide to render a YAML file as API documentation?

By one top-level key. A file with openapi: (OpenAPI 3.x) or swagger: (Swagger 2.0) at its root renders as browsable API docs; any other YAML falls back to a read-only code view. The YAML is parsed in your browser, never sent to an external Swagger service.

How do I share a whole design pack with reviewers who do not have the repo?

Export and choose All Interlinked Wiki. You get a ZIP in which every .md is a standalone HTML page, the OpenAPI file is an interactive API documentation page, links between documents work, and a sidebar tree lets a reader browse the pack. They double-click index.html — there is nothing to install.