{"id":14985518,"url":"https://github.com/linearlabs-workspace/storybook-addon-mock","last_synced_at":"2026-03-14T13:22:38.353Z","repository":{"id":38468566,"uuid":"227040895","full_name":"linearlabs-workspace/storybook-addon-mock","owner":"linearlabs-workspace","description":"This addon allows you to mock fetch or XMLHttpRequest in the storybook.","archived":false,"fork":false,"pushed_at":"2024-07-09T14:38:48.000Z","size":3505,"stargazers_count":117,"open_issues_count":52,"forks_count":49,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T04:06:38.090Z","etag":null,"topics":["addon","mock-data","mock-fetch","storybook","storybook-addon","storybook-mock-api","storybook-mock-request"],"latest_commit_sha":null,"homepage":"https://storybook-addon-mock.netlify.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linearlabs-workspace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"nutboltu"}},"created_at":"2019-12-10T06:02:19.000Z","updated_at":"2025-03-29T10:10:57.000Z","dependencies_parsed_at":"2023-02-08T05:02:19.896Z","dependency_job_id":"e3b21654-7bd9-40d9-b29b-46ea3f150301","html_url":"https://github.com/linearlabs-workspace/storybook-addon-mock","commit_stats":null,"previous_names":["nutboltu/storybook-addon-mock"],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linearlabs-workspace%2Fstorybook-addon-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linearlabs-workspace%2Fstorybook-addon-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linearlabs-workspace%2Fstorybook-addon-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linearlabs-workspace%2Fstorybook-addon-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linearlabs-workspace","download_url":"https://codeload.github.com/linearlabs-workspace/storybook-addon-mock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810273,"owners_count":21807759,"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":["addon","mock-data","mock-fetch","storybook","storybook-addon","storybook-mock-api","storybook-mock-request"],"created_at":"2024-09-24T14:11:08.289Z","updated_at":"2026-03-14T13:22:38.292Z","avatar_url":"https://github.com/linearlabs-workspace.png","language":"JavaScript","funding_links":["https://github.com/sponsors/nutboltu"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/nutboltu/storybook-addon-mock/master/assets/logo.svg\" alt=\"Storybook addon mock\" height=\"150\" /\u003e\n        \u003ch1\u003eStorybook Addon Mock\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp\u003e\n    \u003ca href=\"https://github.com/nutboltu/storybook-addon-mock/actions\"\u003e\n        \u003cimg src=\"https://github.com/nutboltu/storybook-addon-mock/workflows/CI/badge.svg\" alt=\"Actions Status\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"#\"\u003e\n        \u003cimg src=\"https://img.shields.io/npm/dm/storybook-addon-mock.svg\" alt=\"Npm download\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://badge.fury.io/js/storybook-addon-mock\"\u003e\n        \u003cimg src=\"https://badge.fury.io/js/storybook-addon-mock.svg\" alt=\"npm version\" /\u003e\n    \u003c/a\u003e\n     \u003ca href=\"https://github.com/nutboltu/storybook-addon-mock/blob/main/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/nutboltu/storybook-addon-mock\" alt=\"License\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n[![NPM](https://nodei.co/npm/storybook-addon-mock.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/storybook-addon-mock/)\n\n\nThis addon allows you to mock fetch or XMLHttprequest requests in [storybook](https://storybook.js.org/).\nIf your component depends on backend requests, and your backend requests are not ready yet to feed your component,\nthis addon provides mock response to build your component.\n\n\n### Purpose\n\nThere are few packages those help the developers to mock the backend requests while building components.\nBut those packages aren't integrated properly in storybook and also there's no scope to play with those requests in the storybook.\nMostly, there's no playground to modify the response and see the changes in the storybook.\n\n### Highlights\n\n`storybook-addon-mock` provides the following features.\n \n \u003cul\u003e\n    \u003cli\u003e You can mock \u003cstrong\u003efetch or XMLHttpRequest\u003c/strong\u003e.\u003c/li\u003e\n    \u003cli\u003e A \u003cstrong\u003ededicated panel\u003c/strong\u003e where you can see the list of mock requests.\u003c/li\u003e\n    \u003cli\u003e An \u003cstrong\u003eon/off button for each request\u003c/strong\u003e which can turn off the mock and try the real request.\u003c/li\u003e\n    \u003cli\u003e A \u003cstrong\u003edropdown list of status code\u003c/strong\u003e where you can change the status and experience the difference.\u003c/li\u003e\n    \u003cli\u003e A \u003cstrong\u003eresponse JSON object which can be modified in the panel.\u003c/strong\u003e You can see the changes straight away in the story.\u003c/li\u003e\n    \u003cli\u003e A \u003cstrong\u003edelay option which helps you delaying the response\u003c/strong\u003e so that you can test any kind of loading behaviour.\u003c/li\u003e\n \u003c/ul\u003e\n\n### Documentation\n\n[See the documentation](https://storybook-addon-mock.netlify.app)\n\n[Older(2.*) version documentation](https://github.com/nutboltu/storybook-addon-mock/blob/2.4.1/README.md)\n### License\n\nThis project is licensed under the MIT License - see the LICENSE file in the source code for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinearlabs-workspace%2Fstorybook-addon-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinearlabs-workspace%2Fstorybook-addon-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinearlabs-workspace%2Fstorybook-addon-mock/lists"}