mocksmith
v0.3.3
Published
A session-aware mock server for HTTP, WebSocket, raw TCP/TLS and SSE, with declarative scenarios, a runtime control API, a Playwright fixture and Vite integration.
Maintainers
Readme
mocksmith
A session-aware mock server for HTTP/HTTPS, WebSocket, raw TCP/TLS and SSE.
This is the core package: the server, sessions, endpoint overrides, the typed
config and the mocksmith CLI. It has no dependency on any other
@mocksmith/* package — scenarios, the Playwright fixture, the Vite plugins and
the lint rule are separate packages you install only if you want them.
npm install --save-dev mocksmithSee the project README for a guided tour, and docs/plugins.md for writing plugins.
Entry points
| Import | Contents |
| --- | --- |
| mocksmith | createMockServer, MockContext, sessions, types |
| mocksmith/client | runtime-free surface: cookie name, image stub, shared types |
| mocksmith/config | defineMockerConfig, loadMockerConfig, startMockerFromConfig |
| mocksmith/plugin | definePlugin and the plugin API types |
License
MIT
