{"_id":"@atlas-composer/specification","_rev":"2-44ffda37dad02b5df032bdfd90ca032b","name":"@atlas-composer/specification","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@atlas-composer/specification","version":"1.0.0","keywords":["atlas-composer","cartography","composite-projection","d3-geo","geojson","json-schema","map-projection","specification","typescript"],"author":{"url":"ShallowRed","name":"Lucas Poulain"},"license":"MIT","_id":"@atlas-composer/specification@1.0.0","maintainers":[{"name":"shallowred","email":"lucaspoulain2@gmail.com"}],"homepage":"https://github.com/ShallowRed/atlas-composer/tree/main/packages/specification#readme","bugs":{"url":"https://github.com/ShallowRed/atlas-composer/issues"},"dist":{"shasum":"93944b0622d75013580d562126ad5c93657a881e","tarball":"https://registry.npmjs.org/@atlas-composer/specification/-/specification-1.0.0.tgz","fileCount":8,"integrity":"sha512-2DFCndMhbomso0iCAdEAmlYftPfBuyM341NjeIhsjTY4PYjlHWADMERdaq0/BZsRPdW7OotaEMVHfvVgNPAjgw==","signatures":[{"sig":"MEYCIQCGZl6vhmhcYW3Mu903v3UUQwk1i5R8eufpd1RtSYmRfwIhAOJRZujTmio9XpH4l5lSGlW4FP0Ur1vkToswIVRUW8Il","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53406},"main":"./dist/index.js","type":"module","_from":"file:atlas-composer-specification-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./schemas/definitions":{"import":"./schemas/definitions.schema.json"},"./schemas/composite-projection":{"import":"./schemas/composite-projection.schema.json"}},"scripts":{"dev":"tsup --watch","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"shallowred","email":"lucaspoulain2@gmail.com"},"_resolved":"/private/var/folders/d_/w92hqdmx3t1cqt23zglmhh880000gn/T/3606ca1fb7a0af14685e611028bec752/atlas-composer-specification-1.0.0.tgz","_integrity":"sha512-2DFCndMhbomso0iCAdEAmlYftPfBuyM341NjeIhsjTY4PYjlHWADMERdaq0/BZsRPdW7OotaEMVHfvVgNPAjgw==","repository":{"url":"git+https://github.com/ShallowRed/atlas-composer.git","type":"git","directory":"packages/specification"},"_npmVersion":"10.8.2","description":"JSON Schema specification and TypeScript types for Atlas Composer composite map projections","directories":{},"sideEffects":false,"_nodeVersion":"20.19.6","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"~5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/specification_1.0.0_1768664413345_0.8202244446695517","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@atlas-composer/specification","type":"module","version":"1.0.1","description":"JSON Schema specification and TypeScript types for Atlas Composer composite map projections","author":{"name":"Lucas Poulain","url":"ShallowRed"},"license":"MIT","homepage":"https://github.com/ShallowRed/atlas-composer/tree/main/packages/specification#readme","repository":{"type":"git","url":"git+https://github.com/ShallowRed/atlas-composer.git","directory":"packages/specification"},"bugs":{"url":"https://github.com/ShallowRed/atlas-composer/issues"},"keywords":["atlas-composer","cartography","composite-projection","d3-geo","geojson","json-schema","map-projection","specification","typescript"],"sideEffects":false,"publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./schemas/composite-projection":{"import":"./schemas/composite-projection.schema.json"},"./schemas/definitions":{"import":"./schemas/definitions.schema.json"}},"main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","devDependencies":{"tsup":"^8.0.0","typescript":"~5.9.3"},"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit"},"_id":"@atlas-composer/specification@1.0.1","_integrity":"sha512-BZxIcuiykbi6ov151xYyDzUkFapX/AasTzMEe9QJ/ZMFGOaqEmcF7Y2Z3Ay6SvuAH1b01SXuxQEw/elRnQuNYA==","_resolved":"/private/var/folders/d_/w92hqdmx3t1cqt23zglmhh880000gn/T/5bc9a2c751752a8167f0118e8d8aec48/atlas-composer-specification-1.0.1.tgz","_from":"file:atlas-composer-specification-1.0.1.tgz","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-BZxIcuiykbi6ov151xYyDzUkFapX/AasTzMEe9QJ/ZMFGOaqEmcF7Y2Z3Ay6SvuAH1b01SXuxQEw/elRnQuNYA==","shasum":"a6cadf3a3f05c7645f048c8a5a3ab365f7126dd0","tarball":"https://registry.npmjs.org/@atlas-composer/specification/-/specification-1.0.1.tgz","fileCount":8,"unpackedSize":53406,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDypWoLsH2RGmuUPOwtQzPzUmtm9Sr3pwPLMC04agnEdAiAcu8uAnudBtWBMbTd2c7GxNKikt0FLrBxIi/KAIC9I8Q=="}]},"_npmUser":{"name":"shallowred","email":"lucaspoulain2@gmail.com"},"directories":{},"maintainers":[{"name":"shallowred","email":"lucaspoulain2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/specification_1.0.1_1768664538950_0.9145865798264032"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-17T15:40:13.252Z","modified":"2026-01-17T15:42:19.210Z","1.0.0":"2026-01-17T15:40:13.477Z","1.0.1":"2026-01-17T15:42:19.084Z"},"bugs":{"url":"https://github.com/ShallowRed/atlas-composer/issues"},"author":{"name":"Lucas Poulain","url":"ShallowRed"},"license":"MIT","homepage":"https://github.com/ShallowRed/atlas-composer/tree/main/packages/specification#readme","keywords":["atlas-composer","cartography","composite-projection","d3-geo","geojson","json-schema","map-projection","specification","typescript"],"repository":{"type":"git","url":"git+https://github.com/ShallowRed/atlas-composer.git","directory":"packages/specification"},"description":"JSON Schema specification and TypeScript types for Atlas Composer composite map projections","maintainers":[{"name":"shallowred","email":"lucaspoulain2@gmail.com"}],"readme":"# @atlas-composer/specification\n\n> The official data contract for the Atlas Composer ecosystem.\n\nThis package contains the **JSON Schemas** and **TypeScript interfaces** that define valid `CompositeProjectionConfig` objects. It is the single source of truth for the data format used by the editor, the loader, and the presets.\n\n## 📦 Contents\n\n- **TypeScript Definitions**: `CompositeProjectionConfig`, `TerritoryConfig`, etc.\n- **JSON Schemas**: Valid Draft-07 schemas for validation.\n- **Type Guards**: Runtime checks for data structures.\n\n## 🚀 Usage\n\n```typescript\nimport type { CompositeProjectionConfig } from '@atlas-composer/specification'\nimport { isCompositeProjectionConfig } from '@atlas-composer/specification'\n\nfunction loadConfig(data: unknown) {\n  if (isCompositeProjectionConfig(data)) {\n    // data is narrowed to CompositeProjectionConfig\n    console.log(data.metadata.atlasId)\n  }\n}\n```\n","readmeFilename":"README.md"}