{"_id":"@buzzie-ai/core","_rev":"2-b63665e6a00b2efa01ae2e7d382fcb75","name":"@buzzie-ai/core","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@buzzie-ai/core","version":"0.1.0","license":"MIT","_id":"@buzzie-ai/core@0.1.0","maintainers":[{"name":"buzzie","email":"arvind.raj.naidu@gmail.com"}],"dist":{"shasum":"20e4bbf3e4183ffb7eb4ccac6f191690a8b3e512","tarball":"https://registry.npmjs.org/@buzzie-ai/core/-/core-0.1.0.tgz","fileCount":8,"integrity":"sha512-Lh2RQGl1lhX4Ftfx/c7OW6ntd6SFuNtVRzLBy6bwFaDGAuY4xSgFP/Z0IFPQjJjQhvd7N7BPNErhGSByhadXog==","signatures":[{"sig":"MEQCIDk1udbhJNxIzQhzo7WSEdgELt+Mr3VE1Tby1xnD6X2gAiBvSfVaHj7UwzTS7EdirBZc2bbu3IaP0GADvKagTs5Y5Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18079},"main":"src/index.js","type":"module","exports":{".":"./src/index.js"},"gitHead":"642ec8588e34aa80a9b16e23a8dcaf091663257a","_npmUser":{"name":"buzzie","email":"arvind.raj.naidu@gmail.com"},"_npmVersion":"10.9.4","description":"Bidirectional channel protocol for messaging bots","directories":{},"_nodeVersion":"22.22.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1774363632962_0.7582957627838764","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@buzzie-ai/core","version":"0.2.0","description":"Bidirectional channel protocol for messaging bots","type":"module","main":"src/index.js","exports":{".":"./src/index.js"},"publishConfig":{"access":"public"},"license":"MIT","_id":"@buzzie-ai/core@0.2.0","gitHead":"9f90ff1dab41a7d65560bc2307d3098ceed19425","_nodeVersion":"22.22.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-5Kd+nWWpWKOF0QqLmBjjvyGzdMz66/2UpxG3ecPWEstzoNtSdhpzyfuLet7W1gLTrnU+a4NF34rXl5CvDMf3Zw==","shasum":"e4c1ed0ef6098208615b64a90fd018af0786169b","tarball":"https://registry.npmjs.org/@buzzie-ai/core/-/core-0.2.0.tgz","fileCount":8,"unpackedSize":18382,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDFlr1qMURujiA/PXPpTrLez0EnTyM502h/Dscv0aB9sAIgNtViLowRqXP2/vSVsE/xOOzw054N4Gm6DL5O13Xzheg="}]},"_npmUser":{"name":"buzzie","email":"arvind.raj.naidu@gmail.com"},"directories":{},"maintainers":[{"name":"buzzie","email":"arvind.raj.naidu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.2.0_1774463526098_0.8529395916130513"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-24T14:47:12.888Z","modified":"2026-03-25T18:32:06.356Z","0.1.0":"2026-03-24T14:47:13.109Z","0.2.0":"2026-03-25T18:32:06.232Z"},"license":"MIT","description":"Bidirectional channel protocol for messaging bots","maintainers":[{"name":"buzzie","email":"arvind.raj.naidu@gmail.com"}],"readme":"# @buzzie-ai/core\n\nBidirectional channel protocol for messaging bots. Core defines how channels and backends communicate — it has no opinions about business logic.\n\n## Install\n\n```bash\nnpm install @buzzie-ai/core\n```\n\n## Usage\n\n```js\nimport { createDispatcher, createApiServer, ActionTypes } from \"@buzzie-ai/core\";\n\n// Inbound: channel receives message → dispatch to backend\nconst dispatcher = createDispatcher({\n  backend: { type: \"http\", url: \"https://my-app.com/api/chat\" },\n  builtinHandler: async (envelope) => ({ text: \"Hello!\" }),\n});\n\nconst response = await dispatcher.dispatch({\n  type: \"self_chat\",\n  jid: \"123@s.whatsapp.net\",\n  text: \"Hi there\",\n});\n\n// Outbound: backend pushes message → channel delivers\nconst api = createApiServer(myAdapter, { token: \"secret\" });\nawait api.start(3100);\n// POST http://localhost:3100/send { chatId, text }\n```\n\n## Components\n\n- **types.js** — `MessageTypes`, `ActionTypes`\n- **dispatcher.js** — `createDispatcher(config)` routes envelopes to builtin or HTTP backends\n- **api-server.js** — `createApiServer(adapter, opts)` HTTP server for push messaging\n- **adapter.js** — `ChannelAdapter` interface that channels implement\n","readmeFilename":"README.md"}