{"_id":"@alphacast/grapher-core","_rev":"2-c6e94a5b51842c04da3be1eb5ea2d5e8","name":"@alphacast/grapher-core","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@alphacast/grapher-core","version":"0.1.0","license":"MIT","_id":"@alphacast/grapher-core@0.1.0","maintainers":[{"name":"masaez","email":"miguel.angel.saez@gmail.com"}],"dist":{"shasum":"a3d9c16eccffd39b72b29786623251b9c9aacd83","tarball":"https://registry.npmjs.org/@alphacast/grapher-core/-/grapher-core-0.1.0.tgz","fileCount":4,"integrity":"sha512-u/MhQRbolJO+dc4iZF7vYffIZjHlI5/2aBM2pvZnst/45+5w7KZFRTkZn66qfUZpC5kezhNaH5JOSSa9xPxOXw==","signatures":[{"sig":"MEUCIGb2rHeA7EqfTtP9Ncyiy+sZc/olgxmeTwvE2/LXZqBRAiEAmJ6kmiLVY+6JTS5J9AIxMlD+6sdQOmNpMv46LziUcMk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9457},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"71d7a97b927f464d9210002cda20ea21ab059159","scripts":{"test":"npm run build && node --test test/*.test.mjs","build":"tsc -p tsconfig.json","prepack":"npm run build"},"_npmUser":{"name":"masaez","email":"miguel.angel.saez@gmail.com"},"_npmVersion":"8.6.0","description":"Headless Grapher config types and validation helpers for Alphacast tools.","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/grapher-core_0.1.0_1779023937193_0.7304652195612711","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@alphacast/grapher-core","version":"0.1.3","description":"Headless Grapher config types and validation helpers for Alphacast tools.","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","test":"npm run build && node --test test/*.test.mjs","prepack":"npm run build"},"license":"MIT","devDependencies":{"typescript":"^5.8.3"},"gitHead":"6cf03023ab4c9187b271dcde64d0a7bda1d604a4","_id":"@alphacast/grapher-core@0.1.3","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-0oP9Yb2KKEBeolXgzW2ukWhEKPIY7VpzC3/XBcerOvw9CPLlasdEgY34FEhqx+pw2DC3nOjT/f0lUQdsUeOmhA==","shasum":"95c3345e45c8ff040b2322a8809b1a7ce1206e72","tarball":"https://registry.npmjs.org/@alphacast/grapher-core/-/grapher-core-0.1.3.tgz","fileCount":12,"unpackedSize":79185,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEpJctqkyh7KNy/pb38MIbcbBWDo4tsY2gIwKaGS/AOeAiEAiilrGN5vj9Pwngii6eD/Brw3Ve5ndbVDl1qBH9/zdO4="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:9f651fcd-6f8f-4b99-a2a9-524f8d10d187"}},"directories":{},"maintainers":[{"name":"masaez","email":"miguel.angel.saez@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/grapher-core_0.1.3_1779395229409_0.9297504742408502"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-17T13:18:57.116Z","modified":"2026-05-21T20:27:09.775Z","0.1.0":"2026-05-17T13:18:57.341Z","0.1.3":"2026-05-21T20:27:09.653Z"},"license":"MIT","description":"Headless Grapher config types and validation helpers for Alphacast tools.","maintainers":[{"name":"masaez","email":"miguel.angel.saez@gmail.com"}],"readme":"# @alphacast/grapher-core\n\nHeadless Grapher chart constants, chart-type-specific config references, and raw Grapher validation helpers for Alphacast tools.\n\nThis package intentionally has no React, MobX, DOM, CSS, or browser globals. It is safe for MCP servers, API tooling, tests, and other non-rendering consumers.\n\nThe Grapher app imports the chart type surface from this package, so MCP/API consumers and the renderer stay coupled to the same chart type definitions. Pipeline concepts such as step `columns` and `outputManifest` are intentionally not part of this package. Runtime/session context and API keys are also intentionally excluded from `GrapherConfigInterface`.\n\nPublish this package publicly before depending on it from independently built packages such as `alphacast-mcp`. The publish workflow builds, tests, dry-runs the npm package, and publishes with public access.\n\n## Usage\n\n```ts\nimport {\n  ChartType,\n  getGrapherConfigReference,\n  validateGrapherConfig,\n} from \"@alphacast/grapher-core\";\n\nconst reference = getGrapherConfigReference(ChartType.PieChart);\n\nconst result = validateGrapherConfig({\n  type: ChartType.LineChart,\n  dimensions: [{ variableId: \"GDP\" }],\n});\n```\n\n`validateGrapherConfig()` is strict by default: unknown config fields, editor state, and runtime/session context are invalid. Compatibility callers that need to inspect legacy saved configs can pass `{ unknownFields: \"warning\" }` or `{ unknownFields: \"ignore\" }`; sensitive runtime fields such as API keys remain errors in every mode.\n","readmeFilename":"README.md"}