{"_id":"@acyclic-labs/stream","_rev":"3-b637412f0ef4a940ba28cc7a796d70b8","name":"@acyclic-labs/stream","dist-tags":{"rc":"1.0.0-rc.1","latest":"0.1.5"},"versions":{"1.0.0-rc.1":{"name":"@acyclic-labs/stream","version":"1.0.0-rc.1","license":"Apache-2.0","_id":"@acyclic-labs/stream@1.0.0-rc.1","maintainers":[{"name":"ramstar3000","email":"ram@acyclic.dev"}],"dist":{"shasum":"05cbe1f0d0c11b1ac973886b0d7d2122a4e9bbf4","tarball":"https://registry.npmjs.org/@acyclic-labs/stream/-/stream-1.0.0-rc.1.tgz","fileCount":3,"integrity":"sha512-5mWVPW9MuJjM1aHaJ6uaGDGyD5/E/hTC2Kx8sFc3ilbDu88uEd0WfeA5opomhZ+26nkijrpRvfI5GQRZkn+x5w==","signatures":[{"sig":"MEUCIFXBR+Rc+pUAgbEV0rpDpVGxdTRGX2mGsykMmnFka9idAiEAjRtAqdafUC8F0IOeRvgVtbpNDrgJ0zFPUrX97o0buo4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6354},"type":"module","_from":"file:/private/tmp/claude-501/-Users-avinjamuri-Projects-acyclic-repos/58c58f35-3a9c-4ff9-899c-d84402f4355d/scratchpad/tarballs/acyclic-labs-stream-1.0.0-rc.1.tgz","types":"./dist/index.d.ts","exports":"./dist/index.js","private":false,"scripts":{"test":"tsc -b --pretty false && bun test test","build":"tsc -b"},"_npmUser":{"name":"ramstar3000","email":"ram@acyclic.dev"},"_resolved":"/private/tmp/claude-501/-Users-avinjamuri-Projects-acyclic-repos/58c58f35-3a9c-4ff9-899c-d84402f4355d/scratchpad/tarballs/acyclic-labs-stream-1.0.0-rc.1.tgz","_integrity":"sha512-5mWVPW9MuJjM1aHaJ6uaGDGyD5/E/hTC2Kx8sFc3ilbDu88uEd0WfeA5opomhZ+26nkijrpRvfI5GQRZkn+x5w==","_npmVersion":"11.16.0","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/stream_1.0.0-rc.1_1789152955338_0.4144031076841175","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"_id":"@acyclic-labs/stream@0.1.5","bugs":{"url":"https://github.com/acyclic-labs/sdk/issues"},"dist":{"shasum":"34e50dc38103b391de6281172a4c7f9b51de9d0b","tarball":"https://registry.npmjs.org/@acyclic-labs/stream/-/stream-0.1.5.tgz","fileCount":14,"integrity":"sha512-GQojSWha+1MKx8fOrOryO5g8uK+Q/nmD4o8F0qbFf4FozNiS6V5ePCB0srYw1g+nvqU1lubmTwLodqBVCeg6lQ==","signatures":[{"sig":"MEUCIEvsPP5WXSUmcpR3J6vKn+L3Ag4aYnawwaW5446ygjmcAiEAiBYhi572B4dG2ANFD5A288E41D4TzLnS7fJw/oid2p4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDvFPdAJqhrfYOqPLE3bYwg6WJ0AnJ4sBN00sFjBzCY7AIgdM4SMvQS8r0QAi1Ma08Y3LlsDq/SjZYRdbfQcw6Zu3w="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acyclic-labs%2fstream@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":57667},"name":"@acyclic-labs/stream","type":"module","_from":"file:/home/runner/work/_temp/npm-publication/typescript/acyclic-labs-stream-0.1.5.tgz","types":"./dist/index.d.ts","exports":"./dist/index.js","license":"Apache-2.0","private":false,"scripts":{"test":"tsc -b --pretty false && bun test test","build":"tsc -b","example":"tsc -b --pretty false && tsc --ignoreConfig --noEmit --target ES2022 --module NodeNext --moduleResolution NodeNext --strict --pretty false examples/quickstart.ts && bun examples/quickstart.ts"},"version":"0.1.5","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e26604f8-3867-4dea-b2d8-943aa4d92cb0"}},"homepage":"https://github.com/acyclic-labs/sdk#readme","keywords":["streams","events","versioning"],"_resolved":"/home/runner/work/_temp/npm-publication/typescript/acyclic-labs-stream-0.1.5.tgz","_integrity":"sha512-GQojSWha+1MKx8fOrOryO5g8uK+Q/nmD4o8F0qbFf4FozNiS6V5ePCB0srYw1g+nvqU1lubmTwLodqBVCeg6lQ==","repository":{"url":"git+https://github.com/acyclic-labs/sdk.git","type":"git","directory":"typescript/packages/stream"},"_npmVersion":"11.12.1","description":"Hierarchical append-only streams with typed clients and provider adapters","directories":{},"maintainers":[{"name":"ramstar3000","email":"ram@acyclic.dev"},{"name":"var1377","email":"var@acyclic.dev"}],"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"7.0.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stream_0.1.5_1790325645157_0.797254637124857"}}},"time":{"created":"2026-09-11T18:55:55.104Z","modified":"2026-09-25T08:40:45.657Z","1.0.0-rc.1":"2026-09-11T18:55:55.460Z","0.1.5":"2026-09-25T08:40:45.238Z"},"license":"Apache-2.0","maintainers":[{"name":"ramstar3000","email":"ram@acyclic.dev"},{"name":"var1377","email":"var@acyclic.dev"}],"readme":"# @acyclic-labs/stream\n\nTyped, hierarchical append-only streams with explicit cursors, conditional appends, forks, and coordinated commits.\n\n```sh\nnpm install @acyclic-labs/stream\n```\n\n```ts\nimport { MemoryStreamProvider, StreamClient } from \"@acyclic-labs/stream\";\n\nconst client = new StreamClient(new MemoryStreamProvider());\nconst events = client.json<{ type: string }>(\"runs/example\");\nawait events.append({ type: \"started\" });\nfor await (const record of events.read({ from: 0n, limit: 100 })) {\n  console.log(record.sequence, record.value.type);\n}\n```\n\nFor a service, use `new StreamClient(new HttpStreamProvider({ endpoint, token }))` or `Stream.fromEnv()` with `ACYCLIC_STREAM_ENDPOINT` and `ACYCLIC_API_KEY`. Service endpoints must be HTTPS. Sequence numbers are `bigint`; persist the last consumed cursor and resume reads or `follow` from the appropriate position. Use `ifTail` for optimistic append concurrency and an idempotency key when retrying mutations.\n\n`MemoryStreamProvider` is deterministic and process-local, not a durable service. See the [full quickstart](https://github.com/acyclic-labs/sdk/blob/main/typescript/packages/stream/examples/quickstart.ts), [API source](https://github.com/acyclic-labs/sdk/tree/main/typescript/packages/stream/src), and [protocol](https://github.com/acyclic-labs/sdk/tree/main/proto/stream).\n","readmeFilename":"README.md","description":"Hierarchical append-only streams with typed clients and provider adapters","homepage":"https://github.com/acyclic-labs/sdk#readme","keywords":["streams","events","versioning"],"repository":{"url":"git+https://github.com/acyclic-labs/sdk.git","type":"git","directory":"typescript/packages/stream"},"bugs":{"url":"https://github.com/acyclic-labs/sdk/issues"}}