{"id":25650676,"url":"https://github.com/flow-build/diagrams-core","last_synced_at":"2026-06-12T22:33:17.396Z","repository":{"id":57906543,"uuid":"523716375","full_name":"flow-build/diagrams-core","owner":"flow-build","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-16T15:51:49.000Z","size":882,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T05:57:17.975Z","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/flow-build.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":"2022-08-11T12:33:10.000Z","updated_at":"2022-08-24T18:03:18.000Z","dependencies_parsed_at":"2023-02-15T00:16:53.145Z","dependency_job_id":null,"html_url":"https://github.com/flow-build/diagrams-core","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/flow-build/diagrams-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow-build%2Fdiagrams-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow-build%2Fdiagrams-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow-build%2Fdiagrams-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow-build%2Fdiagrams-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flow-build","download_url":"https://codeload.github.com/flow-build/diagrams-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow-build%2Fdiagrams-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34265491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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-02-23T15:17:46.267Z","updated_at":"2026-06-12T22:33:17.355Z","avatar_url":"https://github.com/flow-build.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diagrams-core\n\ndiagrams-core is a BPMN diagrams manager for your project.\n\n![npm version](https://img.shields.io/npm/v/@flowbuild/diagrams-core) ![language](https://img.shields.io/github/languages/top/flow-build/diagrams-core)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=flow-build_diagrams-core\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=flow-build_diagrams-core) [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) \n\n## Installation\n\nRun the following command in your terminal:\n```\nnpm install @flowbuild/diagrams-core\n```\n\n## Usage\n\n```js\nconst { DiagramCore } = require('@flowbuild/diagrams-core');\nconst diagramCore = new DiagramCore(db);\n\n// note that 'db' has to be a database configuration\n```\n\nThe service does have a blueprint storage, but it only stores the data relevant to the diagram, a.k.a. nodes and lanes (prepare, environment and parameters are discarded).  \n\n## Environment variables\n\nAdd a .env file with the following variables:\n\n- KNEX_ENV (suggested value = docker)\n- NODE_ENV (suggested value = docker)\n- POSTGRES_USER (default = postgres)\n- POSTGRES_PASSWORD (default = postgres)\n- POSTGRES_DB (default = diagrams)\n- POSTGRES_HOST (default = localhost)\n- POSTGRES_PORT (default = 5432)\n- LOG_LEVEL (default = info)\n\n## Testing on Docker:\n\nUse the following command in order to setup two containers (database and test servers) \nand run migrations, seeds and tests.\n\n```\ndocker-compose up\n``` ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflow-build%2Fdiagrams-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflow-build%2Fdiagrams-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflow-build%2Fdiagrams-core/lists"}