{"_id":"@buildtovalue/core","_rev":"2-d95d228570d64603b338e1af93b9b5a5","name":"@buildtovalue/core","dist-tags":{"latest":"1.2.0-next.0"},"versions":{"1.1.0":{"name":"@buildtovalue/core","version":"1.1.0","keywords":["bpmn","workflow","diagram","versioning","audit","governance"],"license":"Apache-2.0","_id":"@buildtovalue/core@1.1.0","maintainers":[{"name":"danzeroum","email":"danzeroum@gmail.com"}],"homepage":"https://github.com/danzeroum/bpmn#readme","bugs":{"url":"https://github.com/danzeroum/bpmn/issues"},"dist":{"shasum":"147aea98e52f7ecc4cfd5b02a11fc8500689d6d1","tarball":"https://registry.npmjs.org/@buildtovalue/core/-/core-1.1.0.tgz","fileCount":196,"integrity":"sha512-6dvkViwEHH/SshVqYD8jAqTxo9cdK8rxbq7c7Ix/KEaz2mCj5xR4hxO/C/n+NmYBHANaflLvPwNcd2k3t337vg==","signatures":[{"sig":"MEQCIA6gp9oyxlT0zy8gWK8WjZ2mYNZG1k0Vw+A+H+eOSN0cAiBe1XGSpEBaZrct3/3p218D49re6wMTUdbiZ6Fc0ZYvVA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":887203},"main":"./dist/cjs/index.js","type":"module","_from":"file:buildtovalue-core-1.1.0.tgz","types":"./dist/esm/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"scripts":{"build":"tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node ../../scripts/write-cjs-package.mjs dist/cjs","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"danzeroum","email":"danzeroum@gmail.com"},"_resolved":"C:\\Users\\danni\\AppData\\Local\\Temp\\daa9fd519039f9ac1ac9486ac7c9bdfc\\buildtovalue-core-1.1.0.tgz","_integrity":"sha512-6dvkViwEHH/SshVqYD8jAqTxo9cdK8rxbq7c7Ix/KEaz2mCj5xR4hxO/C/n+NmYBHANaflLvPwNcd2k3t337vg==","repository":{"url":"git+https://github.com/danzeroum/bpmn.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"Zero-dependency BPMN domain engine: model, lifecycle governance, validation, structured diff, hash-chained audit ledger, geometry and BPMN 2.0 XML (with DI).","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_1.1.0_1784343889012_0.8722498973674964","host":"s3://npm-registry-packages-npm-production"}},"1.2.0-next.0":{"name":"@buildtovalue/core","version":"1.2.0-next.0","description":"Zero-dependency BPMN domain engine: model, lifecycle governance, validation, structured diff, hash-chained audit ledger, geometry and BPMN 2.0 XML (with DI).","license":"Apache-2.0","type":"module","sideEffects":false,"engines":{"node":">=20"},"main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","exports":{".":{"types":"./dist/esm/index.d.ts","import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"keywords":["bpmn","workflow","diagram","versioning","audit","governance"],"repository":{"type":"git","url":"git+https://github.com/danzeroum/bpmn.git","directory":"packages/core"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node ../../scripts/write-cjs-package.mjs dist/cjs","typecheck":"tsc -p tsconfig.json --noEmit"},"_id":"@buildtovalue/core@1.2.0-next.0","bugs":{"url":"https://github.com/danzeroum/bpmn/issues"},"homepage":"https://github.com/danzeroum/bpmn#readme","_integrity":"sha512-PK8dfdTwkT2wFYQkJU1jf6Wiebm5pdIka/6Vvjn74nfa0NEKUdaVREjQEs6Bsg4Zme5JjSxANngXf3zAlSkdHw==","_resolved":"/tmp/fb21163aebd8bc9de1dbb185952907d7/buildtovalue-core-1.2.0-next.0.tgz","_from":"file:buildtovalue-core-1.2.0-next.0.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-PK8dfdTwkT2wFYQkJU1jf6Wiebm5pdIka/6Vvjn74nfa0NEKUdaVREjQEs6Bsg4Zme5JjSxANngXf3zAlSkdHw==","shasum":"9568f572778b80b916a1bdc04277c01247dc9347","tarball":"https://registry.npmjs.org/@buildtovalue/core/-/core-1.2.0-next.0.tgz","fileCount":214,"unpackedSize":1092674,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCzLIooQ1leHSQ100k0WxwEvhk9EJCFB54iNYLdZv+THAIgMl5VgwIvR7kZiI/UGH94HyZI1ZeeZAiLBt3W7tf5UnQ="}]},"_npmUser":{"name":"danzeroum","email":"danzeroum@gmail.com"},"directories":{},"maintainers":[{"name":"danzeroum","email":"danzeroum@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_1.2.0-next.0_1784725551345_0.15472344339608868"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-18T03:04:48.824Z","modified":"2026-07-22T13:05:51.720Z","1.1.0":"2026-07-18T03:04:49.184Z","1.2.0-next.0":"2026-07-22T13:05:51.536Z"},"bugs":{"url":"https://github.com/danzeroum/bpmn/issues"},"license":"Apache-2.0","homepage":"https://github.com/danzeroum/bpmn#readme","keywords":["bpmn","workflow","diagram","versioning","audit","governance"],"repository":{"type":"git","url":"git+https://github.com/danzeroum/bpmn.git","directory":"packages/core"},"description":"Zero-dependency BPMN domain engine: model, lifecycle governance, validation, structured diff, hash-chained audit ledger, geometry and BPMN 2.0 XML (with DI).","maintainers":[{"name":"danzeroum","email":"danzeroum@gmail.com"}],"readme":"# @buildtovalue/core\n\nZero-dependency BPMN domain engine (pure TypeScript, browser/Node/worker):\n\n- Data model with O(1) `Record` storage and **temporal immutability** (`createdInVersion`,\n  `removedInVersion`, `supersedesEdgeId`)\n- `CommandStack` (git-like cursor undo/redo) + `CompositeCommand`\n- `LifecycleEngine` — `draft → test → candidate → active → deprecated → retired` with configurable\n  multi-role promotion rules\n- `RuleEngine` (`*.pre` veto hooks), `ValidationEngine` (structural + pluggable rules)\n- Structured diff (`add/remove/update/supersede`) and round-trip normalizer\n- `AuditLedger` — append-only, SHA-256 hash-chained, verifiable\n- Geometry: anchors, cubic Bézier, orthogonal routing, bounding boxes\n- `BpmnXmlConverter` — BPMN 2.0 XML import/export with full DI and `extensionElements`\n  (XXE-safe bundled XML parser)\n\n```ts\nimport { createDiagram, CommandStack, addNodeCommand, createNode } from '@buildtovalue/core';\n\nconst stack = new CommandStack(createDiagram({ name: 'Flow' }));\nstack.execute(addNodeCommand(createNode({ type: 'startEvent' })));\n```\n\nDocs: https://github.com/danzeroum/bpmn/tree/main/docs — License: Apache-2.0.\n","readmeFilename":"README.md"}