{"id":13640175,"url":"https://github.com/bpmn-io/dmn-js","last_synced_at":"2025-05-14T13:07:42.306Z","repository":{"id":33276890,"uuid":"36921499","full_name":"bpmn-io/dmn-js","owner":"bpmn-io","description":"View and edit DMN diagrams in the browser.","archived":false,"fork":false,"pushed_at":"2025-04-07T08:34:50.000Z","size":10793,"stargazers_count":318,"open_issues_count":56,"forks_count":142,"subscribers_count":24,"default_branch":"develop","last_synced_at":"2025-04-11T05:08:40.403Z","etag":null,"topics":["dmn","hacktoberfest","javascript"],"latest_commit_sha":null,"homepage":"https://bpmn.io/toolkit/dmn-js/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bpmn-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"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}},"created_at":"2015-06-05T08:30:47.000Z","updated_at":"2025-04-07T08:33:59.000Z","dependencies_parsed_at":"2024-04-16T10:48:24.099Z","dependency_job_id":"64a638a4-3ecf-4552-92a7-ae04d50ab793","html_url":"https://github.com/bpmn-io/dmn-js","commit_stats":{"total_commits":1772,"total_committers":43,"mean_commits":41.2093023255814,"dds":0.6388261851015802,"last_synced_commit":"5b24c5547660f17a5ea2f0429ab95e5788444f77"},"previous_names":[],"tags_count":192,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmn-io%2Fdmn-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmn-io%2Fdmn-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmn-io%2Fdmn-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpmn-io%2Fdmn-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpmn-io","download_url":"https://codeload.github.com/bpmn-io/dmn-js/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345266,"owners_count":21088244,"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":["dmn","hacktoberfest","javascript"],"created_at":"2024-08-02T01:01:08.614Z","updated_at":"2025-04-11T05:08:47.514Z","avatar_url":"https://github.com/bpmn-io.png","language":"JavaScript","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"\u003e __Starting with `dmn-js@8` the library displays and saves DMN 1.3 diagrams only.__ To open older DMN files, [migrate them](https://github.com/bpmn-io/dmn-migrate) before loading them with `dmn-js`.\n\n\n# dmn-js - DMN for the web\n\n[![CI](https://github.com/bpmn-io/dmn-js/workflows/CI/badge.svg)](https://github.com/bpmn-io/dmn-js/actions?query=workflow%3ACI)\n\nView and edit DMN 1.3 diagrams in the browser.\n\n\n## Installation\n\nUse the library [pre-packaged](https://github.com/bpmn-io/dmn-js-examples/tree/main/pre-packaged)\nor include it [via npm](https://github.com/bpmn-io/dmn-js-examples/tree/main/bundling)\ninto your node-style web-application.\n\n\n## Usage\n\nTo get started, create a [dmn-js](https://github.com/bpmn-io/dmn-js) instance\nand render [DMN 1.3 diagrams](http://www.omg.org/spec/DMN/About-DMN/) in the browser:\n\n```javascript\nconst xml; // my DMN 1.3 xml\nconst viewer = new DmnJS({\n  container: 'body'\n});\n\ntry {\n  const { warnings } = await viewer.importXML(xml);\n\n  console.log('rendered');\n} catch (err) {\n  console.log('error rendering', err)\n}\n```\n\nCheckout our [examples](https://github.com/bpmn-io/dmn-js-examples) for\nmore supported usage scenarios.\n\n\n### Dynamic Attach/Detach\n\nYou may attach or detach the viewer dynamically to any element on the page, too:\n\n```javascript\nconst viewer = new DmnJS();\n\n// attach it to some element\nviewer.attachTo('#container');\n\n// detach the panel\nviewer.detach();\n```\n\n\n## Resources\n\n* [Demo](http://demo.bpmn.io/dmn)\n* [Issues](https://github.com/bpmn-io/dmn-js/issues)\n* [Examples](https://github.com/bpmn-io/dmn-js-examples)\n* [Forum](https://forum.bpmn.io)\n* [Changelog](./packages/dmn-js/CHANGELOG.md)\n\n\n## Building the Project\n\nPerform the following steps to build the library, including running all tests:\n\n```\nnpm install\nnpm run all\n```\n\nRun tests in individual [packages](./packages):\n\n```\nnpm run dev -- dmn-js\n```\n\n\n## Related\n\ndmn-js builds on top of a few additional powerful tools:\n\n* [dmn-moddle](https://github.com/bpmn-io/dmn-moddle): Read / write support for DMN 1.3 XML\n* [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit\n* [table-js](https://github.com/bpmn-io/table-js): Table rendering and editing toolkit\n* [dmn-migrate](https://github.com/bpmn-io/dmn-migrate): Migrate your DMN diagrams to DMN 1.3\n\n## Contributing\n\nPlease checkout our [contributing guidelines](./.github/CONTRIBUTING.md) if you plan to\nfile an issue or pull request.\n\n\n## Code of Conduct\n\nBy participating to this project, please uphold to our [Code of Conduct](https://github.com/bpmn-io/.github/blob/main/.github/CODE_OF_CONDUCT.md).\n\n\n## License\n\nUse under the terms of the [bpmn.io license](http://bpmn.io/license).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpmn-io%2Fdmn-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpmn-io%2Fdmn-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpmn-io%2Fdmn-js/lists"}