{"_id":"@agecheck/core","_rev":"3-7aad23b8adffca964f435f83a0d6fed8","name":"@agecheck/core","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@agecheck/core","version":"0.1.0","license":"Apache-2.0","_id":"@agecheck/core@0.1.0","maintainers":[{"name":"vanderbr","email":"engineering@really.me"}],"homepage":"https://github.com/agecheck/core#readme","bugs":{"url":"https://github.com/agecheck/core/issues"},"dist":{"shasum":"8b465a9357fb309af983de9761725c2ce83fbab7","tarball":"https://registry.npmjs.org/@agecheck/core/-/core-0.1.0.tgz","fileCount":7,"integrity":"sha512-Bv75WqZTuwZJrKDEzYEiL1oe7S3DQV5uiAu7crQjLlhJ8vawdxxUna8+q99QWjOHd//FobDGKuC1eUxpAlLLDA==","signatures":[{"sig":"MEYCIQCz4ZosCWUeEgTwwUrHklqP3qYWhh9dh4Q0zDx5Cs1HEAIhAM0rCNk98FCwYXIBqOazGL+683UnLkSAf57kuQ86734K","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":80703},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e2680df582501890deae8fd5573443cb1cd5a5f4","scripts":{"test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --clean","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"vanderbr","email":"engineering@really.me"},"repository":{"url":"git+https://github.com/agecheck/core.git","type":"git"},"_npmVersion":"11.9.0","description":"Core verification, policy, and cookie logic for AgeCheck SDKs.","directories":{},"_nodeVersion":"25.6.1","dependencies":{"jose":"^5.9.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.29.2","devDependencies":{"tsup":"^8.5.0","vitest":"^2.1.8","typescript":"^5.9.2","@types/node":"^24.5.2"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1771375116589_0.06497583267360962","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agecheck/core","version":"0.1.1","license":"Apache-2.0","_id":"@agecheck/core@0.1.1","maintainers":[{"name":"vanderbr","email":"engineering@really.me"}],"homepage":"https://github.com/agecheck/agecheck-core#readme","bugs":{"url":"https://github.com/agecheck/agecheck-core/issues"},"dist":{"shasum":"0ea1645ca0b816496db348befeaf7b0271c51a63","tarball":"https://registry.npmjs.org/@agecheck/core/-/core-0.1.1.tgz","fileCount":7,"integrity":"sha512-H0nGNIX0tNRgpa0yZFmjZg7dlOimZmPE1BMFFRnlwuKSLTEALcP4xCxn4fIrmXPLL76mBR4ED4AXwCj8FuT1tQ==","signatures":[{"sig":"MEQCIHqWtzvVJ8ATewAa26blXQQA8nU4CJqfRTGOP+TSrVWEAiBhOlU93fKEvgP1ojvOmz7SOo97M8I2nYB3MsPkZPjJjg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":80965},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e2680df582501890deae8fd5573443cb1cd5a5f4","scripts":{"test":"vitest run","build":"tsup src/index.ts --format esm,cjs --dts --clean","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"vanderbr","email":"engineering@really.me"},"repository":{"url":"git+https://github.com/agecheck/agecheck-core.git","type":"git"},"_npmVersion":"11.9.0","description":"Core verification, policy, and cookie logic for AgeCheck SDKs.","directories":{},"_nodeVersion":"25.6.1","dependencies":{"jose":"^5.9.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.29.2","devDependencies":{"tsup":"^8.5.0","vitest":"^2.1.8","typescript":"^5.9.2","@types/node":"^24.5.2"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.1_1771414160665_0.5024188350493561","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@agecheck/core","version":"0.2.0","description":"Core verification, policy, and cookie logic for AgeCheck SDKs.","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/agecheck/agecheck-core.git"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"publishConfig":{"access":"public"},"engines":{"node":">=20"},"scripts":{"build":"tsup src/index.ts --format esm,cjs --dts --clean","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit"},"dependencies":{"jose":"^5.9.6"},"devDependencies":{"@types/node":"^24.5.2","tsup":"^8.5.0","typescript":"^5.9.2","vitest":"^2.1.8"},"packageManager":"pnpm@10.29.2","gitHead":"8c12e411923d6658dc50c77e67e9056a08f4d4f5","_id":"@agecheck/core@0.2.0","bugs":{"url":"https://github.com/agecheck/agecheck-core/issues"},"homepage":"https://github.com/agecheck/agecheck-core#readme","_nodeVersion":"25.6.1","_npmVersion":"11.9.0","dist":{"integrity":"sha512-6lTs6uvVWJosgQs3NmW9flur5w8dlZKShESrq+e6XAwFc7Wowt0JVi/rqEa9AjAT1Szz8B8aKkuLdx8iHfuW6w==","shasum":"b59ceb36e32a53c7b6302311644e42ef3c16a865","tarball":"https://registry.npmjs.org/@agecheck/core/-/core-0.2.0.tgz","fileCount":7,"unpackedSize":101638,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC0M+lPYHGAxAXETf4Twv4j9LWbxfBTflohaQxEF3H6/wIhAMvqsREPmxYgqmmnhVq4JoMfScug6n2mI7K3HCY/tXlO"}]},"_npmUser":{"name":"vanderbr","email":"engineering@really.me"},"directories":{},"maintainers":[{"name":"vanderbr","email":"engineering@really.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.2.0_1771433199849_0.09942995953212774"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-18T00:38:36.498Z","modified":"2026-02-18T16:46:40.093Z","0.1.0":"2026-02-18T00:38:36.751Z","0.1.1":"2026-02-18T11:29:20.829Z","0.2.0":"2026-02-18T16:46:39.991Z"},"bugs":{"url":"https://github.com/agecheck/agecheck-core/issues"},"license":"Apache-2.0","homepage":"https://github.com/agecheck/agecheck-core#readme","repository":{"type":"git","url":"git+https://github.com/agecheck/agecheck-core.git"},"description":"Core verification, policy, and cookie logic for AgeCheck SDKs.","maintainers":[{"name":"vanderbr","email":"engineering@really.me"}],"readme":"# @agecheck/core\n\n[![CI](https://github.com/agecheck/agecheck-core/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/agecheck/agecheck-core/actions/workflows/ci.yml)\n[![npm](https://img.shields.io/npm/v/%40agecheck%2Fcore?label=npm)](https://www.npmjs.com/package/@agecheck/core)\n\n`@agecheck/core` is the common TypeScript core used by AgeCheck SDK adapters.\n\nIt contains:\n\n- token verification (`verifyAgeToken`)\n- gate policy (`isGateRequired`)\n- signed verification cookie helpers\n- provider mode helpers for Existing Gate Integration\n- typed domain errors and models\n\nMost hostmasters should use `@agecheck/node` directly. Consume `@agecheck/core` only if you are building a framework adapter or platform integration.\n\n## Integration model support\n\nCore primitives support all three backend integration patterns:\n\n1. Managed Gate Mode\n2. Existing Gate Integration (Provider Mode)\n3. Hybrid Mode (AgeCheck + other providers)\n\nProvider Mode helpers:\n\n- `verifyAgeCheckCredential(...)`\n- `normalizeExternalProviderAssertion(...)`\n- `buildSetCookieFromProviderAssertion(...)`\n\n## Install\n\n```bash\npnpm add @agecheck/core\n```\n\n## Quality gates\n\n```bash\npnpm typecheck\npnpm test\npnpm build\n```\n\n## Notes\n\n- Runtime requirement: Node 20+\n- Module format: ESM + CJS output from `dist/`\n- Versioning and release policy: `/docs/VERSIONING.md`\n","readmeFilename":"README.md"}