{"id":25768112,"url":"https://github.com/stackblitz/storybook-addon-stackblitz","last_synced_at":"2025-02-27T00:50:18.120Z","repository":{"id":197938307,"uuid":"681659498","full_name":"stackblitz/storybook-addon-stackblitz","owner":"stackblitz","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-15T14:28:08.000Z","size":1306,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-25T11:07:42.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/stackblitz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-22T13:36:26.000Z","updated_at":"2024-11-25T13:32:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a5d5c7b-2e02-4c57-bbd0-ef9a1bd745bd","html_url":"https://github.com/stackblitz/storybook-addon-stackblitz","commit_stats":null,"previous_names":["stackblitz/storybook-addon-stackblitz"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackblitz%2Fstorybook-addon-stackblitz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackblitz%2Fstorybook-addon-stackblitz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackblitz%2Fstorybook-addon-stackblitz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackblitz%2Fstorybook-addon-stackblitz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackblitz","download_url":"https://codeload.github.com/stackblitz/storybook-addon-stackblitz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240959072,"owners_count":19884910,"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":[],"created_at":"2025-02-27T00:50:17.570Z","updated_at":"2025-02-27T00:50:18.101Z","avatar_url":"https://github.com/stackblitz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Storybook Addon StackBlitz\nCreate a one-click Pull Request environment right from your component\n\n## Installation\n\nyarn:\n```bash\nyarn add --dev @stackblitz/storybook-addon-stackblitz\n```\n\nnpm:\n```bash\nnpm install @stackblitz/storybook-addon-stackblitz --save-dev\n```\n\npnpm:\n```bash\npnpm add --save-dev @stackblitz/storybook-addon-stackblitz\n```\n\n## Usage\n\nAdd the following to your `.storybook/main.ts` (or `.storybook/main.js`) exports:\n\n```typescript\nexport default {\n  addons: ['@stackblitz/storybook-addon-stackblitz'],\n};\n```\n\nConfigure the repository URL in the `.storybook/preview.ts` (or `.storybook/preview.js`):\n```typescript\nexport default {\n  parameters: {\n    repositoryUrl: 'https://github.com/[username]/[reponame]'\n  },\n};\n```\n\nIn your story files set the file path for the specific story, for instance:\n```typescript\nexport const Primary: Story = {\n  args: {/* ... */},\n  parameters: {\n    filePath: 'src/stories/Button.tsx'\n  }\n};\n```\n\nIf your components are placed in multiple repositories, you can also define the repository URL per the specific story:\n```typescript\nexport const Primary: Story = {\n  args: {/* ... */},\n  parameters: {\n    filePath: 'src/stories/Button.tsx',\n    repositoryUrl: 'https://github.com/[username]/[reponame]'\n  }\n};\n```\n\n\n## Development scripts\n\n- `yarn start` runs babel in watch mode and starts Storybook\n- `yarn build` build and package your addon code\n\n## Addon icon\n\n(for Storybook [integration catalog](https://storybook.js.org/integrations))\n\n![icon](https://github.com/stackblitz/storybook-addon-stackblitz/assets/1511906/d8b5c029-8633-4d16-8a9e-5d5fe8456aeb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackblitz%2Fstorybook-addon-stackblitz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackblitz%2Fstorybook-addon-stackblitz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackblitz%2Fstorybook-addon-stackblitz/lists"}