100% Client-Side: Your files and tokens never leave your browser.

OpenAPI Explorer & Interactive Mock Runner

Upload an OpenAPI / Swagger specification and explore, invoke and test endpoints entirely in your browser. Nothing is uploaded.

All OpenAPI files remain in your browser. No specifications are uploaded or transmitted.

Acme Commerce Mock API

v1.4.0OpenAPI 3.0.3

Sample OpenAPI 3.0 specification demonstrating stateful browser-only mock execution across Users and Orders.

7 Endpoints5 Schemas2 Tags
Servers:https://api.acme-commerce.example.test/v1
Memory Store: 0 records
Select an endpoint from the left sidebar to explore and invoke it locally.

How Client-Side OpenAPI Parsing & Stateful Mock Execution Work

Exploring and testing an OpenAPI 3.0, OpenAPI 3.1, or Swagger 2.0 specification normally requires spinning up a local Prism/WireMock container or uploading private API contracts to a hosted SaaS sandbox. DevPayload's OpenAPI Explorer & Interactive Mock Runner parses YAML and JSON specs, dereferences local $ref pointers, and runs a complete stateful mock API engine strictly inside your browser memory—with zero HTTP calls and zero backend infrastructure.

When you paste or upload a specification, the browser parses it into a normalized internal representation (OpenApiRuntimeModel) that unifies Swagger 2.0 definitions and OpenAPI 3.x components/schemas. Local JSON Pointer references (#/components/schemas/User, #/definitions/Device) are resolved safely with circular-reference guards so complex enterprise specs never freeze your tab.

Clicking "Try It Out" and "Run Mock Request" invokes an in-memory execution engine (runtime.invoke) instead of fetch(). Realistic mock payloads are synthesized from your response schemas using Faker-backed format generators (emails, UUIDs, ISO timestamps, enums, nested objects, and arrays), while POST, PUT, PATCH, and DELETE operations persist records in a session-scoped memory store—so creating a user with POST /users and immediately calling GET /users/{id} returns that exact record.

Browser-Only Mock Execution Pipeline

Specs are normalized once into OpenApiRuntimeModel, enabling both instant interactive mock execution today and pluggable SDK/server code generators tomorrow.

OpenAPI 3.0 / 3.1 / Swagger 2.0 (YAML or JSON)
  -> parseOpenApiSpec() + local #/ $ref dereferencing
  -> OpenApiRuntimeModel { endpoints[], schemas{}, servers[], tags[] }
  -> OpenApiMockRuntime.invoke(method, path, parameters, body)
  -> In-Memory Session CRUD Store + Schema-Driven Faker Response

Code Equivalents (Python & JavaScript / Node.js)

Python Parse OpenAPI YAML & inspect endpoints in Python
import yaml

with open("openapi.yaml", "r", encoding="utf-8") as f:
    spec = yaml.safe_load(f)

print(f"{spec['info']['title']} v{spec['info']['version']}")
for path, item in spec.get("paths", {}).items():
    for method in ("get", "post", "put", "patch", "delete"):
        if method in item:
            summary = item[method].get("summary", "")
            print(f"{method.upper():6s} {path:24s} — {summary}")
JavaScript Parse OpenAPI & invoke local mock runtime in Node.js
import yaml from 'js-yaml';
import fs from 'node:fs';

const spec = yaml.load(fs.readFileSync('openapi.yaml', 'utf8'));
const schemas = spec.components?.schemas ?? spec.definitions ?? {};

console.log({
  title: spec.info.title,
  version: spec.info.version,
  paths: Object.keys(spec.paths ?? {}).length,
  schemas: Object.keys(schemas).length,
});

Frequently Asked Questions

Does the OpenAPI Explorer make real HTTP requests or upload my spec? +

No. Your OpenAPI YAML or JSON file is parsed locally in browser memory, and clicking "Run Mock Request" executes an internal in-memory mock runtime without calling fetch() or contacting any external server.

Which OpenAPI and Swagger versions are supported? +

DevPayload supports OpenAPI 3.0.x, OpenAPI 3.1.x, and Swagger 2.0 specifications in both YAML (.yaml, .yml) and JSON (.json) formats, including local $ref dereferencing.

How does the in-memory mock store work across requests? +

When you invoke POST /users, the mock runtime stores the newly created object (with an auto-assigned or provided ID) in a browser-session Map. Subsequent GET /users/{userId}, PUT, PATCH, or DELETE calls operate against that same in-memory record until you click Reset or refresh the page.

Can this internal model power SDK or mock server code generation later? +

Yes. The parser normalizes every OpenAPI 3.0, 3.1, and Swagger 2.0 document into a reusable OpenApiRuntimeModel designed for future client-side C#, TypeScript SDK, FastAPI, Express, and Mock Server generators.