Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/captain-woof/chirag
A Chrome extension to mock API responses, by having your requests intercepted and responded with your chosen response.
https://github.com/captain-woof/chirag
chrome-devtools chrome-extension developer-tools mock-server mockapi stub-api
Last synced: 10 days ago
JSON representation
A Chrome extension to mock API responses, by having your requests intercepted and responded with your chosen response.
- Host: GitHub
- URL: https://github.com/captain-woof/chirag
- Owner: captain-woof
- License: gpl-3.0
- Created: 2023-02-13T03:14:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T07:55:26.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T05:33:38.444Z (2 months ago)
- Topics: chrome-devtools, chrome-extension, developer-tools, mock-server, mockapi, stub-api
- Language: TypeScript
- Homepage:
- Size: 198 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
Chirag is a Chrome extension to mock API responses, by having your requests intercepted and responded with your chosen response.
# Install
There are three ways to get Chirag running in your browser.
## From Chrome Web Store
In progress.
## Building from source
To build from source, clone the repository, and run:
```
npm install && npm run build
```Then enable "Developer Mode" in Extensions page, and load the `dist` folder as an unpacked extension.
## Using release package
Download the `chirag.zip` from [releases](https://github.com/captain-woof/chirag/releases), extract out the extension package, then drop it in your browser to install it.
# Usage
1. Just add a URL you wanna mock a response for, add the corresponding response body, headers, etc.
2. Turn on the extension, and enable the added intercept.
3. Then have your current webpage make a request to the URL you just added.# Demo
https://user-images.githubusercontent.com/72122026/222662159-b219c5eb-f0ea-4b2e-8c85-4f9fc7136f8d.mp4
[Try it out here](https://captain-woof.github.io/chirag/demo/)