{"_id":"scopedb","_rev":"11-d6b5d88aa0ac36b749ba12b25682c139","name":"scopedb","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.1":{"name":"scopedb","version":"0.0.1","license":"Apache-2.0","_id":"scopedb@0.0.1","maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"}],"dist":{"shasum":"55826759a3f353904cf0b74e5a271d2a77ee87a1","tarball":"https://registry.npmjs.org/scopedb/-/scopedb-0.0.1.tgz","fileCount":35,"integrity":"sha512-+Ozl+y/WgZEo4Gc+eypyLdtUmedJOi9y5U0h2o38gV79ka/vIitqG+RRAmikWVe1YeIOJep4f+yWgyqjQvAdyg==","signatures":[{"sig":"MEUCICbTc3HU9oikbp1lONvBo40VrUKpltUVT1usBqM9/mo0AiEA6dPv3D6/xQILQIxFr5dtfD+4osUmexdRLIoPr0CFOfE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":119366},"main":"./dist/index.js","type":"module","_from":"file:scopedb-0.0.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js","build":"tsc -p tsconfig.json","check":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"tisonkun","email":"wander4096@gmail.com"},"_resolved":"/private/var/folders/xr/p0g_fjgn72d5rqx17xjv9sv00000gn/T/f1d9e0d4ba63361adeef7e0e07b6bbd4/scopedb-0.0.1.tgz","_integrity":"sha512-+Ozl+y/WgZEo4Gc+eypyLdtUmedJOi9y5U0h2o38gV79ka/vIitqG+RRAmikWVe1YeIOJep4f+yWgyqjQvAdyg==","_npmVersion":"11.11.0","description":"A Node.js client for ScopeDB","directories":{},"_nodeVersion":"25.8.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/scopedb_0.0.1_1773593640879_0.6692416047647511","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"scopedb","version":"0.0.2","license":"Apache-2.0","_id":"scopedb@0.0.2","maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"},{"name":"leiysky","email":"leiysky@outlook.com"}],"dist":{"shasum":"de15c3181274b2b42dd84d3715f61e37e1fa9555","tarball":"https://registry.npmjs.org/scopedb/-/scopedb-0.0.2.tgz","fileCount":35,"integrity":"sha512-Im5BzCLNHYD+k3u1JZzNbYXd7onrM5m7/n0VPS55tpqb/aXYv2MO6K0fsyQ4H0ym0ZkAVcdOC4PjY5NgMRtIKA==","signatures":[{"sig":"MEYCIQDnCyDjjQFd84vrx9SPxjl34Fi0l9rtUk6t/KSKenZLUwIhAOapu7fWJxQitDKyjSKjgXBuGpppdToyf4/QLumxJap3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":125061},"main":"./dist/index.js","type":"module","_from":"file:scopedb-0.0.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js","build":"tsc -p tsconfig.json","check":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"leiysky","email":"leiysky@outlook.com"},"_resolved":"/private/var/folders/06/y1z69rlx49q6j04qvm84_vhr0000gn/T/2b52432043f7d56d01fa8bd8beed573a/scopedb-0.0.2.tgz","_integrity":"sha512-Im5BzCLNHYD+k3u1JZzNbYXd7onrM5m7/n0VPS55tpqb/aXYv2MO6K0fsyQ4H0ym0ZkAVcdOC4PjY5NgMRtIKA==","_npmVersion":"11.8.0","description":"A Node.js client for ScopeDB","directories":{},"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/scopedb_0.0.2_1779609575079_0.74401023020646","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"scopedb","version":"0.0.3","license":"Apache-2.0","_id":"scopedb@0.0.3","maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"},{"name":"leiysky","email":"leiysky@outlook.com"}],"dist":{"shasum":"870f99fa991b92d5e9b9417f6ccacda637cbd6e2","tarball":"https://registry.npmjs.org/scopedb/-/scopedb-0.0.3.tgz","fileCount":35,"integrity":"sha512-5514a4A67vk/nwlIh/smUGJwmcFma9XA4V28BdVHX1cxZbDx4OBc4WlJ7k6J1FkCLI4TnUbYAmqzEf9ND4HtIw==","signatures":[{"sig":"MEQCIEX9bFFME8Vb/Tn+JXPNneA+BPvi0Ugm+JQQTXe20rvQAiAMSeSjaathg6I+ZiXm2hiN9bce31fx/qmtMhVzdZV7wQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128893},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"5b9717e2012b166b0b5b612dfc370a768657928b","scripts":{"test":"tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js","build":"tsc -p tsconfig.json","check":"tsc -p tsconfig.json --noEmit","prepack":"pnpm run build"},"_npmUser":{"name":"leiysky","email":"leiysky@outlook.com"},"_npmVersion":"11.8.0","description":"A Node.js client for ScopeDB","directories":{},"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.32.1","devDependencies":{"typescript":"^5.8.2","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/scopedb_0.0.3_1784124284659_0.44422531192764536","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"scopedb","version":"0.1.0","license":"Apache-2.0","_id":"scopedb@0.1.0","maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"},{"name":"leiysky","email":"leiysky@outlook.com"}],"dist":{"shasum":"1fd8572a3afdeacec69ad1a1a49a10b37802a6fe","tarball":"https://registry.npmjs.org/scopedb/-/scopedb-0.1.0.tgz","fileCount":53,"integrity":"sha512-WnH19FNXUCqb6GK/c9wpSpOa4q2cg44706M8/7lvL04goXxhjpzJ1PZCiYhNw5V0QLFf0qP1bv7BrKNBlXBudQ==","signatures":[{"sig":"MEUCIHvT1Z0syfdIJcnIdMcPpv5xG631ZyUXY0WOLu+USKIDAiEAmQUiHF6j4pgJ1zcYDnwHrzj8LCZ9mILHM/F8C+oDbVU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":284095},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"9cef9c76e127aa9529b495232b1b06604fefaf03","scripts":{"test":"tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js","build":"pnpm run clean:dist && tsc -p tsconfig.json","check":"pnpm run build && pnpm run check:examples:built","example":"pnpm run build:examples && node scripts/run-example.mjs","prepack":"pnpm run check","clean:dist":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"","example:list":"node scripts/run-example.mjs --list","check:package":"node --input-type=module -e \"const sdk = await import('scopedb'); if (typeof sdk.Client !== 'function' || typeof sdk.AppendStream !== 'function' || typeof sdk.AppendRowsError !== 'function') throw new Error('public package entry is incomplete')\"","build:examples":"pnpm run build && pnpm run clean:examples && tsc -p tsconfig.examples.json","check:examples":"pnpm run build && pnpm run check:examples:built","clean:examples":"node -e \"require('node:fs').rmSync('dist-test/examples-build', { recursive: true, force: true })\"","example:append":"pnpm run example -- append","example:catalog":"pnpm run example -- catalog","example:statement":"pnpm run example -- statement","example:append-bulk":"pnpm run example -- append-bulk","check:examples:built":"tsc -p tsconfig.examples.json --noEmit && pnpm run check:package","example:append-stream":"pnpm run example -- append-stream","example:append-telemetry":"pnpm run example -- append-telemetry","example:ingest-transform":"pnpm run example -- ingest-transform"},"_npmUser":{"name":"leiysky","email":"leiysky@outlook.com"},"_npmVersion":"11.8.0","description":"A Node.js client for ScopeDB","directories":{},"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.32.1","devDependencies":{"typescript":"^5.8.2","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/scopedb_0.1.0_1785922382456_0.4443956703315304","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"scopedb","version":"0.1.1","license":"Apache-2.0","_id":"scopedb@0.1.1","maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"},{"name":"leiysky","email":"leiysky@outlook.com"}],"dist":{"shasum":"02513d798f69b50f0e23fd251216eb8fd62fd11d","tarball":"https://registry.npmjs.org/scopedb/-/scopedb-0.1.1.tgz","fileCount":53,"integrity":"sha512-mE8+7XNXGVErJs0dA/G0yxyNXN4UnH0qDR6qnMd5yV1QqhvNAWv9LRX6rgGzyn1dEC7UzVF+9uqCAYag8MKkRQ==","signatures":[{"sig":"MEUCIDdR2MYfMqx9ptYmGY/GKqV5ENcw0oYkA4wYVSXrYnzOAiEA5y13DjQR3idhE1I+W5Plqg+5eKlXBTt3gJpC3mWhdjA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":283669},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"79bc68b1237cf12aaf3d99d60fd5f82ac2577241","scripts":{"test":"tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js","build":"pnpm run clean:dist && tsc -p tsconfig.json","check":"pnpm run build && pnpm run check:examples:built","example":"pnpm run build:examples && node scripts/run-example.mjs","prepack":"pnpm run check","clean:dist":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"","example:list":"node scripts/run-example.mjs --list","check:package":"node --input-type=module -e \"const sdk = await import('scopedb'); if (typeof sdk.Client !== 'function' || typeof sdk.AppendStream !== 'function' || typeof sdk.AppendRowsError !== 'function') throw new Error('public package entry is incomplete')\"","build:examples":"pnpm run build && pnpm run clean:examples && tsc -p tsconfig.examples.json","check:examples":"pnpm run build && pnpm run check:examples:built","clean:examples":"node -e \"require('node:fs').rmSync('dist-test/examples-build', { recursive: true, force: true })\"","example:append":"pnpm run example -- append","example:catalog":"pnpm run example -- catalog","example:statement":"pnpm run example -- statement","example:append-bulk":"pnpm run example -- append-bulk","check:examples:built":"tsc -p tsconfig.examples.json --noEmit && pnpm run check:package","example:append-stream":"pnpm run example -- append-stream","example:append-telemetry":"pnpm run example -- append-telemetry","example:ingest-transform":"pnpm run example -- ingest-transform"},"_npmUser":{"name":"leiysky","email":"leiysky@outlook.com"},"_npmVersion":"11.8.0","description":"A Node.js client for ScopeDB","directories":{},"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.32.1","devDependencies":{"typescript":"^5.8.2","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/scopedb_0.1.1_1785940757995_0.10059334376781504","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"scopedb","version":"0.2.0","keywords":["scopedb","scopeql","database","analytics","observability","typescript","nextjs","bun","serverless"],"license":"Apache-2.0","_id":"scopedb@0.2.0","maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"},{"name":"leiysky","email":"leiysky@outlook.com"}],"homepage":"https://docs.scopedb.io/developer/nodejs","bugs":{"url":"https://github.com/scopedb/scopedb-js/issues"},"dist":{"shasum":"b3c4ed07ff08611ef45692c7bcb1df5567b35c11","tarball":"https://registry.npmjs.org/scopedb/-/scopedb-0.2.0.tgz","fileCount":57,"integrity":"sha512-i3k2d02/rz+KBqVwu6hFol8GyXt0UOnwByRiRCgPFEEjxjEGi0K4vCL6owcB7P08e7FiMjwKnxX3woJLFeaY5Q==","signatures":[{"sig":"MEQCIHyblh3fwV1u3YmJO1dBc3aDzByw9oyfqtJmNuNbeUXpAiAtT6rSLO4KU0oTvcg0Q32mlUQgnSo7gnW8D3b/mSfttA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":330718},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"c6b8dac262cd9fd95260f11440323eb74265599c","scripts":{"test":"tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js","build":"pnpm run clean:dist && tsc -p tsconfig.json","check":"pnpm run build && pnpm run check:examples:built","example":"pnpm run build:examples && node scripts/run-example.mjs","prepack":"pnpm run test && pnpm run check","clean:dist":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"","example:list":"node scripts/run-example.mjs --list","check:package":"node scripts/check-package.mjs","smoke:runtime":"pnpm run build && node scripts/smoke-runtime.mjs","build:examples":"pnpm run build && pnpm run clean:examples && tsc -p tsconfig.examples.json","check:examples":"pnpm run build && pnpm run check:examples:built","clean:examples":"node -e \"require('node:fs').rmSync('dist-test/examples-build', { recursive: true, force: true })\"","example:append":"pnpm run example -- append","example:catalog":"pnpm run example -- catalog","example:statement":"pnpm run example -- statement","smoke:web-runtime":"pnpm run build && node scripts/smoke-runtime.mjs --without-buffer","example:append-bulk":"pnpm run example -- append-bulk","check:examples:built":"tsc -p tsconfig.examples.json --noEmit && pnpm run check:package","example:append-stream":"pnpm run example -- append-stream","example:append-telemetry":"pnpm run example -- append-telemetry","example:ingest-transform":"pnpm run example -- ingest-transform"},"_npmUser":{"name":"leiysky","email":"leiysky@outlook.com"},"repository":{"url":"git+https://github.com/scopedb/scopedb-js.git","type":"git"},"_npmVersion":"11.8.0","description":"A TypeScript-first ScopeDB client for server-side JavaScript runtimes","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.32.1","devDependencies":{"typescript":"^5.8.2","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/scopedb_0.2.0_1785993907242_0.5011370558237234","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"scopedb","version":"0.2.1","keywords":["scopedb","scopeql","database","analytics","observability","typescript","nextjs","bun","serverless"],"license":"Apache-2.0","_id":"scopedb@0.2.1","maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"},{"name":"leiysky","email":"leiysky@outlook.com"}],"homepage":"https://docs.scopedb.io/developer/nodejs","bugs":{"url":"https://github.com/scopedb/scopedb-js/issues"},"dist":{"shasum":"e3928fe73ef4419d2420f40ccb09f4a9fe95a5da","tarball":"https://registry.npmjs.org/scopedb/-/scopedb-0.2.1.tgz","fileCount":57,"integrity":"sha512-GUBIVbBvA8nK0hPekkr+LEqgnPCmoxIvZ+BTbnEaIqgDWcZt5pZujuhw0s5KmXZanE1n4xsPU+NUKmrOdvCIjQ==","signatures":[{"sig":"MEYCIQDXhuaCMowo4qy0js+zBKm+11QbAem7Dc0lL+DH7VMVzAIhAIeBLgJ71UfVpReInRfAO5/EZElB22F3jLrmNUv/zEq9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":334595},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"bc1a6b6c39f08bf97ab500df20a4e5e78b9ceb68","scripts":{"test":"tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js","build":"pnpm run clean:dist && tsc -p tsconfig.json","check":"pnpm run build && pnpm run check:examples:built","example":"pnpm run build:examples && node scripts/run-example.mjs","prepack":"pnpm run test && pnpm run check","clean:dist":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"","example:list":"node scripts/run-example.mjs --list","check:package":"node scripts/check-package.mjs","smoke:runtime":"pnpm run build && node scripts/smoke-runtime.mjs","build:examples":"pnpm run build && pnpm run clean:examples && tsc -p tsconfig.examples.json","check:examples":"pnpm run build && pnpm run check:examples:built","clean:examples":"node -e \"require('node:fs').rmSync('dist-test/examples-build', { recursive: true, force: true })\"","example:append":"pnpm run example -- append","example:catalog":"pnpm run example -- catalog","example:statement":"pnpm run example -- statement","smoke:web-runtime":"pnpm run build && node scripts/smoke-runtime.mjs --without-buffer","example:append-bulk":"pnpm run example -- append-bulk","check:examples:built":"tsc -p tsconfig.examples.json --noEmit && pnpm run check:package","example:append-stream":"pnpm run example -- append-stream","example:append-telemetry":"pnpm run example -- append-telemetry","example:ingest-transform":"pnpm run example -- ingest-transform"},"_npmUser":{"name":"leiysky","email":"leiysky@outlook.com"},"repository":{"url":"git+https://github.com/scopedb/scopedb-js.git","type":"git"},"_npmVersion":"11.8.0","description":"A TypeScript-first ScopeDB client for server-side JavaScript runtimes","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.32.1","devDependencies":{"typescript":"^5.8.2","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/scopedb_0.2.1_1787161035007_0.6030427015680857","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"scopedb","version":"0.2.2","keywords":["scopedb","scopeql","database","analytics","observability","typescript","nextjs","bun","serverless"],"license":"Apache-2.0","_id":"scopedb@0.2.2","maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"},{"name":"leiysky","email":"leiysky@outlook.com"}],"homepage":"https://docs.scopedb.io/developer/nodejs","bugs":{"url":"https://github.com/scopedb/scopedb-js/issues"},"dist":{"shasum":"9f6753685c8c38cd8224350ed062f4258dcf51b0","tarball":"https://registry.npmjs.org/scopedb/-/scopedb-0.2.2.tgz","fileCount":57,"integrity":"sha512-2+7kb2VCQ+73/7BGRH7+ei6DLfKAdU5KsEAyaDx9U9KT3CLpgy9XXQHD9crnE3U1T+TiAYg9eQ9UbITdn90QPQ==","signatures":[{"sig":"MEUCIQDxCglxdIwv25myo7SC/JgFCx4qaFJ1ov3butROglRRPAIgYBGhasqJkgNryx7NFHwPbvQXLA/REljOzD2yg4vIZTQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":334733},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"e4ecc88798b5bef6ef95d866fa794b3f3e0256bf","scripts":{"test":"tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js","build":"pnpm run clean:dist && tsc -p tsconfig.json","check":"pnpm run build && pnpm run check:examples:built","example":"pnpm run build:examples && node scripts/run-example.mjs","prepack":"pnpm run test && pnpm run check","clean:dist":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"","example:list":"node scripts/run-example.mjs --list","check:package":"node scripts/check-package.mjs","smoke:runtime":"pnpm run build && node scripts/smoke-runtime.mjs","build:examples":"pnpm run build && pnpm run clean:examples && tsc -p tsconfig.examples.json","check:examples":"pnpm run build && pnpm run check:examples:built","clean:examples":"node -e \"require('node:fs').rmSync('dist-test/examples-build', { recursive: true, force: true })\"","example:append":"pnpm run example -- append","example:catalog":"pnpm run example -- catalog","example:statement":"pnpm run example -- statement","smoke:web-runtime":"pnpm run build && node scripts/smoke-runtime.mjs --without-buffer","example:append-bulk":"pnpm run example -- append-bulk","check:examples:built":"tsc -p tsconfig.examples.json --noEmit && pnpm run check:package","example:append-stream":"pnpm run example -- append-stream","example:append-telemetry":"pnpm run example -- append-telemetry","example:ingest-transform":"pnpm run example -- ingest-transform"},"_npmUser":{"name":"leiysky","email":"leiysky@outlook.com"},"repository":{"url":"git+https://github.com/scopedb/scopedb-js.git","type":"git"},"_npmVersion":"11.8.0","description":"A TypeScript-first ScopeDB client for server-side JavaScript runtimes","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.32.1","devDependencies":{"typescript":"^5.8.2","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/scopedb_0.2.2_1787338714671_0.8269893866915452","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"scopedb","version":"0.3.0","keywords":["scopedb","scopeql","database","analytics","sdk","javascript","typescript","nodejs","nextjs","bun","serverless"],"license":"Apache-2.0","_id":"scopedb@0.3.0","maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"},{"name":"leiysky","email":"leiysky@outlook.com"}],"homepage":"https://www.scopedb.io","bugs":{"url":"https://github.com/scopedb/scopedb-js/issues"},"dist":{"shasum":"66fafbf939f7b18966c8c44db85a30b64fe140e6","tarball":"https://registry.npmjs.org/scopedb/-/scopedb-0.3.0.tgz","fileCount":60,"integrity":"sha512-8F/hO8Ks8HWIVcVQAzkAQzOUSVmdNaHzmVm4oxjIcKAFVGqiIY/llLhQr0DWEecF8xmOgCokwTKcUsqNLOOFIA==","signatures":[{"sig":"MEYCIQCcK9pzHPuWYZHv98xU43PIU5Xh6V01g2acPh2WrPbF1gIhAOPA3lieIxAfbt1pxT6YrG3afNp0GLSqUhxzUT7C8YD4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIEZ5hY3B5qqIq2Q/N6nUbl0uiLBK6kVggRgG4qwPcWH7AiEA7OiIQb/y6ucYhnHVvXHhb4OpjuuNmxLUXRFIwW+Tg1A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/scopedb@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":364024},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"b12e614b340e4ba62cc3e1780d368c6360697ac8","scripts":{"test":"tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js","build":"pnpm run clean:dist && tsc -p tsconfig.json","check":"pnpm run build && pnpm run check:examples:built","example":"pnpm run build:examples && node scripts/run-example.mjs","prepack":"pnpm run test && pnpm run check","clean:dist":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"","example:list":"node scripts/run-example.mjs --list","check:package":"node scripts/check-package.mjs","smoke:runtime":"pnpm run build && node scripts/smoke-runtime.mjs","build:examples":"pnpm run build && pnpm run clean:examples && tsc -p tsconfig.examples.json","check:examples":"pnpm run build && pnpm run check:examples:built","clean:examples":"node -e \"require('node:fs').rmSync('dist-test/examples-build', { recursive: true, force: true })\"","example:append":"pnpm run example -- append","example:catalog":"pnpm run example -- catalog","smoke:frameworks":"pnpm run build && node scripts/smoke-framework-consumers.mjs","test:integration":"tsc -p tsconfig.test.json && node --test --test-concurrency=1 dist-test/tests/native-06.test.js dist-test/tests/native-06-encoding.test.js","example:statement":"pnpm run example -- statement","smoke:web-runtime":"pnpm run build && node scripts/smoke-runtime.mjs --without-buffer","example:append-bulk":"pnpm run example -- append-bulk","check:examples:built":"tsc -p tsconfig.examples.json --noEmit && pnpm run check:package","example:append-stream":"pnpm run example -- append-stream","example:import-ndjson":"pnpm run example -- import-ndjson","example:append-telemetry":"pnpm run example -- append-telemetry"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"e64c5f30-ad7c-4ca6-bcd9-23caaf0d809b"}},"repository":{"url":"git+https://github.com/scopedb/scopedb-js.git","type":"git"},"_npmVersion":"12.2.1","description":"The official server-side JavaScript client for ScopeDB, with TypeScript support","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.32.1","devDependencies":{"typescript":"^5.8.2","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/scopedb_0.3.0_1792770296441_0.3117634782599521","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"_id":"scopedb@0.4.0","bugs":{"url":"https://github.com/scopedb/scopedb-js/issues"},"dist":{"shasum":"c98f3d96015e6e8018bc25c647cd60bfbf951c15","tarball":"https://registry.npmjs.org/scopedb/-/scopedb-0.4.0.tgz","fileCount":77,"integrity":"sha512-kkQWYZeA0Sg3P0BT4FyFAcHjRoGKWAM7TM44U0VH+2sLtu7fQWEdCSSEhLjvI1dT2dUEe2fp5CvK+8YFmlvp4A==","signatures":[{"sig":"MEQCIC1YFfpNPZ1rpEVip0TYsEQLSqDrT0LrGHIAYeY09FGuAiAGCOdpCc6OwX/ZVJLBbo9eF1Z9rOkshZn3YfMTI2iDZw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD/1s4xPQfe3qr7cpDgEUYMk5MiTu/21PzdH7D1WeOQ2gIgYJwFzrW7K7gvlkJk9hyZQ2Lq3HkhBAjzVYzez5AutbM="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/scopedb@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":531632},"main":"./dist/index.js","name":"scopedb","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"d3bf7e440ad7d299b4da4d891d66311521feab25","license":"Apache-2.0","scripts":{"ci":"pnpm test && pnpm run check","test":"node -e \"require('node:fs').rmSync('dist-test', { recursive: true, force: true })\" && tsc -p tsconfig.test.json && node --test dist-test/tests/*.test.js","build":"pnpm run clean:dist && tsc -p tsconfig.json","check":"pnpm run build && pnpm run check:examples:built && pnpm run check:types && pnpm run lint:package","example":"pnpm run build:examples && node scripts/run-example.mjs","prepack":"pnpm run ci","clean:dist":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"","check:types":"tsc -p tests/consumers/types/tsconfig.node.json && tsc -p tests/consumers/types/tsconfig.web.json","example:list":"node scripts/run-example.mjs --list","lint:package":"publint --strict","check:package":"node scripts/smoke-runtime.mjs","smoke:runtime":"pnpm run build && node scripts/smoke-runtime.mjs","build:examples":"pnpm run build && pnpm run clean:examples && tsc -p tsconfig.examples.json","check:examples":"pnpm run build && pnpm run check:examples:built","clean:examples":"node -e \"require('node:fs').rmSync('dist-test/examples-build', { recursive: true, force: true })\"","example:append":"pnpm run example -- append","example:catalog":"pnpm run example -- catalog","smoke:frameworks":"pnpm run build && node scripts/smoke-framework-consumers.mjs","test:integration":"node -e \"require('node:fs').rmSync('dist-test', { recursive: true, force: true })\" && tsc -p tsconfig.test.json && node --test --test-concurrency=1 dist-test/tests/live.test.js","example:statement":"pnpm run example -- statement","example:append-bulk":"pnpm run example -- append-bulk","check:examples:built":"tsc -p tsconfig.examples.json --noEmit && pnpm run check:package","example:append-stream":"pnpm run example -- append-stream","example:import-ndjson":"pnpm run example -- import-ndjson","example:append-telemetry":"pnpm run example -- append-telemetry"},"version":"0.4.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"e64c5f30-ad7c-4ca6-bcd9-23caaf0d809b"}},"homepage":"https://www.scopedb.io","keywords":["scopedb","scopeql","database","analytics","sdk","javascript","typescript","nodejs","nextjs","bun","serverless"],"repository":{"url":"git+https://github.com/scopedb/scopedb-js.git","type":"git"},"_npmVersion":"12.2.1","description":"The official server-side JavaScript client for ScopeDB, with TypeScript support","directories":{},"maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"},{"name":"leiysky","email":"leiysky@outlook.com"}],"sideEffects":false,"_nodeVersion":"24.22.1","_hasShrinkwrap":false,"packageManager":"pnpm@10.32.1","devDependencies":{"publint":"0.3.25","typescript":"^5.8.2","@types/node":"^25.5.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/scopedb_0.4.0_1793625005491_0.7772314111903698"}}},"time":{"created":"2026-03-15T16:54:00.772Z","modified":"2026-11-02T13:10:06.066Z","0.0.1":"2026-03-15T16:54:01.015Z","0.0.2":"2026-05-24T07:59:35.203Z","0.0.3":"2026-07-15T14:04:44.794Z","0.1.0":"2026-08-05T09:33:02.629Z","0.1.1":"2026-08-05T14:39:18.146Z","0.2.0":"2026-08-06T05:25:07.384Z","0.2.1":"2026-08-19T17:37:15.154Z","0.2.2":"2026-08-21T18:58:34.839Z","0.3.0":"2026-10-23T15:44:56.536Z","0.4.0":"2026-11-02T13:10:05.686Z"},"bugs":{"url":"https://github.com/scopedb/scopedb-js/issues"},"license":"Apache-2.0","homepage":"https://www.scopedb.io","keywords":["scopedb","scopeql","database","analytics","sdk","javascript","typescript","nodejs","nextjs","bun","serverless"],"repository":{"url":"git+https://github.com/scopedb/scopedb-js.git","type":"git"},"description":"The official server-side JavaScript client for ScopeDB, with TypeScript support","maintainers":[{"name":"tisonkun","email":"wander4096@gmail.com"},{"name":"leiysky","email":"leiysky@outlook.com"}],"readme":"# ScopeDB SDK for JavaScript and TypeScript\n\n[![Version](https://img.shields.io/npm/v/scopedb)](https://www.npmjs.com/package/scopedb) [![Docs](https://img.shields.io/badge/docs-scopedb.io-blue)](https://www.scopedb.io/docs/developer/nodejs) [![CI](https://img.shields.io/github/actions/workflow/status/scopedb/scopedb-js/ci.yml?branch=main&label=CI)](https://github.com/scopedb/scopedb-js/actions/workflows/ci.yml) [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://www.apache.org/licenses/LICENSE-2.0)\n\nThe official JavaScript and TypeScript SDK for [ScopeDB](https://www.scopedb.io). Query event data, ingest records in batches, and manage table definitions from your server application.\n\nStart with one `Client`: `query()` returns JavaScript values, `table()` selects a write destination, and `catalog()` manages database resources. Streams handle batching, backpressure, and safe retries; statement handles let you follow long-running queries.\n\n## Install\n\nRequires Node.js 20 or later, or a supported server runtime such as Bun, Next.js server code, or Cloudflare Workers. The package is ESM-only, includes TypeScript declarations, and has no runtime dependencies. Keep API keys in trusted server-side code, outside browser bundles and Next.js Client Components.\n\n```sh\nnpm install scopedb\n# or: pnpm add scopedb\n# or: bun add scopedb\n```\n\n## Run a query\n\nSet `SCOPEDB_ENDPOINT` and `SCOPEDB_API_KEY` using the [connection guide](https://www.scopedb.io/docs/guides/connect-to-scopedb). Save this program as `connect.mjs` and run `node connect.mjs`:\n\n```js\nimport { Client } from \"scopedb\";\n\nconst endpoint = process.env.SCOPEDB_ENDPOINT;\nconst apiKey = process.env.SCOPEDB_API_KEY;\nif (!endpoint || !apiKey) {\n  throw new Error(\"Set SCOPEDB_ENDPOINT and SCOPEDB_API_KEY.\");\n}\n\nconst client = new Client(endpoint, { apiKey });\nconst result = await client.query(\"SELECT 1 AS ready\");\nconsole.log(result.toObjects());\n```\n\n`query()` waits for the result. `toObjects()` returns rows keyed by column name; integer cells default to `bigint`. See [Read query results](docs/usage.md#read-query-results) for JSON-safe output and timestamp precision.\n\n## Write rows\n\nUsing the client above and an existing `events` table with `id int` and `name string` columns:\n\n```js\nconst stream = client.table(\"events\").appendStream().build();\nawait stream.send({ id: 1, name: \"page_view\" });\n\nconst result = await stream.shutdown();\nconsole.log(\"Written rows:\", result?.num_rows_inserted ?? 0);\n```\n\n`send()` queues a row in memory; `shutdown()` waits for pending writes and closes the stream. Use `flush()` to wait while keeping it open. If you already have NDJSON, use [`table.append()`](docs/usage.md#append-an-ndjson-string).\n\n## Find what you need\n\n| Task                         | Documentation                                                           |\n| ---------------------------- | ----------------------------------------------------------------------- |\n| Configure a connection       | [Connection options](docs/usage.md#connect-to-scopedb)                  |\n| Read query results           | [Result conversion](docs/usage.md#read-query-results)                   |\n| Track or cancel a query      | [Statement handles](docs/usage.md#track-or-cancel-a-query)              |\n| Read or change table schemas | [Catalog](docs/usage.md#read-or-change-table-schemas)                   |\n| Encode rows for Append       | [JSON encodings](docs/usage.md#json-encoding-for-append)                |\n| Tune batching and retries    | [Append streams](docs/usage.md#append-rows)                             |\n| Write logs or telemetry      | [Telemetry](docs/usage.md#long-lived-telemetry-and-rate-limiting)       |\n| Set timeouts or HTTP options | [Client configuration](docs/usage.md#timeouts-and-http-options)         |\n| Inspect a failure            | [Errors](docs/usage.md#errors)                                          |\n| Use Next.js, Workers, or Bun | [Runtime templates](examples/README.md#framework-and-runtime-templates) |\n| Load from CommonJS           | [Dynamic import](docs/usage.md#commonjs-applications)                   |\n\nFor complete programs, see the [examples](examples/README.md). For ScopeQL syntax, see the [query guide](https://www.scopedb.io/docs/guides/query-events) and [language reference](https://www.scopedb.io/docs/reference). The [SDK guide](https://www.scopedb.io/docs/developer/nodejs) and [changelog](CHANGELOG.md) provide additional context.\n\nFor version upgrades, see the [release notes and migration guides](CHANGELOG.md).\n\nReport problems through [GitHub issues](https://github.com/scopedb/scopedb-js/issues). To work on the SDK itself, see [Contributing](CONTRIBUTING.md).\n\n## License\n\nLicensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).\n","readmeFilename":"README.md"}