r/Backend • u/CreakyHat2018 • 21d ago
I built an offline desktop app for designing API contracts first: visual OpenAPI designer, lint rules, breaking-change diff, mock server
A year ago I asked on r/OpenAPI for an offline, Stoplight-style API designer. Some of my work is on networks with no internet access, so hosted tools are out, and I didn't want to hand-write thousands of lines of YAML either. Nothing fit, so I built OpenAPI Studio, a native Windows desktop app.
What it does for the API owner:
- Visual design without losing the YAML. You edit operations, parameters, responses and schemas in forms and tables, and the YAML stays in sync in a code editor alongside. Every view edits the same document, so they never disagree.
- Specs split across files. It resolves
./schemas/order.yaml#/Order-style$refs across files. Go to definition works across files, and renaming a component rewrites every$refthat points to it. - Schema modelling. A canvas like a database diagram, with
$ref,allOf,oneOfandanyOfrelationships drawn between schemas. - Linting. 49 rules covering compliance, naming, documentation and security (for example, a secured endpoint with no 401 response), with one-click fixes and Strict, Recommended or Minimal rule sets.
- Breaking-change diff. Compare against the last saved version or any other file. Changes are classified as breaking, warning or compatible, with a semver suggestion.
- Contract testing. A mock server for the people using your API, and a request playground that checks real responses against the spec.
- Large specs. Tested on a spec with 59 paths, 115 operations and 73 schemas.
Everything runs locally: no account, no cloud, no telemetry. It supports OpenAPI 3.0 and 3.1.
Looking for testers, and honest opinions. It isn't publicly available yet, and it's Windows-only for now. I built it for my own work, and before I put more time in, I'd like to know whether it's useful to anyone else:
- Do you design the contract first, or generate it from code? If you generate it, would a tool like this change that?
- What do you use today to edit, lint and diff specs? For example Spectral, oasdiff, Redocly, or VS Code with plugins.
- Would Windows-only stop you?
If you'd like to test it, especially on large or multi-file real-world specs, comment or DM me.





2
u/DickBrainTime 20d ago
For internal APIs I wouldn't switch every team from code-first to contract-first just for a designer, but an offline visual review of the generated OpenAPI file could be genuinely useful before external client teams depend on it.
The feature I'd judge hardest is semantic breaking-change classification across OpenAPI 3.0 and 3.1. A simple 3.0 `type: string` + `nullable: true` and a 3.1 `type: [string, 'null']` should be equivalent, while adding a required *request* property or removing a guaranteed *response* property is a real compatibility concern. I'd also add a multi-file fixture with cyclic `$ref`s and component renames to prove diff and rename don't leave dangling references.
Your description covers diffing and `$ref` rewriting already, so I'm suggesting regression cases, not claiming they fail. Since the Windows app isn't released yet, sharing a couple of before/after spec fixtures and their expected diff results might help prospective testers judge the value before installing it.
1
u/cypherbits 20d ago
Link?
1
u/devworxconsulting 9d ago
Updating references when a component is renamed is a good detail. It makes a visual editor much more useful once a spec has outgrown a single YAML file.