{"id":13640736,"url":"https://github.com/bpmn-io/svelte-bpmn","last_synced_at":"2025-06-30T05:33:35.721Z","repository":{"id":48354087,"uuid":"260669251","full_name":"bpmn-io/svelte-bpmn","owner":"bpmn-io","description":"Embed BPMN 2.0 diagrams in your Svelte app","archived":false,"fork":false,"pushed_at":"2021-07-30T12:17:45.000Z","size":887,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-17T01:41:06.624Z","etag":null,"topics":["bpmn","bpmn-js","svelte"],"latest_commit_sha":null,"homepage":"","language":"Svelte","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/bpmn-io.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}},"created_at":"2020-05-02T11:06:53.000Z","updated_at":"2024-12-10T09:43:49.000Z","dependencies_parsed_at":"2022-09-05T13:21:11.126Z","dependency_job_id":null,"html_url":"https://github.com/bpmn-io/svelte-bpmn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bpmn-io/svelte-bpmn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmn-io%2Fsvelte-bpmn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmn-io%2Fsvelte-bpmn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmn-io%2Fsvelte-bpmn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmn-io%2Fsvelte-bpmn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpmn-io","download_url":"https://codeload.github.com/bpmn-io/svelte-bpmn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmn-io%2Fsvelte-bpmn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260474471,"owners_count":23014724,"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":["bpmn","bpmn-js","svelte"],"created_at":"2024-08-02T01:01:13.972Z","updated_at":"2025-06-30T05:33:35.655Z","avatar_url":"https://github.com/bpmn-io.png","language":"Svelte","funding_links":[],"categories":["Integrations"],"sub_categories":[],"readme":"# svelte-bpmn\n\n[![CI](https://github.com/bpmn-io/svelte-bpmn/workflows/CI/badge.svg)](https://github.com/bpmn-io/svelte-bpmn/actions?query=workflow%3ACI)\n\nEmbed BPMN 2.0 diagrams in your [Svelte](https://svelte.dev/) app - powered by [bpmn-js](https://github.com/bpmn-io/bpmn-js).\n\n\n## Installation\n\n```sh\nnpm install --save svelte-bpmn\n```\n\n## Usage\n\n```svelte\n\u003cscript\u003e\n  import SvelteBpmn from 'svelte-bpmn';\n\n  const diagram = '..'; // import your BPMN 2.0 XML here\n\n  const handleDiagramLoaded = () =\u003e {\n    console.log('Diagram successfully loaded!');\n  };\n\n  const handleDiagramError = (error) =\u003e {\n    console.log('Diagram import resolved in errors: ', error);\n  };\n\n  const handleDiagramWarning = (warnings) =\u003e {\n    console.log('Diagram import warnings: ', warnings);\n  };\n\u003c/script\u003e\n\n\u003cstyle\u003e\n  .diagram-container {\n    height: 700px;\n    border: 1px solid grey;\n  }\n\u003c/style\u003e\n\n\u003cdiv class=\"diagram-container\"\u003e\n  \u003cSvelteBpmn \n    xml={diagram} \n    onError={handleDiagramError}\n    onLoaded={handleDiagramLoaded} \n    onWarning={handleDiagramWarning}\n  /\u003e\n\u003c/div\u003e\n```\n\nCheckout the [example](./example) to get further information.\n\n## Additional Resources\n\n* [bpmn-js Examples](https://github.com/bpmn-io/bpmn-js-examples)\n* [bpmn-js Viewer Documentation](https://github.com/bpmn-io/bpmn-js/blob/master/lib/Viewer.js), [Example](https://github.com/bpmn-io/bpmn-js-examples/blob/master/starter/viewer.html)\n* [bpmn-js Modeler Documentation](https://github.com/bpmn-io/bpmn-js/blob/master/lib/Modeler.js), [Example](https://github.com/bpmn-io/bpmn-js-examples/tree/master/modeler)\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpmn-io%2Fsvelte-bpmn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpmn-io%2Fsvelte-bpmn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpmn-io%2Fsvelte-bpmn/lists"}