Mocks api responses for AJAX (XHR) requests. (Postman for Frontend)

Latest Version

Version
4.3.2
Update
May 17, 2024
Size
2.3MiB
Developer
Category
Users
2,000+
Rating
4.05882 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
Storage
UnlimitedStorage
See more

MockMan - mock APIs Extension

This is essentially built to increase productivity in frontend development. Made for developers, it lets users to define rules (url, method and mock response) to respond to AJAX calls.
Supports all common libraries like axios, superagent, XMLHttp, fetch etc.
Response can be a JSON object or an error.
It includes a JSON formatter to automatically convert your response in proper json format.

Each rule can be individually turned on/off to apply mocking.
There's a global power switch to turn off mocking all the rules at once.

The JSON object maker lets users to make the object in JS syntax and the formatter will convert it into valid JSON object with inverted commas and no trailing commas etc.

Features:
1. Urls can be absolute complete paths or regex enabled.
2. Labels for rules, so user can add different versions of same api
3. Delay in response
4. Test your app with success and error responses.
5. Add response headers along with mock response in the rule.

Steps for Users -
1. Define the api url, method, response JSON or error msg to be mocked.
2. Refresh the project and the ajax / fetch request will be mocked. Mocked url will disappear from network tab and appear in console if rule matches.

For any query or bug report or feature request - reach out to [email protected].

This extension is made with love for fellow developers. If this helps you, support us with good reviews :))
Let's build stuff.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "MockMan - mock APIs", "description": "Mocks api responses for AJAX (XHR) requests. (Postman for Frontend)", "version": "4.3.2", "action": { "default_icon": "assets/icon-dark.png" }, "devtools_page": "devtools.html", "background": { "service_worker": "background.js" }, "content_scripts": [ { "matches": [""], "run_at": "document_start", "all_frames": true, "js": ["globals.js", "content-script.js"] } ], "sandbox": { "pages": ["sandbox.html"] }, "permissions": [ "storage", "unlimitedStorage" ], "web_accessible_resources": [ { "resources": ["app/*", "mocky.prod.js"], "matches": ["*://*/*"] }, { "resources": ["app/*", "mocky.prod.js"], "matches": ["file:///*"] } ]}
Read more

Similar Extensions

icon

tweak: mock and modify HTTP requests Extension · Developer Tools 2,000+ 190 ★ 3.22MiB

icon

Mock:Intercept and directly return data Extension · Developer Tools 2,000+ 6 ★ 487KiB

icon

Request Interceptor Extension · Developer Tools 2,000+ 58 ★ 1.89MiB

icon

Requestly - Intercept, Modify & Mock HTTP Requests Extension · Developer Tools 2,000+ 1227 ★ 876KiB

icon

Parrot API mocking Extension · Developer Tools 2,000+ 5 ★ 3.6MiB

icon

Browser Proxy Extension · Developer Tools 2,000+ 1 ★ 2.54MiB

icon

Oh-my-Mock Extension · Developer Tools 2,000+ 8 ★ 7.07MiB

icon

Mockiato: Mocks on the Fly! Extension · Developer Tools 2,000+ 8 ★ 477KiB

icon

ModResponse - Mock and replay API Extension · Developer Tools 2,000+ 23 ★ 454KiB

icon

Mokku Extension · Developer Tools 2,000+ 76 ★ 3.28MiB

icon

Mock Proxy Extension · Developer Tools 2,000+ 4 ★ 2.03MiB

icon

xhr-devtool Extension · Developer Tools 2,000+ 1 ★ 51.34KiB

icon

Netify Extension · Developer Tools 2,000+ 40 ★ 1.24MiB

icon

Mimic , mock http requests Extension · Developer Tools 2,000+ 5 ★ 2.48MiB

icon

YMock: Mock API calls info Extension · Developer Tools 2,000+ 2 ★ 1.68MiB

icon

Interceptor Extension · Developer Tools 2,000+ 2 ★ 180KiB

icon

Chrome Response Override Extension · Developer Tools 2,000+ 15 ★ 488KiB

icon

Tamper Dev Extension · Developer Tools 2,000+ 29 ★ 532KiB

icon

Ajax Modifier Extension · Developer Tools 2,000+ 48 ★ 2.08MiB

icon

Request Interceptor Extension · Developer Tools 2,000+ 12 ★ 23.97KiB

icon

Ajax Proxy Extension · Developer Tools 2,000+ 8 ★ 835KiB

icon

Ajax Interceptor Tools Extension · Developer Tools 2,000+ 12 ★ 2.31MiB

icon

URL Throttler Extension · Developer Tools 2,000+ 31 ★ 38.13KiB

icon

Scripter debugger extension Extension · Developer Tools 2,000+ 2 ★ 1.04MiB

User reviews

icon

Мадам Брошкина (ID: 000000a4244a600f) Voted 5 ★ - Updated 12/08/2024 Works great, helps a lot

icon

Andrew Raymond (BizTech) (ID: 0000003104d661a0) Voted 5 ★ - Updated 10/18/2022 Simple and great! I think the one basic thing that is missing I think is the ability to give a custom name to the mock data. The URL name works, but if you want different mocks for the same URL, it's hard to remember which mock data set I'm turning on.

icon

Fabio Issamu Oshiro (ID: 00000045f3806074) Voted 5 ★ - Updated 06/15/2022 Just works!

icon

kami kamyar (ID: 000000f18cf1d9d7) Voted 5 ★ - Updated 05/22/2022 regex does n't works on url please fix it

icon

Try Setyo Utomo (ID: 00000028dc65e600) Voted 5 ★ - Updated 05/17/2022 very great extension to mock the Frontend side while waiting Backend API , hopefully the developer be able to improve this extension,