├── .eslintrc ├── .github └── workflows │ ├── ci.yml │ └── publish.yml ├── .gitignore ├── .husky ├── commit-msg ├── pre-commit └── pre-push ├── .prettierignore ├── .prettierrc ├── LICENSE ├── README.md ├── jest.config.mjs ├── package.json ├── src ├── behaviors │ ├── data.test.ts │ ├── data.ts │ ├── history.test.ts │ ├── history.ts │ ├── mod.ts │ ├── with_subscription.test.ts │ └── with_subscription.ts ├── main.ts ├── messaging │ ├── broadcast_channel.ts │ ├── event_bus.test.ts │ ├── event_bus.ts │ ├── instance_id.test.ts │ ├── instance_id.ts │ ├── mod.ts │ ├── pub_sub.test.ts │ ├── pub_sub.ts │ ├── websocket.test.ts │ └── websocket.ts ├── subscriptions │ ├── bucket_map.test.ts │ ├── bucket_map.ts │ ├── events.test.ts │ ├── events.ts │ ├── mod.ts │ ├── subscribers.test.ts │ ├── subscribers.ts │ ├── wildcard.test.ts │ └── wildcard.ts └── utils │ ├── event_creator.test.ts │ ├── event_creator.ts │ ├── from_actor.test.ts │ ├── from_actor.ts │ ├── from_machine.test.ts │ ├── from_machine.ts │ ├── is_event.test.ts │ ├── is_event.ts │ └── mod.ts ├── tsconfig.cjs.json └── tsconfig.json /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | dist 4 | cjs 5 | *.tgz -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/.husky/pre-push -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | cjs 4 | coverage -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/jest.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/package.json -------------------------------------------------------------------------------- /src/behaviors/data.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/behaviors/data.test.ts -------------------------------------------------------------------------------- /src/behaviors/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/behaviors/data.ts -------------------------------------------------------------------------------- /src/behaviors/history.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/behaviors/history.test.ts -------------------------------------------------------------------------------- /src/behaviors/history.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/behaviors/history.ts -------------------------------------------------------------------------------- /src/behaviors/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/behaviors/mod.ts -------------------------------------------------------------------------------- /src/behaviors/with_subscription.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/behaviors/with_subscription.test.ts -------------------------------------------------------------------------------- /src/behaviors/with_subscription.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/behaviors/with_subscription.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/messaging/broadcast_channel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/messaging/broadcast_channel.ts -------------------------------------------------------------------------------- /src/messaging/event_bus.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/messaging/event_bus.test.ts -------------------------------------------------------------------------------- /src/messaging/event_bus.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/messaging/event_bus.ts -------------------------------------------------------------------------------- /src/messaging/instance_id.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/messaging/instance_id.test.ts -------------------------------------------------------------------------------- /src/messaging/instance_id.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/messaging/instance_id.ts -------------------------------------------------------------------------------- /src/messaging/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/messaging/mod.ts -------------------------------------------------------------------------------- /src/messaging/pub_sub.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/messaging/pub_sub.test.ts -------------------------------------------------------------------------------- /src/messaging/pub_sub.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/messaging/pub_sub.ts -------------------------------------------------------------------------------- /src/messaging/websocket.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/messaging/websocket.test.ts -------------------------------------------------------------------------------- /src/messaging/websocket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/messaging/websocket.ts -------------------------------------------------------------------------------- /src/subscriptions/bucket_map.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/subscriptions/bucket_map.test.ts -------------------------------------------------------------------------------- /src/subscriptions/bucket_map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/subscriptions/bucket_map.ts -------------------------------------------------------------------------------- /src/subscriptions/events.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/subscriptions/events.test.ts -------------------------------------------------------------------------------- /src/subscriptions/events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/subscriptions/events.ts -------------------------------------------------------------------------------- /src/subscriptions/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/subscriptions/mod.ts -------------------------------------------------------------------------------- /src/subscriptions/subscribers.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/subscriptions/subscribers.test.ts -------------------------------------------------------------------------------- /src/subscriptions/subscribers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/subscriptions/subscribers.ts -------------------------------------------------------------------------------- /src/subscriptions/wildcard.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/subscriptions/wildcard.test.ts -------------------------------------------------------------------------------- /src/subscriptions/wildcard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/subscriptions/wildcard.ts -------------------------------------------------------------------------------- /src/utils/event_creator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/utils/event_creator.test.ts -------------------------------------------------------------------------------- /src/utils/event_creator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/utils/event_creator.ts -------------------------------------------------------------------------------- /src/utils/from_actor.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/utils/from_actor.test.ts -------------------------------------------------------------------------------- /src/utils/from_actor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/utils/from_actor.ts -------------------------------------------------------------------------------- /src/utils/from_machine.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/utils/from_machine.test.ts -------------------------------------------------------------------------------- /src/utils/from_machine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/utils/from_machine.ts -------------------------------------------------------------------------------- /src/utils/is_event.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/utils/is_event.test.ts -------------------------------------------------------------------------------- /src/utils/is_event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/utils/is_event.ts -------------------------------------------------------------------------------- /src/utils/mod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/src/utils/mod.ts -------------------------------------------------------------------------------- /tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/tsconfig.cjs.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/christoph-fricke/xsystem/HEAD/tsconfig.json --------------------------------------------------------------------------------