Layang v1.0.0 RC 2 is available with WebSocket beta

Test, mock, benchmark, and document APIs from one workspace.

Layang is a workspace-based API workbench. The first release focuses on protobuf and gRPC, with `.proto` browsing, gRPC/gRPC-Web calls, mock scenarios, benchmarks, generated docs, CLI automation, and a beta WebSocket workflow for early testing.

layang run ./workspace --env dev --reporter junit
Layang Workbench
Layang desktop app screenshot showing the protobuf and request workbench
Workspace Portable project folder

Proto files, requests, docs, mocks, environments, and history stay together.

gRPC workbench Test, mock, and document APIs

Send gRPC and gRPC-Web requests, create mock scenarios, save examples, and generate docs from one workspace.

Feature set

Built around protobuf and gRPC workflows.

Import proto files, send calls, save examples, benchmark latency, generate docs, and keep everything in a workspace folder.

Native gRPC and gRPC-Web

Run unary and server-streaming calls with request bodies, metadata, response history, trailers, and test assertions.

target: localhost:50051
method: demo.v1.GreeterService/SayHello
transport: native-grpc

WebSocket beta

Create WebSocket requests, connect to ws/wss endpoints, send messages, inspect events, mock responses, benchmark latency, and publish beta docs.

Proto registry

Browse imported `.proto` files, services, methods, request messages, and response messages.

Benchmarks

Run latency samples and export benchmark JSON reports for active methods.

Generated docs

Create Markdown or HTML documentation from proto files, examples, mocks, and latest responses.

CI automation

Validate workspaces, list saved requests, check mocks, and run native gRPC requests from the CLI.

WebSocket beta

Early WebSocket workflows now live beside gRPC.

RC 2 introduces beta WebSocket collections for live client testing, desktop-managed mock responses, benchmark exports, and generated docs. The feature is ready for feedback and may still change before stable 1.0.

Layang WebSocket beta screenshot showing request and live event workflow
WebSocket beta workbench with connection controls, live events, request messaging, and workspace-backed testing flow.
Area Status What is included
Client Beta Open ws/wss connections, send payloads, and inspect live events.
Mocking Beta Run a local desktop WebSocket mock server and send responses to connected clients.
Docs and reports Beta Publish WebSocket docs and export benchmark data from the active workspace.
Workspace folder

Your API project is stored as readable files.

The desktop app can create or open a workspace folder. A workspace stores a snapshot plus Git-friendly files under folders such as `protos/`, `requests/`, `examples/`, `docs/`, `environments/`, `history/`, and `mocks/`.

One workspace folder Per-method mock scenarios Portable workspace export CLI-ready project files
Documents/Layang/Workspace
protos/
  demo/v1/greeter.proto
requests/
  tabs.json
  items/
examples/
  examples.json
docs/
  published-docs.json
  saved-results.json
mocks/
  mock-server.json
  scenarios/
environments/
  environments.json
history/
  history.json
Mocking and streaming

Edit streaming mock scenarios visually.

Enable mock behavior per method, choose active scenarios, and tune stream intervals, loop mode, and response sequences from the app.

Layang mock streaming editor screenshot
Mock streaming editor with per-method scenarios, selected active response, and stream controls.
01Per-method scenarios

Keep mock behavior focused by storing scenario files per RPC method.

02Streaming controls

Set interval, loop behavior, and max loops for server-streaming responses.

03Local mock server

Run a desktop-managed mock server for local clients and integration work.

04Workspace files

Scenario JSON/YAML stays in the same portable workspace as requests and docs.

Documentation

Generate docs from the work you already saved.

Layang can generate Markdown or HTML docs using proto metadata, saved examples, mock scenarios, and the latest saved responses.

Proto reference Service, method, request, response, and source `.proto` information.
Examples and responses Saved request examples and latest responses become readable docs sections.
Static publishing Export docs for a static site or keep them inside the workspace folder.
Layang generated documentation preview screenshot
Generated documentation preview for a selected method.
CLI

Run the same workspace in automation.

Keep desktop exploration and CI checks aligned. The CLI reads the same workspace files that the app writes.

layang validate ./workspace --json
layang list ./workspace
layang run ./workspace \
  --env dev \
  --reporter junit \
  --output reports/layang-junit.xml
layang mock:check ./workspace
Validate Check workspace structure, request files, proto availability, and mock scenario files.
Run Execute saved native gRPC requests with clear exit codes for CI/CD.
Report Output spec, JSON, or JUnit reports for build pipelines.
Start with a proto file

Build a complete API workspace in Layang.

Import proto files, run requests, edit streaming mocks, generate docs, benchmark methods, and automate checks in CI.