{"_id":"@aeonkey/sqlite","name":"@aeonkey/sqlite","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@aeonkey/sqlite","version":"0.1.0","description":"SQLite storage adapter for AeonKey.","type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/didof/authforge.git","directory":"packages/sqlite"},"bugs":{"url":"https://github.com/didof/authforge/issues"},"homepage":"https://github.com/didof/authforge/tree/main/packages/sqlite#readme","sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","keywords":["authentication","auth","sqlite","sessions","typescript"],"engines":{"node":">=20.0.0"},"publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"dependencies":{"better-sqlite3":"^11.10.0","@aeonkey/core":"0.1.0"},"devDependencies":{"@types/better-sqlite3":"^7.6.13","typescript":"^5.7.2","vitest":"^4.1.9"},"scripts":{"build":"tsc -p tsconfig.json","check":"tsc -p tsconfig.json --noEmit","test":"vitest run"},"_id":"@aeonkey/sqlite@0.1.0","_integrity":"sha512-TMIyRXNe/w2+szn5qpQM69NV0tLpMlge4sUB5xhYKOKHRQJ7/UuBhTgZI3zYNhcIdxGCllSIrDXnmy3iVzH5ew==","_resolved":"/Users/didof/Documents/auth/artifacts/aeonkey-sqlite-0.1.0.tgz","_from":"file:artifacts/aeonkey-sqlite-0.1.0.tgz","_nodeVersion":"24.9.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-TMIyRXNe/w2+szn5qpQM69NV0tLpMlge4sUB5xhYKOKHRQJ7/UuBhTgZI3zYNhcIdxGCllSIrDXnmy3iVzH5ew==","shasum":"2a3155958b697de71680599718a99f3323ee9433","tarball":"https://registry.npmjs.org/@aeonkey/sqlite/-/sqlite-0.1.0.tgz","fileCount":6,"unpackedSize":30080,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCmi68b8aB1LMUBXJJwRvz3yjwWAjSXHGlMI+N5yEdmqgIgCK07bsa1cbdhO5q+lF5QEmKMJ75j68/A3uj8YVDhJ6w="}]},"_npmUser":{"name":"didof","email":"didonato.fr@gmail.com"},"directories":{},"maintainers":[{"name":"didof","email":"didonato.fr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sqlite_0.1.0_1783249178219_0.6336122296173134"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-05T10:59:38.081Z","0.1.0":"2026-07-05T10:59:38.353Z","modified":"2026-07-05T10:59:38.543Z"},"maintainers":[{"name":"didof","email":"didonato.fr@gmail.com"}],"description":"SQLite storage adapter for AeonKey.","homepage":"https://github.com/didof/authforge/tree/main/packages/sqlite#readme","keywords":["authentication","auth","sqlite","sessions","typescript"],"repository":{"type":"git","url":"git+https://github.com/didof/authforge.git","directory":"packages/sqlite"},"bugs":{"url":"https://github.com/didof/authforge/issues"},"license":"MIT","readme":"# @aeonkey/sqlite\n\nSQLite storage adapter for AeonKey.\n\n## Install\n\n```sh\npnpm add @aeonkey/core @aeonkey/sqlite better-sqlite3\n```\n\n## Usage\n\n```ts\nimport Database from \"better-sqlite3\";\nimport { SessionService } from \"@aeonkey/core\";\nimport { SqliteAuthStore, createSqliteAuthSchema } from \"@aeonkey/sqlite\";\n\nconst db = new Database(\"auth.db\");\ncreateSqliteAuthSchema(db);\n\nconst store = new SqliteAuthStore(db);\nconst sessions = new SessionService({ store });\n```\n\nThe store implements the durable AeonKey contracts for:\n\n- accounts\n- sessions\n- email verification requests\n- password reset sessions\n- recovery codes\n- TOTP credentials\n- WebAuthn challenges and credentials\n- persistent rate-limit buckets\n\n`createSqliteAuthSchema()` creates the demo/reference schema. Review and own migrations in production applications.\n","readmeFilename":"README.md","_rev":"1-3410c970352f6979a497ed0b4b9cbe1c"}