{"_id":"@anumaan/adbis-live-client","name":"@anumaan/adbis-live-client","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anumaan/adbis-live-client","version":"0.1.0","description":"Tiny browser client for ADBIS live event stream and API ingestion","type":"module","main":"./src/index.js","module":"./src/index.js","types":"./src/index.d.ts","sideEffects":false,"exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","default":"./src/index.js"}},"scripts":{"check":"node --check src/index.js","pack:check":"npm pack --dry-run"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"keywords":["adbis","security","threat-detection","sse","telemetry"],"repository":{"type":"git","url":"git+https://github.com/BhaveshBhardwaj/ADBIS.git","directory":"plugins/adbis-live-client"},"bugs":{"url":"https://github.com/BhaveshBhardwaj/ADBIS/issues"},"homepage":"https://github.com/BhaveshBhardwaj/ADBIS/tree/main/plugins/adbis-live-client","license":"MIT","gitHead":"2b299b239fa06dcee321d35c4509814c70959581","_id":"@anumaan/adbis-live-client@0.1.0","_nodeVersion":"25.3.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-u/p0QaAdnrv7xsBT8pJzmQDM3OQu8gGI2YwFAnTS/ZmV6ovkKstHW7KO1tE1VbKMfasrVq2/H9968Rm8eZnOLg==","shasum":"f3f05640d0a0529efda359d6aa9043b6fb0445c0","tarball":"https://registry.npmjs.org/@anumaan/adbis-live-client/-/adbis-live-client-0.1.0.tgz","fileCount":5,"unpackedSize":6449,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAyD8fRvenFtKp6zz48MwUSB2aLzG+5IolKHsy3PCzCkAiAajb3pg8asLHXWCrocldmOW1OLFOAhigHUq3q5M3+cnA=="}]},"_npmUser":{"name":"anumaan","email":"anumaancs@gmail.com"},"directories":{},"maintainers":[{"name":"anumaan","email":"anumaancs@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adbis-live-client_0.1.0_1776355674272_0.4829542186288651"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-16T16:07:54.171Z","0.1.0":"2026-04-16T16:07:54.426Z","modified":"2026-04-16T16:07:54.631Z"},"maintainers":[{"name":"anumaan","email":"anumaancs@gmail.com"}],"description":"Tiny browser client for ADBIS live event stream and API ingestion","homepage":"https://github.com/BhaveshBhardwaj/ADBIS/tree/main/plugins/adbis-live-client","keywords":["adbis","security","threat-detection","sse","telemetry"],"repository":{"type":"git","url":"git+https://github.com/BhaveshBhardwaj/ADBIS.git","directory":"plugins/adbis-live-client"},"bugs":{"url":"https://github.com/BhaveshBhardwaj/ADBIS/issues"},"license":"MIT","readme":"# @anumaan/adbis-live-client\n\nMinimal browser client for the ADBIS control-plane APIs.\n\n## Install\n\n```bash\nnpm install @anumaan/adbis-live-client\n```\n\n## Features\n\n- Subscribe to live pipeline events over SSE (`/stream/events`)\n- Ingest telemetry events (`/telemetry/ingest`)\n- Query alerts (`/alerts`)\n\n## API\n\n- `new AdbisLiveClient({ baseUrl, authToken })`\n- `client.stream({ replay, onEvent, onError })`\n- `client.ingest(event)`\n- `client.listAlerts({ limit, offset })`\n- `client.close()`\n\n## Quick usage\n\n```js\nimport { AdbisLiveClient } from \"@anumaan/adbis-live-client\";\n\nconst client = new AdbisLiveClient({ baseUrl: \"http://localhost:8000\" });\n\nclient.stream({\n  replay: 30,\n  onEvent: (event) => console.log(\"event\", event.topic, event),\n});\n\nawait client.ingest({\n  source: \"custom-app\",\n  user_id: \"analyst@example.com\",\n  ip: \"203.0.113.55\",\n  user_agent: \"Mozilla/5.0\",\n  event_type: \"file_read\",\n  resource: \"finance/q2-forecast.xlsx\",\n  sensitivity: \"high\",\n  access_count: 30,\n  timestamp: new Date().toISOString(),\n});\n```\n\n## Notes\n\n- `/alerts` usually requires an authorization token with appropriate role claims.\n- `/stream/events` and `/telemetry/ingest` are useful for live demo wiring.\n\n## Local package checks\n\n```bash\nnpm run check\nnpm run pack:check\n```\n\n## Publish (maintainer)\n\n```bash\nnpm login\nnpm publish --access public\n```\n","readmeFilename":"README.md","_rev":"1-49abfeeb4aee1f76e4ffae5b32c3f15e"}