{"id":16371556,"url":"https://github.com/riccardoperra/mswjs-devtools-extension","last_synced_at":"2025-03-23T02:34:31.330Z","repository":{"id":104287559,"uuid":"555715001","full_name":"riccardoperra/mswjs-devtools-extension","owner":"riccardoperra","description":"[WIP] [NOT PUBLISHED YET] Chrome extension for debugging and configuring Mock Service Worker at runtime in your application.","archived":false,"fork":false,"pushed_at":"2023-10-01T16:57:30.000Z","size":2516,"stargazers_count":20,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-18T06:30:16.055Z","etag":null,"topics":["apimocking","chrome","chrome-extension","mock","mock-server","mocking","msw","mswjs","solid-js"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riccardoperra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-10-22T06:33:07.000Z","updated_at":"2024-06-13T02:33:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"821c3253-0e42-4693-b559-a87feacd2530","html_url":"https://github.com/riccardoperra/mswjs-devtools-extension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardoperra%2Fmswjs-devtools-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardoperra%2Fmswjs-devtools-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardoperra%2Fmswjs-devtools-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardoperra%2Fmswjs-devtools-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riccardoperra","download_url":"https://codeload.github.com/riccardoperra/mswjs-devtools-extension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221843211,"owners_count":16890279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apimocking","chrome","chrome-extension","mock","mock-server","mocking","msw","mswjs","solid-js"],"created_at":"2024-10-11T03:08:51.077Z","updated_at":"2024-10-28T14:48:24.892Z","avatar_url":"https://github.com/riccardoperra.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/mswjs/msw/main/media/msw-logo.svg\" width=\"100\" alt=\"Mock Service Worker logo\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eMock Service Worker Developer Tools Extension\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003cstrong\u003eMSW DevTool\u003c/strong\u003e is a Chrome Developer Tools extension for debugging and configuring Mock Service Worker in your application.\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"showcase.gif\" alt=\"Showcase of devtools\"/\u003e\n\u003c/p\u003e\n\n## 🚧 This project is currently in early development 🚧\n\n## Features\n\n✅ **Integrate existing handlers from your application code**.\n\nOnce the extension is configured, you will be able to retrieve automatically the list of your configured handlers\nin order to activate/deactivate them, editing the responses at runtime and more.\n\n![img_6.png](img_6.png)\n\n✅ **Create and edit existing handlers on the fly**.\n\nYou can edit your handler response at runtime, with the possibility to add more custom responses to choose the one that\nsuits better your scenario.\n\n![img_8.png](img_8.png)\n\n✅ **JSON Editor and @faker-js/faker-js integration**.\n\nYou can add a custom response body in JSON taking advantage of different custom\nfeatures like `Prettier` auto-formatting, autocompleting for `@faker-js/faker-js` variables.\n\n![img_5.png](img_5.png)\n\n## Usage\n\n```ts\nimport {setupWorker, SetupWorkerApi} from \"msw\";\nimport {handlers} from \"./handlers\";\n\nexport const worker = setupWorker(...handlers);\n\ndeclare global {\n  interface Window {\n    __MSWJS_DEVTOOLS_EXTENSION: {\n      configure: (msw: SetupWorkerApi) =\u003e void;\n    };\n  }\n}\n\nif (window.__MSWJS_DEVTOOLS_EXTENSION) {\n  window.__MSWJS_DEVTOOLS_EXTENSION.configure(worker);\n}\n```\n\n## Roadmap\n\n- [ ] Add handler CRUD\n- [ ] Add scenarios\n- [ ] Add Import/Export configuration\n- [ ] Add configuration persistence\n- [ ] Add request conditions from UI\n- [ ] Import interfaces from open-api\n- [ ] Handle mock environments\n- [ ] Add docs\n- [ ] Remove tailwind\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friccardoperra%2Fmswjs-devtools-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friccardoperra%2Fmswjs-devtools-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friccardoperra%2Fmswjs-devtools-extension/lists"}