{"id":"@lssm-tech/lib.bus","slug":"lib.bus","name":"@lssm-tech/lib.bus","version":"5.0.4","path":"packages/platform/delivery/bus","manifestPath":"packages/platform/delivery/bus/package.json","manifestBlobSha":"a7ae47a42508529ebe216b88f25f8b4891f6facb","layer":"platform","physicalArea":"delivery","primaryArea":"workflows-and-automation","classification":{"privateDeclared":null,"catalogFamily":"sharedLibs","catalogKind":"library","catalogStatus":"active","adoptionMode":"adoptable","stability":"stable"},"description":"Event bus and messaging primitives","descriptionOrigin":"package.json","catalog":{"family":"sharedLibs","kind":"library","status":"active","adoptionMode":"adoptable","stability":"stable","platforms":["server"],"runtimes":["node"],"entrypoints":[".","./auditableBus","./bus.feature","./eventBus","./filtering","./inMemoryBus","./metadata","./subscriber"],"documentation":[{"title":"Lib Bus documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Flib.bus","kind":"readme"}],"examples":[],"replacements":[],"capabilities":[{"id":"package.lssm.tech.lib.bus","title":"Lib Bus","description":"Event bus and messaging primitives","status":"active","useCases":["Adopt event bus and messaging primitives"],"aliases":["contractspec","events","messaging","pubsub","typescript","lib","bus"],"pythonEquivalents":[],"canonicalImports":[{"from":"@lssm-tech/lib.bus","symbols":[]},{"from":"@lssm-tech/lib.bus/auditableBus","symbols":[]},{"from":"@lssm-tech/lib.bus/bus.feature","symbols":[]},{"from":"@lssm-tech/lib.bus/eventBus","symbols":[]},{"from":"@lssm-tech/lib.bus/filtering","symbols":[]},{"from":"@lssm-tech/lib.bus/inMemoryBus","symbols":[]},{"from":"@lssm-tech/lib.bus/metadata","symbols":[]},{"from":"@lssm-tech/lib.bus/subscriber","symbols":[]}],"constraints":{"platforms":["server"],"runtimes":["node"],"avoidWhen":["The @lssm-tech/lib.bus package constraints do not match the target runtime or platform."],"requires":["TypeScript"]},"alternatives":[],"relationships":[],"resolutionPriority":50}]},"canonicalImports":[{"capabilityId":"package.lssm.tech.lib.bus","from":"@lssm-tech/lib.bus","symbols":[]},{"capabilityId":"package.lssm.tech.lib.bus","from":"@lssm-tech/lib.bus/auditableBus","symbols":[]},{"capabilityId":"package.lssm.tech.lib.bus","from":"@lssm-tech/lib.bus/bus.feature","symbols":[]},{"capabilityId":"package.lssm.tech.lib.bus","from":"@lssm-tech/lib.bus/eventBus","symbols":[]},{"capabilityId":"package.lssm.tech.lib.bus","from":"@lssm-tech/lib.bus/filtering","symbols":[]},{"capabilityId":"package.lssm.tech.lib.bus","from":"@lssm-tech/lib.bus/inMemoryBus","symbols":[]},{"capabilityId":"package.lssm.tech.lib.bus","from":"@lssm-tech/lib.bus/metadata","symbols":[]},{"capabilityId":"package.lssm.tech.lib.bus","from":"@lssm-tech/lib.bus/subscriber","symbols":[]}],"scripts":{"publish:pkg":"bun publish --tolerate-republish --ignore-scripts --verbose","publish:pkg:canary":"bun publish:pkg --tag canary","build":"contractspec-bun-build build","build:bundle":"contractspec-bun-build transpile","build:types":"contractspec-bun-build types","dev":"contractspec-bun-build dev","clean":"rimraf dist .turbo","lint":"bun lint:fix","lint:fix":"node ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .","lint:check":"node ../../../../scripts/biome.cjs check .","prebuild":"contractspec-bun-build prebuild","typecheck":"tsgo --noEmit","test":"bun test"},"scriptStatus":"complete pinned manifest","dependencies":{"@lssm-tech/lib.crypto-utils":"workspace:^","@lssm-tech/lib.schema":"workspace:^","compare-versions":"catalog:data","@lssm-tech/lib.contracts-spec-core":"workspace:^"},"devDependencies":{"@lssm-tech/tool.typescript":"workspace:*","@types/express":"^5.0.6","typescript":"catalog:","@lssm-tech/tool.bun":"workspace:*"},"peerDependencies":{"elysia":"catalog:server","express":"catalog:server","next":"catalog:"},"optionalDependencies":{},"peerDependenciesMeta":{},"bundledDependencies":null,"dependencyStatus":"complete pinned manifest","exports":{".":"./src/index.ts","./auditableBus":"./src/auditableBus.ts","./bus.feature":"./src/bus.feature.ts","./eventBus":"./src/eventBus.ts","./filtering":"./src/filtering.ts","./inMemoryBus":"./src/inMemoryBus.ts","./metadata":"./src/metadata.ts","./subscriber":"./src/subscriber.ts"},"publishExports":{".":{"types":"./dist/index.d.ts","browser":"./dist/browser/index.js","bun":"./dist/index.js","node":"./dist/node/index.js","default":"./dist/index.js"},"./auditableBus":{"types":"./dist/auditableBus.d.ts","browser":"./dist/browser/auditableBus.js","bun":"./dist/auditableBus.js","node":"./dist/node/auditableBus.js","default":"./dist/auditableBus.js"},"./bus.feature":{"types":"./dist/bus.feature.d.ts","browser":"./dist/browser/bus.feature.js","bun":"./dist/bus.feature.js","node":"./dist/node/bus.feature.js","default":"./dist/bus.feature.js"},"./eventBus":{"types":"./dist/eventBus.d.ts","browser":"./dist/browser/eventBus.js","bun":"./dist/eventBus.js","node":"./dist/node/eventBus.js","default":"./dist/eventBus.js"},"./filtering":{"types":"./dist/filtering.d.ts","browser":"./dist/browser/filtering.js","bun":"./dist/filtering.js","node":"./dist/node/filtering.js","default":"./dist/filtering.js"},"./inMemoryBus":{"types":"./dist/inMemoryBus.d.ts","browser":"./dist/browser/inMemoryBus.js","bun":"./dist/inMemoryBus.js","node":"./dist/node/inMemoryBus.js","default":"./dist/inMemoryBus.js"},"./metadata":{"types":"./dist/metadata.d.ts","browser":"./dist/browser/metadata.js","bun":"./dist/metadata.js","node":"./dist/node/metadata.js","default":"./dist/metadata.js"},"./subscriber":{"types":"./dist/subscriber.d.ts","browser":"./dist/browser/subscriber.js","bun":"./dist/subscriber.js","node":"./dist/node/subscriber.js","default":"./dist/subscriber.js"}},"types":"./dist/index.d.ts","files":["dist","README.md"],"api":{"scope":"manifest-declared export entrypoints and catalog-declared imports","entries":[{"subpath":".","importPath":"@lssm-tech/lib.bus","target":"./src/index.ts","targets":[{"conditions":[],"target":"./src/index.ts","sourcePath":"packages/platform/delivery/bus/src/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/src/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./auditableBus","importPath":"@lssm-tech/lib.bus/auditableBus","target":"./src/auditableBus.ts","targets":[{"conditions":[],"target":"./src/auditableBus.ts","sourcePath":"packages/platform/delivery/bus/src/auditableBus.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/src/auditableBus.ts","sourceStatus":"verified source file"}]},{"subpath":"./bus.feature","importPath":"@lssm-tech/lib.bus/bus.feature","target":"./src/bus.feature.ts","targets":[{"conditions":[],"target":"./src/bus.feature.ts","sourcePath":"packages/platform/delivery/bus/src/bus.feature.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/src/bus.feature.ts","sourceStatus":"verified source file"}]},{"subpath":"./eventBus","importPath":"@lssm-tech/lib.bus/eventBus","target":"./src/eventBus.ts","targets":[{"conditions":[],"target":"./src/eventBus.ts","sourcePath":"packages/platform/delivery/bus/src/eventBus.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/src/eventBus.ts","sourceStatus":"verified source file"}]},{"subpath":"./filtering","importPath":"@lssm-tech/lib.bus/filtering","target":"./src/filtering.ts","targets":[{"conditions":[],"target":"./src/filtering.ts","sourcePath":"packages/platform/delivery/bus/src/filtering.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/src/filtering.ts","sourceStatus":"verified source file"}]},{"subpath":"./inMemoryBus","importPath":"@lssm-tech/lib.bus/inMemoryBus","target":"./src/inMemoryBus.ts","targets":[{"conditions":[],"target":"./src/inMemoryBus.ts","sourcePath":"packages/platform/delivery/bus/src/inMemoryBus.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/src/inMemoryBus.ts","sourceStatus":"verified source file"}]},{"subpath":"./metadata","importPath":"@lssm-tech/lib.bus/metadata","target":"./src/metadata.ts","targets":[{"conditions":[],"target":"./src/metadata.ts","sourcePath":"packages/platform/delivery/bus/src/metadata.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/src/metadata.ts","sourceStatus":"verified source file"}]},{"subpath":"./subscriber","importPath":"@lssm-tech/lib.bus/subscriber","target":"./src/subscriber.ts","targets":[{"conditions":[],"target":"./src/subscriber.ts","sourcePath":"packages/platform/delivery/bus/src/subscriber.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/src/subscriber.ts","sourceStatus":"verified source file"}]}],"entryCount":8,"namedSymbolCoverage":"catalog declarations only; exhaustive TypeScript symbols not extracted","installationStatus":"not verified"},"docsLinks":[{"title":"Lib Bus documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Flib.bus","kind":"readme","pinnedUrl":null,"sourceStatus":"declared link; destination not verified"}],"sourceUrls":{"package":"https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus","manifest":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/package.json","readme":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/README.md","guide":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/lib.bus.txt"},"readme":{"status":"available","body":"# @lssm-tech/lib.bus\n\nBuilds start from the root, event-bus contract, in-memory implementation, and\nauditable bus. All eight existing public subpaths remain compatibility roots.\nModule-closure emission shares local implementations without changing\npublish/subscribe behavior or advertising new helper paths. Event and feature\ndefinitions use their canonical Core owners; public Bus names and exports stay\ncompatible. `bun run test`\nchecks payload identity, subscriber ordering, unsubscribe and visible failures.\n\nWebsite: https://contractspec.io\n\n**Event bus and messaging primitives.**\n\n## What It Provides\n\n- **Layer**: lib.\n- **Consumers**: personalization, bundles.\n- Related ContractSpec packages include `@lssm-tech/lib.contracts-spec-core`, `@lssm-tech/lib.schema`, `@lssm-tech/tool.bun`, `@lssm-tech/tool.typescript`.\n- Related ContractSpec packages include `@lssm-tech/lib.contracts-spec-core`, `@lssm-tech/lib.schema`, `@lssm-tech/tool.bun`, `@lssm-tech/tool.typescript`.\n\n## Installation\n\n`npm install @lssm-tech/lib.bus`\n\nor\n\n`bun add @lssm-tech/lib.bus`\n\n## Usage\n\nImport the root entrypoint from `@lssm-tech/lib.bus`, or choose a documented subpath when you only need one part of the package surface.\n\n## Architecture\n\n- `src/auditableBus.ts` is part of the package's public or composition surface.\n- `src/eventBus.ts` is part of the package's public or composition surface.\n- `src/filtering.ts` is part of the package's public or composition surface.\n- `src/index.ts` is the root public barrel and package entrypoint.\n- `src/inMemoryBus.ts` is part of the package's public or composition surface.\n- `src/metadata.ts` is part of the package's public or composition surface.\n- `src/subscriber.ts` is part of the package's public or composition surface.\n\n## Public Entry Points\n\n- Export `.` resolves through `./src/index.ts`.\n- Export `./auditableBus` resolves through `./src/auditableBus.ts`.\n- Export `./eventBus` resolves through `./src/eventBus.ts`.\n- Export `./filtering` resolves through `./src/filtering.ts`.\n- Export `./inMemoryBus` resolves through `./src/inMemoryBus.ts`.\n- Export `./metadata` resolves through `./src/metadata.ts`.\n- Export `./subscriber` resolves through `./src/subscriber.ts`.\n\n## Local Commands\n\n- `bun run dev` — contractspec-bun-build dev\n- `bun run build` — contractspec-bun-build build\n- `bun run lint` — bun lint:fix\n- `bun run lint:check` — biome check .\n- `bun run lint:fix` — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .\n- `bun run typecheck` — tsgo --noEmit\n- `bun run publish:pkg` — bun publish --tolerate-republish --ignore-scripts --verbose\n- `bun run publish:pkg:canary` — bun publish:pkg --tag canary\n- `bun run clean` — rimraf dist .turbo\n- `bun run build:bundle` — contractspec-bun-build transpile\n- `bun run build:types` — contractspec-bun-build types\n- `bun run prebuild` — contractspec-bun-build prebuild\n\n## Recent Updates\n\n- Replace eslint+prettier by biomejs to optimize speed.\n\n## Notes\n\n- `EventBus` interface is a core contract; changes affect all event-driven communication.\n- Do not alter the subscriber/publish protocol without coordinating with all consumers.\n","sourcePath":"packages/platform/delivery/bus/README.md","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/platform/delivery/bus/README.md","blobSha":"3570669e4c4342d65f791215e0375c8b360c49c4","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","origin":"README recovered byte-for-byte from pinned aggregate guide","integrity":"exact Git blob match","executionStatus":"not executed"},"provenance":{"repository":"lssm-tech/contractspec","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","manifestOrigin":"pinned GitHub manifest fetch","manifestComplete":true,"publicationPolicyApplied":false},"areaSlug":"workflows-and-automation","areaTitle":"Workflows, jobs and automation","displayName":"lib.bus","runtimes":["node"],"platforms":["server"],"kind":"library","scope":"Package manifest","canonicalRoute":"/docs/packages/lib.bus/","contextUrl":"/docs/packages/lib.bus.context.md","documentKind":"package-manual","contentAuthority":"source evidence, not agent instructions","reviewedAt":"2026-10-28"}