{"_id":"shard-db","_rev":"36-98ffe9c4fd9946d12bdbd5f86af62092","name":"shard-db","dist-tags":{"latest":"1.0.22"},"versions":{"1.0.6":{"name":"shard-db","version":"1.0.6","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.6","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"7783a7307f98cb61534edb2b569273608224e915","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.6.tgz","fileCount":7,"integrity":"sha512-h51Q7VrJrd0/zWan0FdHb7t+eYogildWUUCUH/dHwf9OsuvWiqEbPzpsD5kW94h3n5GekZdgV1nRzzyt19XTyg==","signatures":[{"sig":"MEQCIGeHEVuWJoPODTcpfF0KPvWhWtDoGnKqhO3RVrSMc8bqAiA4ckuAe33314aVrAiSMRzbMYPvsDynHBQ1UMA+D+vtmw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2520699},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"c9a99aa7c0eb133db40504ab85e3cbaeabd41384","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.0","dependencies":{"node-gyp-build":"^4.8.0"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.0","prebuildify":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.6_1782768108756_0.5319365267302167","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"shard-db","version":"1.0.7","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.7","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"29fd9e86b5fe8c2a2f1bf9468c50f499753f9c25","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.7.tgz","fileCount":7,"integrity":"sha512-rDV9XceqgOn0GDwr/r3hm4DdyC/zfKNO//UxP1q75UWc9FFdH+6I9mHGHfCX79Eze0mqTp1rfHOn2mQMgRFjbg==","signatures":[{"sig":"MEYCIQDRhS/qKYbbcEhQYvY1dQAYvm6htzgSqALlLgNm6MgGZAIhAI+Hxepm/1m6o3ZV5hvw3WAkeD/JyUCjmOuY0HOj9NUA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3262535},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"3108e15a0a58c9e074880f8e94f9e818732d6bc6","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.0","dependencies":{"node-gyp-build":"^4.8.0"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.0","prebuildify":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.7_1783011995831_0.4069371445490686","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"shard-db","version":"1.0.9","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.9","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"c5ae1809953b2e96247231ae23d78d75538a51c9","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.9.tgz","fileCount":7,"integrity":"sha512-zlLjsV7XGxWEQvL5F7pNHjKZ1cXo5hcu5VnC8YwSzTIyMT8SpmKtWuSEvYD0EmM13XHwIMowiKv1pQgKzL8TXQ==","signatures":[{"sig":"MEUCIDx5cnBk6/DEi9wj+ZXBh3laVCk++tZ/GIc+8LFgg68QAiEA0gSAV2D9v82eOdLY7f9YdKJFYqjXRx3zZKzmSF7ko0s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3271879},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"3f00ed43be8bc24878378680e8aa724e8725ab00","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.1","dependencies":{"node-gyp-build":"^4.8.0"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.0","prebuildify":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.9_1783334922057_0.01905283470918362","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"shard-db","version":"1.0.10","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.10","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"4e7ffbd32a50ad1cc75e32709175aa7ece1ffc6f","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.10.tgz","fileCount":7,"integrity":"sha512-UUY1DQ7xLkR7IaZzHK9vLrsA5a9jWJfH/IMNhe0hIVER2kj5VpUoIOKZesETaOA7G1vBik7z/GKfq74i+r1cWw==","signatures":[{"sig":"MEUCIQDWe2BPQtbu+a4TWkAgAu3ibtXX1f26NkQ/Q+TE+iyhuAIgOOB+vP+rcrNQCZXmhhyBYcBkbcuEau1PViLKSHrT18Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3276120},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"f5fc0490f93669fd5a5ad1e3918e795528b83ef6","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.1","dependencies":{"node-gyp-build":"^4.8.0"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.0","prebuildify":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.10_1783578584183_0.8720113035657455","host":"s3://npm-registry-packages-npm-production"}},"1.0.11":{"name":"shard-db","version":"1.0.11","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.11","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"29e330dfdeb8e7ad9ea0d8da9696a62df714f32a","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.11.tgz","fileCount":7,"integrity":"sha512-RvrGDPN6EsLWkKOn03T+0kZs3crBzzYuK/Jze55RdJNUsbDPKzJ7WunNax4CqNit9ZVcwcxCfYES67/oiB+O5w==","signatures":[{"sig":"MEUCIQDcAeVS1IXZkcQ5+o0+b5umx5FOdbvuaDw5FJULeq3GHQIgSRzzfo714rT/cb6/7FQZ72QiXVn/HMbSBflvBCJwns4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.11","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3756008},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"36fc97272f6135d4648d3ba0794550e423f307e7","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.1","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.11_1786001643848_0.7181256373499032","host":"s3://npm-registry-packages-npm-production"}},"1.0.12":{"name":"shard-db","version":"1.0.12","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.12","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"88e4a9d826dd646323fec54deab8689d51563efa","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.12.tgz","fileCount":7,"integrity":"sha512-TeBRrMfqAbIBDO1plrKNDuOpDtBaJB4oLE/DG+egcRMWqt+LdooPNoky1FthUTSHA8Frk/iyD4mlqDxFe6gubQ==","signatures":[{"sig":"MEUCIEEQv0Q+48XycG6ElCldvDmbsCexCPyUp3rlCLCxDFlWAiEAxqxNB3mW3MU6IiHMGjosERVdKDIZ8y4a+kHrhJ34Agg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.12","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3756008},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"52af0f04be82cf1a7c31fdfe38ae7802a6b18d5f","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.1","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.12_1786010682975_0.6811310593696214","host":"s3://npm-registry-packages-npm-production"}},"1.0.13":{"name":"shard-db","version":"1.0.13","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.13","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"4b9d186eb4c7f99ceb21d2278df7aaefc0dbf233","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.13.tgz","fileCount":7,"integrity":"sha512-alTEsFj+SbgwbD0AyzwL9HS7FXOcPphJKeNvKyDub/hrtXfMk6F5ltYB9Co1uIYMvGwaITHYbE+ydUOI+c1nhg==","signatures":[{"sig":"MEQCH1kjP68DERQjOSuvmXx9z+pSaJfFWRiJo3jB8uBbhb4CIQDecaWSPIo67W56HAVKu4ujW4tWmcr2ittcuBDLBM8ytQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.13","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3785112},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"6781a91b544968546a60519d479011495cc64c32","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.1","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.13_1786189081219_0.7276946800405784","host":"s3://npm-registry-packages-npm-production"}},"1.0.14":{"name":"shard-db","version":"1.0.14","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.14","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"953020aa5882753ca654ce44a023d1641da9aef5","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.14.tgz","fileCount":7,"integrity":"sha512-T5P7sK/nRX2rK31PAojaSScut4YfRBO2TeBtirelCIt+3WJaRnMdI2tOiov4voKxzJhRi1JEyMSMnhFtoG3Ntw==","signatures":[{"sig":"MEQCIDnvSZ37pev9t7sXcEn/QVkNNl/MuAI9DvX5Mht4/+5kAiB+dLxo/ocARoyCy9iNl8iuqaaZF4RqJqHWOilzLQ5WXA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.14","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3785112},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"b85b3d84bb5023846e532f9be717b04c7100c45d","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.1","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.14_1786191467934_0.2676799611012606","host":"s3://npm-registry-packages-npm-production"}},"1.0.15":{"name":"shard-db","version":"1.0.15","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.15","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"0d79778e32e86ee9f138e6b52bd90ae82c373a02","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.15.tgz","fileCount":7,"integrity":"sha512-xCP9tcjsvH9CPCmJc9LUDa0VMxGoxouRi8wOzVBcl0/pZ5xUhtnuVAgElZ+8Ue7W5U8QwS2osXl3LKZ7kTWHDQ==","signatures":[{"sig":"MEUCIQCqHXBV/ms3N/lHKBc91Htj3NrPIxkpvVYAxn6L/mRZbwIgFE6No9BW8vkDy8NtGMalRh4hz0CGAZDmveg+ElvDG54=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.15","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3785000},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"6a498bdee99ce8892f206ae9455876d41c4ff0b6","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.1","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.15_1786350111490_0.8274950253874089","host":"s3://npm-registry-packages-npm-production"}},"1.0.16":{"name":"shard-db","version":"1.0.16","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.16","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"c6281ddf2cbeecdbe653584a2ea66d392d596b00","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.16.tgz","fileCount":7,"integrity":"sha512-jMlM2DrILHJ04Q+lwMGbg9tD4pPfY9XE+18Bcu+rbul4QgjM81uT7hCYY0LHoaxrXNYYYtxuQlpp8iMag9UVwg==","signatures":[{"sig":"MEUCIBUTUvImP9KAS7thNLJLGRneBaekv/lyYVOTPwkrvyLqAiEAqRmxyJC5k+UtuPum8oE6fHMdlbUCKnYX5ZQYX+kyswU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.16","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3785544},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"d2f27ebcccd4c21bf360bc8e38561ae42a39286e","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.1","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.16_1786444816603_0.2841357087841416","host":"s3://npm-registry-packages-npm-production"}},"1.0.17":{"name":"shard-db","version":"1.0.17","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.17","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"f79b9b1facc58da100d3a0dbde2cdf0e77111fff","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.17.tgz","fileCount":7,"integrity":"sha512-LrjhCceCY9Dq4CkXvE2Aa4xlmk5ZxZ2xUA8+ePLYSu617gdTwgXpitEajA855ia5NFDft5Dq/hrfaFhgjZG70A==","signatures":[{"sig":"MEUCIDcyEiUqr5dBqyIl+ukHx16LfZ/DxHoSnZQOgnejK2STAiEA/UaMrB7iCzYzlEnE4216pFuJWPKfHqsxcMzp+J9tk8s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.17","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3608700},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"0c3628f337b2d735804435546fbcc05a4bc0ed5e","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.2","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.17_1786903826058_0.3384404202375866","host":"s3://npm-registry-packages-npm-production"}},"1.0.18":{"name":"shard-db","version":"1.0.18","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.18","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"e1ddeb8d59f6647d586d19f37fd52e20298e0f32","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.18.tgz","fileCount":7,"integrity":"sha512-rgQBgaFtGcBnUcEFheIarzUY9yAQRITkMeau19i+Up1/P+FrJM1EYXt0gUZ2YIWHjct8MgIDRPYolMzDxUTZDA==","signatures":[{"sig":"MEQCIDsfV0psihb7qh3Ziv1+jXF47FYFEQQ85m8fapaVgV6YAiBRqaZzohwShmIAQpeG/5+pA0eAG4tHdhTaBHtjROOQVw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.18","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3957804},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"52ea507a386e2875fdd7479d39a1b072377e49ec","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.2","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.18_1787130158582_0.9431607268138151","host":"s3://npm-registry-packages-npm-production"}},"1.0.19":{"name":"shard-db","version":"1.0.19","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.19","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"4bfc41c02b8845b333e01554305d204cbd6a1d9d","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.19.tgz","fileCount":7,"integrity":"sha512-QrvdTTmbjPal5NXGnKModCyYu99DaNIjnlcsnwW3isogCGHzQH4KCQoDjeD/YllWE5ToLhkaYH/bQTbLJw/k6A==","signatures":[{"sig":"MEYCIQD5wt39R7o5KMp5P97LsbSguertANpG5jpzujcG8EUbLwIhAPPw4YlVpKe56g524ZkX8SqVjVngov16ojoJ+v1h2lF5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.19","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4064828},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"5195612d81fc819bdfbd38fc5bfbef6f2fd26839","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.2","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.19_1789525465222_0.8835211675128314","host":"s3://npm-registry-packages-npm-production"}},"1.0.20":{"name":"shard-db","version":"1.0.20","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.20","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"4c89665516d32e7c043bcf9465ec067e601101c0","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.20.tgz","fileCount":7,"integrity":"sha512-ADjhX7YJDsZFQlItFUvPNzrZoQ8zPWuSa76B35HKz2NZMGoqm3SBLvBpJs3rNBHyBp0a4P9Qw2/owXPIbJefaA==","signatures":[{"sig":"MEYCIQCc0vczwTszdwHoVpYgoAFI4iMMjESeVn/3CFSEHum0QQIhAMlAUHPOM2e7CwAsqaOwE9hqxG2QkIyKLbt2UC/VzcGo","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIDz0p6Xhn4vZ/tGfTZfdDnQ6HTUkwzZZKpyhA86I+bKqAiEAoHhZCZ8fcfYUYtC/N/QMt7birTWjlYS+O3Fcbbs7ky0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.20","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4068860},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"8f4c25898e94154b196c0e1c34861c9bbaeab390","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.2","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.20_1789811798538_0.35494809362128965","host":"s3://npm-registry-packages-npm-production"}},"1.0.21":{"name":"shard-db","version":"1.0.21","keywords":["database","embedded","key-value","btree","native"],"license":"MIT","_id":"shard-db@1.0.21","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"homepage":"https://github.com/sayyiditow/shard-db#readme","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"6456b66a43dc11bda1c4f69bd836f3519dd928a3","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.21.tgz","fileCount":7,"integrity":"sha512-Dpg9jp21GSU0ZS9R0AFHWk2tuFgrRwk84f0UtwfUefQCI+S/PPSix/HhJLoYBo4s7b+lkpdqiJ8VY1UtimlBUQ==","signatures":[{"sig":"MEQCIC8SgFejqGADT+SyvPlbS3IeIfeuXbfcSAqdgOxjtC3JAiBjN8wsSHFyrRcZMAwPqb8xVEpPSWlsAen//C+FJL8vFw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCNUgi8M/u6qNiSYUQFSlxUP/PBWNkvoiV2Q6mJsSnokwIhANG31cueoCtqwVB4Pk9R6+CXM+mAT5k1Z1rzWCs0G/8w","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.21","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4101932},"main":"index.js","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"68bfe2ace588b893d9ba66d0212a65abf31d10d1","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"_nodeVersion":"22.23.2","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/shard-db_1.0.21_1790237372764_0.08277307330514927","host":"s3://npm-registry-packages-npm-production"}},"1.0.22":{"_id":"shard-db@1.0.22","bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"dist":{"shasum":"ac74cbe180de5056c3699f4782640adfd9e608f7","tarball":"https://registry.npmjs.org/shard-db/-/shard-db-1.0.22.tgz","fileCount":7,"integrity":"sha512-Dy1yFiGqhE8iNphI45bU+2/KnIXVu+XMA2XkCSFDR7HA9BKPMqp+Dt3CSBXV1kjj9S1Y1mxd0YtOGM+BSbQesw==","signatures":[{"sig":"MEUCIQCWrCRmtsb7RM4B7QaYBzMaKaNjV1HsJxQVbTbzXqHKTwIgTcFX3rq+tM3nKBwkGPzG2hPqSTcPjqlkkRQQfPGrgzg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCT+GUyWkpTu69H8XsvFBXOCdSNeWNjQP8nkLu/OJZTugIgNZpniNPRXcAyuFD+6zns+p+KHGwicCsxdmHAfasYHks="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/shard-db@1.0.22","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4101932},"main":"index.js","name":"shard-db","types":"index.d.ts","engines":{"bun":">=1.0.0","node":">=18.0.0"},"gitHead":"1dac05a5008867f67c3533d3c1e504ec34930517","license":"MIT","scripts":{"test":"bun test/basic.js","build":"node-gyp rebuild","install":"node-gyp-build","prebuild":"prebuildify --napi --strip -t 18.0.0 -t 20.0.0 -t 22.0.0","build:release":"node-gyp rebuild --release"},"version":"1.0.22","_npmUser":{"name":"sayyiditow","email":"hashim@sayyiditow.dev"},"homepage":"https://github.com/sayyiditow/shard-db#readme","keywords":["database","embedded","key-value","btree","native"],"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"_npmVersion":"10.9.8","description":"High-performance embedded database for Node.js (native N-API addon)","directories":{},"maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"_nodeVersion":"22.23.2","dependencies":{"undici":"^8.10.0","node-gyp-build":"^4.8.4"},"_hasShrinkwrap":false,"devDependencies":{"node-gyp":"^13.0.1","prebuildify":"^6.0.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/shard-db_1.0.22_1790310193776_0.7904320215754383"}}},"time":{"created":"2026-06-12T16:34:58.288Z","modified":"2026-09-25T04:23:14.422Z","1.0.0":"2026-06-12T16:34:58.607Z","1.0.1":"2026-06-12T16:39:35.596Z","1.0.2":"2026-06-13T02:12:59.255Z","1.0.3":"2026-06-13T15:07:43.099Z","1.0.4":"2026-06-16T15:00:48.613Z","1.0.5":"2026-06-18T06:01:20.205Z","1.1.0":"2026-06-29T09:46:47.222Z","1.1.1":"2026-06-29T12:54:59.197Z","1.1.2":"2026-06-29T14:44:19.952Z","1.0.6":"2026-06-29T21:21:48.967Z","1.0.7":"2026-07-02T17:06:36.102Z","1.0.8":"2026-07-06T09:47:42.726Z","1.0.9":"2026-07-06T10:48:42.215Z","1.0.10":"2026-07-09T06:29:44.359Z","1.0.11":"2026-08-06T07:34:04.043Z","1.0.12":"2026-08-06T10:04:43.202Z","1.0.13":"2026-08-08T11:38:01.390Z","1.0.14":"2026-08-08T12:17:48.115Z","1.0.15":"2026-08-10T08:21:51.694Z","1.0.16":"2026-08-11T10:40:16.804Z","1.0.17":"2026-08-16T18:10:26.227Z","1.0.18":"2026-08-19T09:02:38.801Z","1.0.19":"2026-09-16T02:24:25.462Z","1.0.20":"2026-09-19T09:56:38.694Z","1.0.21":"2026-09-24T08:09:32.946Z","1.0.22":"2026-09-25T04:23:14.100Z"},"bugs":{"url":"https://github.com/sayyiditow/shard-db/issues"},"license":"MIT","homepage":"https://github.com/sayyiditow/shard-db#readme","keywords":["database","embedded","key-value","btree","native"],"repository":{"url":"git+https://github.com/sayyiditow/shard-db.git","type":"git"},"description":"High-performance embedded database for Node.js (native N-API addon)","maintainers":[{"name":"sayyiditow","email":"hashim@sayyiditow.dev"}],"readme":"# shard-db\n\n2026.08.2 removes the storage `migrate()` method. Embedded opens now require\nclean 2026.08.1 evidence for populated roots and perform no conversion or\nautomatic index rebuild; run explicit maintenance operations instead.\n\nHigh-performance embedded database for Node.js and Bun. Runs entirely in-process — no daemon, no TCP socket, no external dependencies.\n\n```bash\nnpm install shard-db\n# or\nbun add shard-db\n```\n\nPrebuilt binaries for **Linux x64**, **Linux arm64**, and **macOS Apple Silicon**. Node.js ≥ 18, Bun ≥ 1.0.\n\n## Quick start\n\n```js\nconst ShardDb = require('shard-db')\n\nconst db = new ShardDb('/path/to/data')\n\n// Create a table\nawait db.query({\n  mode: 'create-object',\n  dir: 'myapp',\n  object: 'users',\n  splits: 16,\n  max_key: 128,\n  fields: ['name:varchar:100', 'email:varchar:200', 'age:int', 'active:bool'],\n  indexes: ['email', 'age']\n})\n\n// Insert\nawait db.query({\n  mode: 'insert',\n  dir: 'myapp', object: 'users', key: 'u1',\n  value: { name: 'Alice', email: 'alice@example.com', age: 30, active: true }\n})\n\n// Get\nconst user = JSON.parse(await db.query({\n  mode: 'get', dir: 'myapp', object: 'users', key: 'u1'\n}))\n// { name: 'Alice', email: 'alice@example.com', age: 30, active: true }\n\ndb.close()\n```\n\n`query()` returns a `Promise<string>` — queries run on worker threads so the event loop is never blocked.\n\n## CRUD\n\n```js\n// Insert / upsert\nawait db.query({ mode: 'insert', dir: 'myapp', object: 'users', key: 'u1',\n  value: { name: 'Alice', email: 'alice@example.com', age: 30, active: true } })\n\n// Update\nawait db.query({ mode: 'update', dir: 'myapp', object: 'users', key: 'u1',\n  value: { age: 31 } })\n\n// Get\nconst user = JSON.parse(await db.query({\n  mode: 'get', dir: 'myapp', object: 'users', key: 'u1'\n}))\n\n// Exists\nconst exists = JSON.parse(await db.query({\n  mode: 'exists', dir: 'myapp', object: 'users', key: 'u1'\n}))  // true or false\n\n// Delete\nawait db.query({ mode: 'delete', dir: 'myapp', object: 'users', key: 'u1' })\n```\n\n## Querying\n\n### Find with criteria\n\n```js\nconst users = JSON.parse(await db.query({\n  mode: 'find',\n  dir: 'myapp', object: 'users',\n  criteria: { age: { gt: 25 } },\n  order_by: 'age', order: 'desc',\n  limit: 20\n}))\n// [ { name: 'Alice', age: 30, ... }, ... ]\n```\n\nCommon operators: `eq`, `neq`, `lt`, `gt`, `lte`, `gte`, `between`, `in`, `starts`, `contains`, `like`.\n\n### Count\n\n```js\nconst total = JSON.parse(await db.query({\n  mode: 'count', dir: 'myapp', object: 'users',\n  criteria: { active: { eq: true } }\n}))\n```\n\n### Aggregate\n\n```js\nconst stats = JSON.parse(await db.query({\n  mode: 'aggregate',\n  dir: 'myapp', object: 'users',\n  aggregates: [\n    { fn: 'count', alias: 'n' },\n    { fn: 'avg',   field: 'age', alias: 'avg_age' },\n    { fn: 'max',   field: 'age', alias: 'max_age' }\n  ],\n  group_by: 'active'\n}))\n// [ { active: true, n: 38, avg_age: 31.4, max_age: 55 }, ... ]\n```\n\n### Bulk operations\n\n```js\n// Bulk insert (acts as upsert)\nawait db.query({\n  mode: 'bulk-insert', dir: 'myapp', object: 'users',\n  records: [\n    { key: 'u2', value: { name: 'Bob',   email: 'b@x.com', age: 22, active: true } },\n    { key: 'u3', value: { name: 'Carol', email: 'c@x.com', age: 45, active: false } }\n  ]\n})\n\n// Bulk delete\nawait db.query({\n  mode: 'bulk-delete', dir: 'myapp', object: 'users',\n  keys: ['u2', 'u3']\n})\n```\n\n### Cursor pagination\n\nEfficient keyset pagination — O(limit) per page regardless of depth.\n\n```js\n// First page\nlet page = JSON.parse(await db.query({\n  mode: 'find', dir: 'myapp', object: 'users',\n  order_by: 'age', order: 'asc',\n  limit: 20, cursor: null   // null = first page\n}))\n// page.rows    — array of records\n// page.cursor  — pass to the next call; null when exhausted\n\n// Next page\npage = JSON.parse(await db.query({\n  mode: 'find', dir: 'myapp', object: 'users',\n  order_by: 'age', order: 'asc',\n  limit: 20, cursor: page.cursor\n}))\n```\n\n`order_by` must be an indexed field.\n\n## Log handler\n\nSilent by default. Register a callback to receive errors, warnings, and slow-query events:\n\n```js\ndb.setLogHandler((type, msg) => {\n  // type: 1=error 2=warn 3=info 4=debug 5=audit 6=slow\n  if (type <= 2) console.error('[shard-db]', msg.trim())\n  if (type === 6) console.warn('[shard-db:slow]', msg.trim())\n})\n\n// Unregister\ndb.setLogHandler(null)\n```\n\n`msg` is pre-formatted: `\"YYYY-MM-DD HH:MM:SS LEVEL [subsystem] text\\n\"`. The handler fires on the JS thread after each query completes.\n\n## TypeScript\n\nFull types included. `QueryBody` is a discriminated union with autocomplete for all query modes:\n\n```ts\nimport ShardDb = require('shard-db')\n\nconst db = new ShardDb('/path/to/data')\n\ndb.setLogHandler((type, msg) => {\n  if (ShardDb.LOG_TYPES[type] === 'error') console.error(msg.trim())\n})\n\nconst count = JSON.parse(\n  await db.query({ mode: 'count', dir: 'myapp', object: 'users' })\n) as number\n```\n\n## Configuration\n\nPlace a `db.env` file in the process working directory to tune defaults:\n\n```bash\nSLOW_QUERY_MS=200    # slow-query threshold in ms (default 500)\nGLOBAL_LIMIT=10000   # max records returned per query (default 100000)\nLOG_LEVEL=3          # 1=ERROR 2=WARN 3=INFO 4=DEBUG\n```\n\n`DB_ROOT` is ignored — the constructor argument is always used. Settings must be set before `new ShardDb()` is called.\n\n## Platform support\n\n| Platform | Architecture | Prebuild |\n|---|---|---|\n| Linux | x64 | ✓ |\n| Linux | arm64 | ✓ |\n| macOS | arm64 (Apple Silicon) | ✓ |\n| Windows | — | ✗ not supported |\n\n## Links\n\n- [GitHub](https://github.com/sayyiditow/shard-db)\n- [Full documentation](https://github.com/sayyiditow/shard-db/tree/main/docs)\n- [Changelog](https://github.com/sayyiditow/shard-db/blob/main/CHANGELOG.md)\n","readmeFilename":"README.md"}