{"_id":"@alineo-labs/sqlite-memory","_rev":"3-09dac06efb040cb430b61904d98b97c0","name":"@alineo-labs/sqlite-memory","dist-tags":{"latest":"0.2.2"},"versions":{"0.2.0":{"name":"@alineo-labs/sqlite-memory","version":"0.2.0","license":"Apache-2.0","_id":"@alineo-labs/sqlite-memory@0.2.0","maintainers":[{"name":"drejtoolwell","email":"vivekpatel4049@gmail.com"}],"homepage":"https://github.com/DrejT/alineo#readme","bugs":{"url":"https://github.com/DrejT/alineo/issues"},"dist":{"shasum":"aee2aa8e4bd2ff64a212bd21bbca354317d94b04","tarball":"https://registry.npmjs.org/@alineo-labs/sqlite-memory/-/sqlite-memory-0.2.0.tgz","fileCount":4,"integrity":"sha512-LZGxodLbNvyIu9n71ZXbLcHhDp59W9JP1yL5jlM60gyURINkpD/ZN+w++doqTm1igZiFFInUn1RnXXGRHHsOIw==","signatures":[{"sig":"MEUCIQDKoLm3db9Zr6P6oc+1EfJOz+qwlIpYKfzwFYrkGhWmRgIgViisprXIBQdACG5W9FXvptxxCi8wXhtznM00NLw3/lc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alineo-labs%2fsqlite-memory@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15353},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"gitHead":"8bd54ff750438ee67b032d48e20abfade662099a","scripts":{"test":"bun test","build":"tsdown"},"_npmUser":{"name":"drejtoolwell","email":"vivekpatel4049@gmail.com"},"repository":{"url":"git+https://github.com/DrejT/alineo.git","type":"git","directory":"packages/adapters/sqlite-memory"},"_npmVersion":"10.9.8","description":"File-based `@alineo-labs/memory` backend for [alineo](https://alineo.tech), via `bun:sqlite`. Zero infrastructure, survives process restarts.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"sqlite-vec":"^0.1.9","@alineo-labs/memory":"0.2.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.3","bun-types":"1.3.14","typescript":"6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/sqlite-memory_0.2.0_1788102914361_0.372811600940512","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@alineo-labs/sqlite-memory","version":"0.2.1","license":"Apache-2.0","_id":"@alineo-labs/sqlite-memory@0.2.1","maintainers":[{"name":"drejtoolwell","email":"vivekpatel4049@gmail.com"}],"homepage":"https://github.com/DrejT/alineo#readme","bugs":{"url":"https://github.com/DrejT/alineo/issues"},"dist":{"shasum":"ecc574c8bc3c7f3549035512d84ba9a0fdc166b2","tarball":"https://registry.npmjs.org/@alineo-labs/sqlite-memory/-/sqlite-memory-0.2.1.tgz","fileCount":4,"integrity":"sha512-tItdL748xeabCTSLXPPMWXjk05o/t7BDahWnvNzwKVjZocqRJ0RTXLD20nZbinC1g6A3Rxx5lrG6R8hyRLEAFA==","signatures":[{"sig":"MEQCICMxvAUnoC7tNY07Q0FX0AedtfiKrC+ehE71Z6pyn40hAiBLhK11Hf28zmcxV/+M5MCdXgEPda2UrbvpWVAvaRU0bw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alineo-labs%2fsqlite-memory@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15353},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"gitHead":"0a4efc6f2b7e9cc4b02acf303b2439788d55907c","scripts":{"test":"bun test","build":"tsdown"},"_npmUser":{"name":"drejtoolwell","email":"vivekpatel4049@gmail.com"},"repository":{"url":"git+https://github.com/DrejT/alineo.git","type":"git","directory":"packages/adapters/sqlite-memory"},"_npmVersion":"10.9.8","description":"File-based `@alineo-labs/memory` backend for [alineo](https://alineo.tech), via `bun:sqlite`. Zero infrastructure, survives process restarts.","directories":{},"_nodeVersion":"22.23.2","dependencies":{"sqlite-vec":"^0.1.9","@alineo-labs/memory":"0.2.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.3","bun-types":"1.3.14","typescript":"6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/sqlite-memory_0.2.1_1788628601475_0.7974168567545366","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@alineo-labs/sqlite-memory","version":"0.2.2","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/DrejT/alineo.git","directory":"packages/adapters/sqlite-memory"},"type":"module","main":"./dist/index.mjs","types":"./dist/index.d.mts","exports":{".":{"import":"./dist/index.mjs","types":"./dist/index.d.mts"}},"publishConfig":{"access":"public","provenance":true},"scripts":{"build":"tsdown","test":"bun test"},"dependencies":{"@alineo-labs/memory":"0.2.2","sqlite-vec":"^0.1.9"},"devDependencies":{"bun-types":"1.4.2","tsdown":"0.23.0","typescript":"6.0.3"},"_id":"@alineo-labs/sqlite-memory@0.2.2","gitHead":"d3323f599d24aade22d8e26ed1ae695e1d236280","description":"File-based `@alineo-labs/memory` backend for [alineo](https://alineo.tech), via `bun:sqlite`. Zero infrastructure, survives process restarts.","bugs":{"url":"https://github.com/DrejT/alineo/issues"},"homepage":"https://github.com/DrejT/alineo#readme","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-MuezNlOhLYCPn2Q4QUSOyOG2oowLGrCPYEDzpaZ1By2IjcIjiTkKjRS4DomRddqdJwnYCq02OORWDDflt0dbIg==","shasum":"95f46e49089d341c345599e4893f9dca52e84ddc","tarball":"https://registry.npmjs.org/@alineo-labs/sqlite-memory/-/sqlite-memory-0.2.2.tgz","fileCount":4,"unpackedSize":15295,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alineo-labs%2fsqlite-memory@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGZfUkYBO3orVsm1XBd0GZT75iWcWM5eNlYE1WMCtDh9AiAJ6phrMV6qfGQ5YNgg8SperOFYU6Vh9u+QLKnMlWVfJg=="}]},"_npmUser":{"name":"drejtoolwell","email":"vivekpatel4049@gmail.com"},"directories":{},"maintainers":[{"name":"drejtoolwell","email":"vivekpatel4049@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sqlite-memory_0.2.2_1789325262963_0.5359566352591925"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-30T15:15:14.245Z","modified":"2026-09-13T18:47:43.419Z","0.2.0":"2026-08-30T15:15:14.496Z","0.2.1":"2026-09-05T17:16:41.612Z","0.2.2":"2026-09-13T18:47:43.085Z"},"bugs":{"url":"https://github.com/DrejT/alineo/issues"},"license":"Apache-2.0","homepage":"https://github.com/DrejT/alineo#readme","repository":{"type":"git","url":"git+https://github.com/DrejT/alineo.git","directory":"packages/adapters/sqlite-memory"},"description":"File-based `@alineo-labs/memory` backend for [alineo](https://alineo.tech), via `bun:sqlite`. Zero infrastructure, survives process restarts.","maintainers":[{"name":"drejtoolwell","email":"vivekpatel4049@gmail.com"}],"readme":"# @alineo-labs/sqlite-memory\n\nFile-based `@alineo-labs/memory` backend for [alineo](https://alineo.tech), via `bun:sqlite`. Zero infrastructure, survives process restarts.\n\n```bash\nbun add @alineo-labs/sqlite-memory\n```\n\nFor a shared, multi-process backend, use [`@alineo-labs/postgres-memory`](https://github.com/DrejT/alineo/tree/main/packages/adapters/postgres-memory) instead.\n\n---\n\n## Usage\n\n```ts\nimport { Memory } from \"@alineo-labs/memory\";\nimport {\n  SQLiteWorkingMemoryProvider,\n  SQLiteSemanticMemoryProvider,\n} from \"@alineo-labs/sqlite-memory\";\n\nconst memory = new Memory({\n  workingMemory: new SQLiteWorkingMemoryProvider(\"./alineo-memory.db\"),\n  semantic: new SQLiteSemanticMemoryProvider(\"./alineo-memory.db\", myEmbeddingProvider),\n});\n```\n\nBoth providers migrate and enable WAL mode on construction — no separate `connect()` step.\nPass the same file path to both to keep working and semantic memory in one file, or different\npaths to keep them separate.\n\nSemantic recall ranks using [`sqlite-vec`](https://github.com/asg017/sqlite-vec)'s native\n`vec0` virtual table — a real vector index, not a JS-level scan — whenever the extension loads\nsuccessfully on the current platform (`sqlite-vec` ships prebuilt binaries for the common\nplatforms; verified working here on win32/x64). Each resource's vectors are isolated via\n`vec0`'s own partition-key mechanism, applied natively during the KNN search itself rather\nthan as a filter afterward — the latter would silently return too few or the wrong results\nwhenever another resource's facts happen to be nearer to the query. Check\n`provider.hasVectorIndex` to see which path is active; if the extension fails to load, this\nfalls back to the same in-JS cosine scan `InMemorySemanticMemoryProvider` uses — correct, just\nslower.\n\n---\n\n## License\n\nApache 2.0\n","readmeFilename":"README.md"}