Specter Mock VS Code Extension Brings API Mocking and Diff Tools In-Editor
A developer has released Specter Mock, a free VS Code extension designed to eliminate context-switching when working with OpenAPI specifications. The extension provides three core features: a local mock server that serves HTTP responses from spec examples, a built-in Try It panel for testing endpoints, and an automatic breaking-change diff that flags removed endpoints or altered schemas on save. The developer built it after finding that existing tools like Postman, Prism, and oasdiff each addressed only part of the problem and required leaving the editor. Technically, the extension uses Node's built-in HTTP module, swagger-parser for spec dereferencing, simple-git for diffing against the previous Git commit, and a plain-HTML Webview — with esbuild handling bundling. Specter Mock is available now by searching 'Specter Mock' in the VS Code Extensions marketplace, with planned features including stateful mock scenarios and schema-based response generation.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in