Moq - Mock API Requests ์ ์์: Pavel Shpakovich
Mock HTTP requests with custom responses, status codes, delays, and headers. Perfect for development, testing, and debugging.
ํ์ฅ ๋ฉํ ๋ฐ์ดํฐ
์คํฌ๋ฆฐ์ท
์ ๋ณด
Moq - Powerful API Mocking for Chrome DevTools
Moq is a developer tool that intercepts and mocks HTTP requests directly in your browser, eliminating the need to modify backend code or wait for API changes during frontend development.
WHY INSTALL MOQ?
โ Speed Up Development - Test different API responses instantly without backend changes or server restarts
โ Isolated Testing - Work offline or test edge cases (errors, timeouts, specific data) that are hard to reproduce
โ No Code Changes - Mock requests at the browser level without touching your application code
โ Real Time Control - Enable/disable mocks on-the-fly, perfect for comparing real vs mocked responses
KEY FEATURES
โ Client-Side Interception
Captures fetch() and XMLHttpRequest before they reach the network
โ Full Response Control
Set custom status codes (200, 404, 500), response bodies, headers, and delays
โ Response Hooks with JavaScript
Write code to transform responses dynamically (both mock and real)
โข Toggle hooks on/off without deleting code
โข Comprehensive validation catches undefined variables and syntax errors
โข Available globals: response, request, helpers (uuid, timestamp, random data)
โ Two Response Modes
โข Mock Mode - Return configured mock response with your custom data
โข Passthrough Mode - Forward request to real server and transform response with JavaScript hook
โ Dynamic Variables
Generate unique data with {{timestamp}}, {{uuid}}, {{random_number}}, {{random_string}} in responses
โ Request Recording & Logging
Record and inspect actual network traffic, create mocks from real responses with one click
โ Smart Organization
Group rules into folders, search and filter, bulk enable/disable, hit counters show usage
โ Rule Validation & Warnings
Automatic detection of invalid regex, JSON errors, overlapping rules, and unused rules
โ Import/Export with Preview
Share rule configurations with merge or replace modes, validate before importing
โ Multi-Monitor Support
Open in standalone window or DevTools panel, full state synchronization
โ Dark/Light Theme
System preference detection with manual override
โ CORS Auto-Fix
Automatically inject CORS headers to bypass cross-origin restrictions
โ Multi-Language
Full English and Russian translations
USE CASES & BENEFITS
FOR FRONTEND DEVELOPERS:
โข Test different API responses without backend changes
โข Work offline or before backend APIs are ready
โข Validate error handling with custom error responses
โข Test loading states with configurable delays
FOR QA ENGINEERS:
โข Simulate edge cases that are hard to reproduce
โข Test timeout scenarios and network failures
โข Validate UI with specific data combinations
โข Automate testing with exported rule configurations
FOR DEBUGGING:
โข Modify production API responses locally for troubleshooting
โข Compare real vs mocked responses side-by-side
โข Track request/response patterns with hit counters
โข Organize test scenarios into folders for different features
PRIVACY & SECURITY
โ No data collection
โ No external servers
โ All data stored locally in your browser
โ Open source and transparent
GETTING STARTED
Perfect for frontend developers, QA engineers, and anyone who needs to test API integrations without modifying backend code or waiting for server changes. All data stays local - no external servers, no data collection, complete privacy.
Moq is a developer tool that intercepts and mocks HTTP requests directly in your browser, eliminating the need to modify backend code or wait for API changes during frontend development.
WHY INSTALL MOQ?
โ Speed Up Development - Test different API responses instantly without backend changes or server restarts
โ Isolated Testing - Work offline or test edge cases (errors, timeouts, specific data) that are hard to reproduce
โ No Code Changes - Mock requests at the browser level without touching your application code
โ Real Time Control - Enable/disable mocks on-the-fly, perfect for comparing real vs mocked responses
KEY FEATURES
โ Client-Side Interception
Captures fetch() and XMLHttpRequest before they reach the network
โ Full Response Control
Set custom status codes (200, 404, 500), response bodies, headers, and delays
โ Response Hooks with JavaScript
Write code to transform responses dynamically (both mock and real)
โข Toggle hooks on/off without deleting code
โข Comprehensive validation catches undefined variables and syntax errors
โข Available globals: response, request, helpers (uuid, timestamp, random data)
โ Two Response Modes
โข Mock Mode - Return configured mock response with your custom data
โข Passthrough Mode - Forward request to real server and transform response with JavaScript hook
โ Dynamic Variables
Generate unique data with {{timestamp}}, {{uuid}}, {{random_number}}, {{random_string}} in responses
โ Request Recording & Logging
Record and inspect actual network traffic, create mocks from real responses with one click
โ Smart Organization
Group rules into folders, search and filter, bulk enable/disable, hit counters show usage
โ Rule Validation & Warnings
Automatic detection of invalid regex, JSON errors, overlapping rules, and unused rules
โ Import/Export with Preview
Share rule configurations with merge or replace modes, validate before importing
โ Multi-Monitor Support
Open in standalone window or DevTools panel, full state synchronization
โ Dark/Light Theme
System preference detection with manual override
โ CORS Auto-Fix
Automatically inject CORS headers to bypass cross-origin restrictions
โ Multi-Language
Full English and Russian translations
USE CASES & BENEFITS
FOR FRONTEND DEVELOPERS:
โข Test different API responses without backend changes
โข Work offline or before backend APIs are ready
โข Validate error handling with custom error responses
โข Test loading states with configurable delays
FOR QA ENGINEERS:
โข Simulate edge cases that are hard to reproduce
โข Test timeout scenarios and network failures
โข Validate UI with specific data combinations
โข Automate testing with exported rule configurations
FOR DEBUGGING:
โข Modify production API responses locally for troubleshooting
โข Compare real vs mocked responses side-by-side
โข Track request/response patterns with hit counters
โข Organize test scenarios into folders for different features
PRIVACY & SECURITY
โ No data collection
โ No external servers
โ All data stored locally in your browser
โ Open source and transparent
GETTING STARTED
- Open Chrome DevTools (F12)
- Click the "Moq" tab
- Create your first mock rule with URL pattern matching
- Enable recording to capture real requests
- Click "Mock This" on any logged request to create a rule instantly
Perfect for frontend developers, QA engineers, and anyone who needs to test API integrations without modifying backend code or waiting for server changes. All data stays local - no external servers, no data collection, complete privacy.
0๋ช
์ด 0์ ์ผ๋ก ํ๊ฐํจ
๊ถํ ๋ฐ ๋ฐ์ดํฐ
ํ์ ๊ถํ:
- ๋ชจ๋ ํ์ด์ง์ ์ฝํ ์ธ ์ฐจ๋จ
- ์ด๋ ค์๋ ํญ์ ๋ฐ์ดํฐ์ ์ ๊ทผํ๋๋ก ๊ฐ๋ฐ์ ๋๊ตฌ ํ์ฅ
- ๋ธ๋ผ์ฐ์ ํญ์ ์ ๊ทผ
- ๋ชจ๋ ์น์ฌ์ดํธ์์ ์ฌ์ฉ์์ ๋ฐ์ดํฐ์ ์ ๊ทผ
์ ํ์ ๊ถํ:
- ๋ชจ๋ ์น์ฌ์ดํธ์์ ์ฌ์ฉ์์ ๋ฐ์ดํฐ์ ์ ๊ทผ
๋ฐ์ดํฐ ์์ง:
- ๊ฐ๋ฐ์๊ฐ ์ด ํ์ฅ ๊ธฐ๋ฅ์ ๋ฐ์ดํฐ ์์ง์ด ํ์ํ์ง ์๋ค๊ณ ํฉ๋๋ค.
์ถ๊ฐ ์ ๋ณด
- ๋ถ๊ฐ ๊ธฐ๋ฅ ๋งํฌ
- ๋ฒ์
- 2.14.0
- ํฌ๊ธฐ
- 386.03 KB
- ๋ง์ง๋ง ์ ๋ฐ์ดํธ
- 4์ผ ์ (2026๋ 2์ 28์ผ)
- ๊ด๋ จ ์นดํ ๊ณ ๋ฆฌ
- ๋ผ์ด์ ์ค
- Mozilla Public License 2.0
- ๊ฐ์ธ์ ๋ณด์ฒ๋ฆฌ๋ฐฉ์นจ
- ์ด ๋ถ๊ฐ ๊ธฐ๋ฅ์ ๋ํ ๊ฐ์ธ์ ๋ณด์ฒ๋ฆฌ๋ฐฉ์นจ ์ฝ๊ธฐ
- ๋ฒ์ ๋ชฉ๋ก
- ๋ชจ์์ง์ ์ถ๊ฐ