Getting Started
Get MockPro running and intercept your first request in under 5 minutes.
Prerequisites
- Chrome 100 or later (required for Manifest V3 service worker support).
Install MockPro
Install MockPro from the Chrome Web Store and click Add to Chrome.
MockPro’s icon appears in your toolbar. Pin it so the popup is one click away.
Open the Dashboard
Click the MockPro icon in the Chrome toolbar, then click Open Dashboard. The dashboard opens in a new tab — keep it pinned while you work.
Create Your First Mock
- In the dashboard, go to the Rules tab and click New Rule.
- Set Type to
REST. - Set URL Pattern to
api.github.com/users/*— the*wildcard matches any username. - Set Method to
GET. - Set the Response Body to:
{ "login": "octocat", "name": "Mocked User" }
- Click Save, then flip the global toggle to ON.
Test It
Open DevTools on any page (F12 → Console) and run:
fetch('https://api.github.com/users/octocat')
.then(r => r.json())
.then(console.log);
You should see { login: "octocat", name: "Mocked User" } logged — the real GitHub API was never called.
The Logs tab in the dashboard shows the intercepted request with the matched rule highlighted.
Next Steps
You’ve mocked your first REST endpoint. Continue to Rule Syntax & Mocking Guide to learn wildcard vs. regex patterns, conditions, SSE event sequences, WebSocket mocking, and more.