{"id":31725265,"url":"https://github.com/bptlab/openbpt-modeler-template","last_synced_at":"2026-01-20T17:38:29.965Z","repository":{"id":314718692,"uuid":"966644400","full_name":"bptlab/openbpt-modeler-template","owner":"bptlab","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-14T09:21:11.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T11:32:29.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bptlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-15T08:34:20.000Z","updated_at":"2025-09-14T09:21:14.000Z","dependencies_parsed_at":"2025-09-14T11:32:41.791Z","dependency_job_id":"9d241b66-e0a8-4c72-b62a-32bc31cee1bd","html_url":"https://github.com/bptlab/openbpt-modeler-template","commit_stats":null,"previous_names":["bptlab/openbpt-modeler-template"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bptlab/openbpt-modeler-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bptlab%2Fopenbpt-modeler-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bptlab%2Fopenbpt-modeler-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bptlab%2Fopenbpt-modeler-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bptlab%2Fopenbpt-modeler-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bptlab","download_url":"https://codeload.github.com/bptlab/openbpt-modeler-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bptlab%2Fopenbpt-modeler-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000745,"owners_count":26082932,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-09T05:29:59.861Z","updated_at":"2025-10-09T05:30:05.586Z","avatar_url":"https://github.com/bptlab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openbpt-modeler-template\n\nTemplate repository for the creation of modelers used in the OpenBPT project.\nThe template is a generalization of the [ptn-js](https://github.com/MaximilianKoenig/ptn-js) modeler. It is based on [diagram-js](https://github.com/bpmn-io/diagram-js) and took inspiration from [bpmn-js](https://github.com/bpmn-io/bpmn-js), [object-diagram-js](https://github.com/timKraeuter/object-diagram-js) and [fcm-js](https://github.com/bptlab/fCM-design-support).\n\nThe template showcases a working version of a basic Petri net modeler whose elements should be replaced with the elements of the new modeling language. For that purpose, fork the repository and follow the steps outlined below.\n**If you create a new modeler and implement additional features that could be generalized to fit any modeler, please feel free to create a pull request so that others may profit from your extension as well!**\n\n## Development Setup\n\n- link to demo-repo\n- use npm link\n\n## Implementing a New Modeler\n\nImplementing a new modeler requires the definition of the metamodel of the modeling language, a custom renderer, a set of icons, and a few adaptations in the modeler itself. In general, the keyword **CustomModelerTodo** marks places in the code that require adaptation.\n\n### Defining the Metamodel\n\nTo define the model structure, we build on [moddle](https://github.com/bpmn-io/moddle), which uses a schema defined as a JSON file to create a meta model that can be used to instantiate model elements while knowing their attributes and relations and provides a structure for importing and exporting XML files.\nThe followning class diagram shows the currently implemented metamodel used in the modeler. It can be generally divided into two sides:\n\n- The *semantic* elements are the classes on the left, everything inheriting from `Schema`. They define the different model elements and their attributes/relations.\n- The *syntactic* elements are the classes on the right, everything inheriting from `DiagramElement` as well as `Diagram` and `Plane`. These elements are visual representatoions of the model elements, including positional information and associated labels.\n\n![Moddle_Class_Diagram](https://github.com/user-attachments/assets/465970e3-e9ab-4c4b-b243-0a61c9277a8a)\n\nIn most cases, it should not be necessary to modify the metamodel of the *syntactic* elements. For the *semantic* elements, the classes inheriting from `Node` and `BinaryConnection` (marked in red) must be defined for the respective modeling language in [modelSchema.js](https://github.com/bptlab/openbpt-modeler-template/blob/main/lib/moddle/resources/modelSchema.js). A documentation can be found [here](https://github.com/bpmn-io/moddle/blob/main/docs/descriptor.md). Setting `isAttr` for a property will include it as an attribute in the XML, otherwise it is a separate child-tag.\n\n### Creating a Custom Renderer\n\n### Adding Icons\n\n### Adapting the Modeler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbptlab%2Fopenbpt-modeler-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbptlab%2Fopenbpt-modeler-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbptlab%2Fopenbpt-modeler-template/lists"}