GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - speedscale/mock-lab

BranchesTags
Open more actions menu

Latest commit

 

History

285 Commits
285 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
labs
labs
 
 
languages
languages
 
 
proxymock
proxymock
 
 
shared
shared
 
 
tutorial
tutorial
 
 
.gitignore
.gitignore
 
 
AI-CONTEXT.md
AI-CONTEXT.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

mock-lab

Runnable apps and exercises for learning proxymock. Fork this repository to change an app, record its traffic, and test your changes by replaying that traffic.

Start with a small app

Pick a language. Each app runs on port 8080 and calls the same CNCF projects API. Its README walks through running, recording, mocking, and replaying it. Each app includes a complete proxymock workspace for trying the recorded examples offline.

Language Example
Go languages/go
Node.js languages/node
Python languages/python
Java languages/java
Kotlin languages/kotlin
Ruby languages/ruby
.NET languages/dotnet
C++ languages/cpp
PHP languages/php
Rust languages/rust

Start with the Node app, which needs only Node and proxymock. Fork this repo on GitHub, clone your fork, and enter the app directory:

git clone https://github.com/<your-user>/mock-lab.git
cd mock-lab/languages/node

Install proxymock and run proxymock init first; it signs you in through your browser. Use proxymock init --api-key <key> only in CI or other headless environments. Follow the app README for runtime and proxy setup. Record a small session or use the committed recording, then ask the installed skills to create the tests. Start your editor or coding agent in the app directory; new recordings and results stay in that app's proxymock/ workspace.

GitHub Codespaces

Open in GitHub Codespaces

The runtimes and proxymock CLI are preinstalled. Activate proxymock with proxymock init --api-key <key> (free key at app.speedscale.com/signup), then enter languages/node or another language directory. To work in your own fork, create a Codespace from that fork.

Work through the agent tutorial

The tutorial app is a CNCF swag shop with an HTTP dependency and Postgres. Go, Java, Python, and Node implementations let an agent record traffic, tune mocks and tests, and run regression and performance tests. Start with the tutorial README for prerequisites and database setup.

Try a specific lab

The lab catalog has exercises for profiles, metrics, traces, logs, SQL query attribution, network policy, eBPF instrumentation, chaos, contract testing, and browser journeys. Each lab has its own setup and working directory.

Shared tools and recordings

The shared tools provide a reference downstream API, a dashboard, and a traffic driver for the language apps. Their downstream contract is shared/openapi.yaml.

The root proxymock workspace holds the reusable baseline recording, app contract, smart-replace blueprint, and schema-coverage test configuration. Run its examples from the repository root. Each language directory has its own proxymock/ workspace with the same layout: a capture from that runtime, the app contract at proxymock/applications/my-app.openapi.yaml, a blueprint and the schema-coverage test configuration. Open a language directory in your editor and use its workspace.

Agent skills

Install the Speedscale agent skills with the proxymock MCP server. Preview with --dry-run, then run it without that flag, replacing claude-code with your agent:

proxymock mcp install --client claude-code --skills --dry-run

Bundled skills are supported for Claude Code, Codex, Kiro, Kilo Code and Hermes Agent. For another agent, use npx skills add speedscale/skills. See MCP setup for client names and scope.

From the app directory, ask your agent: "Use this recording to create and run regression, contract, load and chaos tests. Show proposed expectations and budgets for review before saving them." Then ask it to use the results and OpenAPI schema to improve coverage and nonfunctional checks. The skills choose the scenarios and native commands from the app and traffic; this repository supplies their inputs.

The skills' proof scripts use this repository's root recording:

MOCK_LAB_DIR="$PWD" /path/to/skills/skills/quality-loop/scripts/prove-quality-loop.sh

See how runtime feedback improves AI coding for using recordings as context and replay as a check on code changes.

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.