{"_id":"@codeforbreakfast/eventsourcing-server","_rev":"3-d9ed777c5288f90076b6bd2793292129","name":"@codeforbreakfast/eventsourcing-server","dist-tags":{"latest":"0.2.3"},"versions":{"0.2.1":{"name":"@codeforbreakfast/eventsourcing-server","version":"0.2.1","keywords":["event-sourcing","event-store","cqrs","effect","effect-ts","functional-programming","fp","typescript","type-safe","server-side","event-bus","domain-driven-design","ddd","composable","resilient"],"author":{"name":"Code for Breakfast"},"license":"MIT","_id":"@codeforbreakfast/eventsourcing-server@0.2.1","maintainers":[{"name":"graemef","email":"graemef@gmail.com"}],"homepage":"https://github.com/codeforbreakfast/eventsourcing#readme","bugs":{"url":"https://github.com/codeforbreakfast/eventsourcing/issues"},"dist":{"shasum":"d2955263b393d2891008711c225dec571da175df","tarball":"https://registry.npmjs.org/@codeforbreakfast/eventsourcing-server/-/eventsourcing-server-0.2.1.tgz","fileCount":10,"integrity":"sha512-kgqiGi2I5AC+UMGIUwqkkzX/bnafEjacMhLhq1ac41vGDuwjR9grUBgXiuT6Sa41hK/iOkVNfkLiPb2NltYAtw==","signatures":[{"sig":"MEUCIANfA7hOmBCLAB06HuZy2fIQvqsKFAmQQHtwZw1q5zJ3AiEAmLDENaAw0H2+U/WYF/Fsg3FbJzXDXpRmEtkmBpMha0M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":31800},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"ddd4e26bd3ae5c5bc48b3dc81ddf336a9ce7d95a","scripts":{"lint":"eslint . --ext .ts,.tsx","test":"bun test","build":"bun build ./src/index.ts --outdir ./dist --target node --format esm --external effect --external @effect/* --external @codeforbreakfast/* && bun x tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"bun test --watch","validate:pack":"bun pm pack --dry-run","publish:package":"npm publish --access public","check:publishable":"npm view $npm_package_name@$npm_package_version version >/dev/null 2>&1 && exit 1 || exit 0"},"_npmUser":{"name":"graemef","email":"graemef@gmail.com"},"repository":{"url":"git+https://github.com/CodeForBreakfast/eventsourcing.git","type":"git","directory":"packages/eventsourcing-server"},"_npmVersion":"11.6.2","description":"Server-side building blocks for event sourcing applications","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","dependencies":{"@codeforbreakfast/eventsourcing-store":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"effect":"3.18.4","eslint":"9.39.1","typescript":"5.9.3","@types/node":"24.10.0","@codeforbreakfast/buntest":"workspace:*","@codeforbreakfast/eventsourcing-store-inmemory":"workspace:*","@codeforbreakfast/eventsourcing-testing-contracts":"workspace:*"},"peerDependencies":{"effect":"^3.17.0"},"_npmOperationalInternal":{"tmp":"tmp/eventsourcing-server_0.2.1_1763206395067_0.7020746831098121","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@codeforbreakfast/eventsourcing-server","version":"0.2.2","keywords":["event-sourcing","event-store","cqrs","effect","effect-ts","functional-programming","fp","typescript","type-safe","server-side","event-bus","domain-driven-design","ddd","composable","resilient"],"author":{"name":"Code for Breakfast"},"license":"MIT","_id":"@codeforbreakfast/eventsourcing-server@0.2.2","maintainers":[{"name":"graemef","email":"graemef@gmail.com"}],"homepage":"https://github.com/codeforbreakfast/eventsourcing#readme","bugs":{"url":"https://github.com/codeforbreakfast/eventsourcing/issues"},"dist":{"shasum":"8362310dd3f2c35b759077219967b7605fcf4e35","tarball":"https://registry.npmjs.org/@codeforbreakfast/eventsourcing-server/-/eventsourcing-server-0.2.2.tgz","fileCount":10,"integrity":"sha512-0IEq+XSqU+xv9CVDukmFPr6MHJDuNdlh/kcq0lYVfEKuZ8KKUT6qsk3Nw5MhqxFZ1id+lidgq5P3eXGY1BWLpg==","signatures":[{"sig":"MEUCIQDLYRjC4eCsFZsA94wz6mixGLXYVTgvFxmk9wTHXwRU2wIgX1CzgATShBad/UNM2MEKxbQTe/ftyO4HH9OTkQDabV8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codeforbreakfast%2feventsourcing-server@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31816},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"572968daaa6a79b98fb010df951d5f75bcd7f1c7","scripts":{"lint":"eslint . --ext .ts,.tsx","test":"bun test","build":"bun build ./src/index.ts --outdir ./dist --target node --format esm --external effect --external @effect/* --external @codeforbreakfast/* && bun x tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"bun test --watch","validate:pack":"bun pm pack --dry-run","publish:package":"npm publish --access public","check:publishable":"npm view $npm_package_name@$npm_package_version version >/dev/null 2>&1 && exit 1 || exit 0"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e091aa59-181a-449c-a6f6-d6b9e2cff7b3"}},"repository":{"url":"git+https://github.com/CodeForBreakfast/eventsourcing.git","type":"git","directory":"packages/eventsourcing-server"},"_npmVersion":"11.6.2","description":"Server-side building blocks for event sourcing applications","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","dependencies":{"@codeforbreakfast/eventsourcing-store":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"effect":"3.18.4","eslint":"9.39.1","typescript":"5.9.3","@types/node":"24.10.0","@codeforbreakfast/bun-test-effect":"workspace:*","@codeforbreakfast/eventsourcing-store-inmemory":"workspace:*","@codeforbreakfast/eventsourcing-testing-contracts":"workspace:*"},"peerDependencies":{"effect":"^3.17.0"},"_npmOperationalInternal":{"tmp":"tmp/eventsourcing-server_0.2.2_1764059356633_0.42385820046699196","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@codeforbreakfast/eventsourcing-server","version":"0.2.3","description":"Server-side building blocks for event sourcing applications","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"build":"bun build ./src/index.ts --outdir ./dist --target node --format esm --external effect --external @effect/* --external @codeforbreakfast/* && bun x tsc","test":"bun test","test:watch":"bun test --watch","lint":"eslint . --ext .ts,.tsx","typecheck":"tsc --noEmit","clean":"rm -rf dist","publish:package":"npm publish --access public","validate:pack":"bun pm pack --dry-run","check:publishable":"npm view $npm_package_name@$npm_package_version version >/dev/null 2>&1 && exit 1 || exit 0"},"keywords":["event-sourcing","event-store","cqrs","effect","effect-ts","functional-programming","fp","typescript","type-safe","server-side","event-bus","domain-driven-design","ddd","composable","resilient"],"author":{"name":"Code for Breakfast"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/CodeForBreakfast/eventsourcing.git","directory":"packages/eventsourcing-server"},"bugs":{"url":"https://github.com/codeforbreakfast/eventsourcing/issues"},"homepage":"https://github.com/codeforbreakfast/eventsourcing#readme","peerDependencies":{"effect":"^3.17.0"},"dependencies":{"@codeforbreakfast/eventsourcing-store":"workspace:*"},"devDependencies":{"@types/node":"24.10.0","@codeforbreakfast/eventsourcing-store-inmemory":"workspace:*","@codeforbreakfast/eventsourcing-testing-contracts":"workspace:*","@codeforbreakfast/bun-test-effect":"workspace:*","effect":"3.19.9","typescript":"5.9.3","eslint":"9.39.1"},"publishConfig":{"access":"public"},"sideEffects":false,"engines":{"node":">=18.0.0"},"gitHead":"dc9291553d278cb59572e9fb1569fe0c01194eea","_id":"@codeforbreakfast/eventsourcing-server@0.2.3","_nodeVersion":"20.19.6","_npmVersion":"11.6.2","dist":{"integrity":"sha512-HtDuEjBgLfdhmy3r6dGNk4RG2pK3UIq92bnPBY0PW2n1cFTdidFo7HLrP4idEDMJJPAX4UqvDAmD7IhsE6bPog==","shasum":"f541d652a50e4aca232ba5fcd97f8c36bb23ccdb","tarball":"https://registry.npmjs.org/@codeforbreakfast/eventsourcing-server/-/eventsourcing-server-0.2.3.tgz","fileCount":10,"unpackedSize":31816,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codeforbreakfast%2feventsourcing-server@0.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDvmThf28KW8SkyjBqB8PQciK8Qy0DfbJS3JC7gyqsmWgIgMZoL9U5a1qzre+sZnv+6S8NnNtcFcXghKwnLvSyj1+k="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e091aa59-181a-449c-a6f6-d6b9e2cff7b3"}},"directories":{},"maintainers":[{"name":"graemef","email":"graemef@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eventsourcing-server_0.2.3_1765443327287_0.3327988810695077"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-15T11:33:14.961Z","modified":"2025-12-11T08:55:27.811Z","0.2.1":"2025-11-15T11:33:15.263Z","0.2.2":"2025-11-25T08:29:16.821Z","0.2.3":"2025-12-11T08:55:27.434Z"},"bugs":{"url":"https://github.com/codeforbreakfast/eventsourcing/issues"},"author":{"name":"Code for Breakfast"},"license":"MIT","homepage":"https://github.com/codeforbreakfast/eventsourcing#readme","keywords":["event-sourcing","event-store","cqrs","effect","effect-ts","functional-programming","fp","typescript","type-safe","server-side","event-bus","domain-driven-design","ddd","composable","resilient"],"repository":{"type":"git","url":"git+https://github.com/CodeForBreakfast/eventsourcing.git","directory":"packages/eventsourcing-server"},"description":"Server-side building blocks for event sourcing applications","maintainers":[{"name":"graemef","email":"graemef@gmail.com"}],"readme":"# @codeforbreakfast/eventsourcing-server\n\nServer-side building blocks for event sourcing applications.\n\n## Components\n\n### EventBus\n\nLive cross-stream event distribution for process managers and projections.\n\n**Usage:**\n\n```typescript\nimport { EventBus, EventBusLive } from '@codeforbreakfast/eventsourcing-server';\nimport { encodedEventStore } from '@codeforbreakfast/eventsourcing-store';\n\n// Wrap raw EventStore with schema\nconst typedStore = encodedEventStore(MyEventSchema)(rawStore);\n\n// Create EventBus layer\nconst eventBusLayer = EventBusLive({ store: MyEventStoreTag });\n\n// Subscribe to filtered events\nconst program = Effect.gen(function* () {\n  const eventBus = yield* EventBus;\n\n  const stream = yield* eventBus.subscribe(\n    (event): event is TodoCreated => event._tag === 'TodoCreated'\n  );\n\n  yield* Stream.runForEach(stream, ({ position, event }) =>\n    Console.log(`Event at ${position.streamId}:${position.eventNumber}`, event)\n  );\n});\n```\n\n**Properties:**\n\n- Live-only (no historical events)\n- Best-effort delivery\n- Works across server instances\n- Type-safe filtering\n\n## Future Components\n\n- CommandDispatcher (hp-5)\n- StoreSubscriptionManager (hp-6)\n- ProtocolBridge\n","readmeFilename":"README.md"}