{"_id":"@coral-viz/language","_rev":"4-5cc5971fce4744cd92d8b25c460d800f","name":"@coral-viz/language","dist-tags":{"latest":"0.2.6"},"versions":{"0.2.3":{"name":"@coral-viz/language","version":"0.2.3","license":"Apache-2.0","_id":"@coral-viz/language@0.2.3","maintainers":[{"name":"coreyt100","email":"coreyt@gmail.com"}],"homepage":"https://github.com/coreyt/coral#readme","bugs":{"url":"https://github.com/coreyt/coral/issues"},"dist":{"shasum":"03789350ee63522d1a0224e5e75f2ddf995f0eb2","tarball":"https://registry.npmjs.org/@coral-viz/language/-/language-0.2.3.tgz","fileCount":47,"integrity":"sha512-tQiqHJb4dtVBKKUOL0d+jpWQBYps2dh1pHBHObR0PuQ/n5v2hY9KX9aCIEgFZeq13mCH1/PvA2y213w2RY9LcA==","signatures":[{"sig":"MEQCIDXkUqce2QM31mbM5pRgfsR74EWlTlmAJZd7sIfsiD+oAiASNoVEUa9JueFukdjK8XdydZdnfRP9VA8csKcYd/87+A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":217658},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=24.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./parser":{"types":"./dist/parser/index.d.ts","import":"./dist/parser/index.js"},"./formats":{"types":"./dist/formats/index.d.ts","import":"./dist/formats/index.js"},"./printer":{"types":"./dist/printer/index.d.ts","import":"./dist/printer/index.js"}},"scripts":{"lint":"eslint src test","test":"vitest","build":"node ../../scripts/clean.mjs dist && tsc","prepack":"npm run build","test:run":"vitest run","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"coreyt100","email":"coreyt@gmail.com"},"repository":{"url":"git+https://github.com/coreyt/coral.git","type":"git","directory":"packages/language"},"_npmVersion":"12.0.2","description":"Coral DSL parser and printer","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@graph-ir/core":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"5.0.0","typescript":"6.0.3","@types/node":"24.13.3","@vitest/coverage-v8":"5.0.0"},"optionalDependencies":{"tree-sitter":"0.25.1"},"_npmOperationalInternal":{"tmp":"tmp/language_0.2.3_1788741997630_0.724606727638405","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@coral-viz/language","version":"0.2.4","license":"Apache-2.0","_id":"@coral-viz/language@0.2.4","maintainers":[{"name":"coreyt100","email":"coreyt@gmail.com"}],"homepage":"https://github.com/coreyt/coral#readme","bugs":{"url":"https://github.com/coreyt/coral/issues"},"dist":{"shasum":"c419aa9746721f7e34536c37369a25a470e66440","tarball":"https://registry.npmjs.org/@coral-viz/language/-/language-0.2.4.tgz","fileCount":51,"integrity":"sha512-gtAXbLwfmeTYlU/aoPXAlmcwgO3O2VbpKEHzZeCpqtB4d07I48UBz2Rcqii0Gw+dsE7PjvNkA4JyOopGcvbx3Q==","signatures":[{"sig":"MEUCIQCQf/r1TT3R7V7Dsq7uRqta3ne1wz790nT8FCzGMqDaGQIgHlXqN6cJagM28gwbWQS5CGmzH3FCwzrgq8AFM50SlwY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":270871},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=24.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./parser":{"types":"./dist/parser/index.d.ts","import":"./dist/parser/index.js"},"./formats":{"types":"./dist/formats/index.d.ts","import":"./dist/formats/index.js"},"./printer":{"types":"./dist/printer/index.d.ts","import":"./dist/printer/index.js"}},"gitHead":"b6bce1fb90868ee82b26eb21389343a21e27e009","scripts":{"lint":"eslint src test","test":"vitest","build":"node ../../scripts/clean.mjs dist && tsc","prepack":"npm run build","test:run":"vitest run","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:ed5aca39-c56a-4116-9817-b2ebda330da8"}},"repository":{"url":"git+https://github.com/coreyt/coral.git","type":"git","directory":"packages/language"},"_npmVersion":"12.0.2","description":"Coral DSL parser and printer","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@graph-ir/core":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"5.0.0","typescript":"6.0.3","@types/node":"24.13.3","@vitest/coverage-v8":"5.0.0"},"optionalDependencies":{"tree-sitter":"0.25.1"},"_npmOperationalInternal":{"tmp":"tmp/language_0.2.4_1789132761421_0.5619714686549355","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@coral-viz/language","version":"0.2.5","license":"Apache-2.0","_id":"@coral-viz/language@0.2.5","maintainers":[{"name":"coreyt100","email":"coreyt@gmail.com"}],"homepage":"https://github.com/coreyt/coral#readme","bugs":{"url":"https://github.com/coreyt/coral/issues"},"dist":{"shasum":"565120e138c5c83ba966137637f652cd85d1cf17","tarball":"https://registry.npmjs.org/@coral-viz/language/-/language-0.2.5.tgz","fileCount":89,"integrity":"sha512-3BKMdQi59BdG7bySkzu1zoB8mhTcPRc8ReTVV96b/vjjfclvn2ABKaY3QcFA/HK8e8O/Ck1B065sWEsRwa0WTg==","signatures":[{"sig":"MEQCIBtraVFP3FIoDKSDFXqVjKKkCE7j1wSfHrIozr3YKiZuAiBcHfqwCYcTrc1B1/0vXhjPyXqpDNZO9CcdfGPEO/X+Ww==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDFkaWvpXfLEmNvzvnCivgQIkdF61IZkfmOkHE4ffcF1QIhAKp3PMq4SmVOFn0+NXiiz6d5ocal0ZiFck6sz7ey4j0P","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":462371},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=24.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./parser":{"types":"./dist/parser/index.d.ts","import":"./dist/parser/index.js"},"./formats":{"types":"./dist/formats/index.d.ts","import":"./dist/formats/index.js"},"./printer":{"types":"./dist/printer/index.d.ts","import":"./dist/printer/index.js"}},"gitHead":"e28a120e2c94b6af7eeaed0385a444b969e1ac5f","scripts":{"lint":"eslint src test","test":"vitest","build":"node ../../scripts/clean.mjs dist && tsc","prepack":"npm run build","test:run":"vitest run","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:ed5aca39-c56a-4116-9817-b2ebda330da8"}},"repository":{"url":"git+https://github.com/coreyt/coral.git","type":"git","directory":"packages/language"},"_npmVersion":"12.0.2","description":"Coral DSL parser and printer","directories":{},"_nodeVersion":"26.8.2","dependencies":{"@graph-ir/core":"0.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"5.0.0","typescript":"6.0.3","@types/node":"24.13.4","@vitest/coverage-v8":"5.0.0"},"optionalDependencies":{"tree-sitter":"0.25.1"},"_npmOperationalInternal":{"tmp":"tmp/language_0.2.5_1789952553840_0.5045885481340875","host":"s3://npm-registry-packages-npm-production"}},"0.2.6":{"_id":"@coral-viz/language@0.2.6","bugs":{"url":"https://github.com/coreyt/coral/issues"},"dist":{"shasum":"a77fc23dc64101187ad1a9f163e9f02a7a140472","tarball":"https://registry.npmjs.org/@coral-viz/language/-/language-0.2.6.tgz","fileCount":148,"integrity":"sha512-BaWupRM9trOBP/Fx6VeCFug0Ktaxd0VdrwDA06LqTWnAcRkNNc2hGlWSBufy+cAKk/nPNS3MWQamfGxihMzTKA==","signatures":[{"sig":"MEUCIQC1ZYVSoEs/7qcnMg0qRUPM/krLWMOcOJfIaDNdgjWq7gIgH3BVkihqHce7CLO2bNsjy5UhqB+4DIEmqlhJVUnAoA4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC2i5aju9xlEZ/ohcIRI0pPZrcAZJWvw/POQexn/86kRAIgMjXGr7JeLiG7yPIl+Hf3dH2omMSBrk4GalQkPXtcR58="}],"unpackedSize":935988},"main":"dist/index.js","name":"@coral-viz/language","type":"module","_from":"file:candidate-artifacts/coral-viz-language-0.2.6.tgz","types":"dist/index.d.ts","engines":{"node":">=24.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./parser":{"types":"./dist/parser/index.d.ts","import":"./dist/parser/index.js"},"./formats":{"types":"./dist/formats/index.d.ts","import":"./dist/formats/index.js"},"./printer":{"types":"./dist/printer/index.d.ts","import":"./dist/printer/index.js"}},"license":"Apache-2.0","scripts":{"lint":"eslint src test","test":"vitest","build":"node ../../scripts/clean.mjs dist && tsc","prepack":"npm run build","test:run":"vitest run","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage"},"version":"0.2.6","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"ed5aca39-c56a-4116-9817-b2ebda330da8"}},"homepage":"https://github.com/coreyt/coral#readme","_resolved":"/home/runner/work/coral/coral/candidate-artifacts/coral-viz-language-0.2.6.tgz","_integrity":"sha512-BaWupRM9trOBP/Fx6VeCFug0Ktaxd0VdrwDA06LqTWnAcRkNNc2hGlWSBufy+cAKk/nPNS3MWQamfGxihMzTKA==","repository":{"url":"git+https://github.com/coreyt/coral.git","type":"git","directory":"packages/language"},"_npmVersion":"12.0.2","description":"Coral DSL parser and printer","directories":{},"maintainers":[{"name":"coreyt100","email":"coreyt@gmail.com"}],"_nodeVersion":"26.8.2","dependencies":{"@graph-ir/core":"0.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"5.0.1","typescript":"6.0.3","@types/node":"24.13.5","@vitest/coverage-v8":"5.0.1"},"optionalDependencies":{"tree-sitter":"0.25.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/language_0.2.6_1790832859012_0.5286072495564598"}}},"time":{"created":"2026-09-07T00:46:37.503Z","modified":"2026-10-01T05:34:19.326Z","0.2.3":"2026-09-07T00:46:37.755Z","0.2.4":"2026-09-11T13:19:21.559Z","0.2.5":"2026-09-21T01:02:33.931Z","0.2.6":"2026-10-01T05:34:19.140Z"},"bugs":{"url":"https://github.com/coreyt/coral/issues"},"license":"Apache-2.0","homepage":"https://github.com/coreyt/coral#readme","repository":{"url":"git+https://github.com/coreyt/coral.git","type":"git","directory":"packages/language"},"description":"Coral DSL parser and printer","maintainers":[{"name":"coreyt100","email":"coreyt@gmail.com"}],"readme":"# @coral-viz/language\n\nPortable Coral DSL parsing, deterministic printing, Mermaid/DOT/PlantUML\nimports, diagnostics, and conservative syntax repair.\n\n```sh\nnpm install @coral-viz/language@0.2.6 @graph-ir/core@0.2.2\n```\n\n```javascript\nimport { validateIR } from '@graph-ir/core';\nimport { parse } from '@coral-viz/language';\n\nconst result = parse('service \"API\" as api');\nif (!result.success) throw new Error(result.errors[0]?.message);\nif (!validateIR(result.graph).valid) throw new Error('Invalid GraphIR');\n```\n\nThe TypeScript parser emits GraphIR 3.0 and owns runtime parsing and semantic\ndiagnostics. `repairCoralDsl` byte-preserves parser-valid input, reports every\napplied fix, and leaves ambiguous defects unresolved. Review repaired source\nbefore replacing authored text.\n\nPublic entries are the root plus `/parser`, `/printer`, and `/formats`.\nLanguage 1.0's `SPEC.md` and checked `spec/` artifacts are the normative syntax\ncontract. Tree-sitter is a narrower editor-tooling grammar.\n\nSee the\n[Language API](https://coreyt.github.io/coral/docs/embed/reference/language-api)\nand the executable\n[rendering workflow](https://coreyt.github.io/coral/docs/embed/how-to/render-a-diagram).\n\nApache-2.0. See `LICENSE`.\n","readmeFilename":"README.md"}