{"_id":"@byronwade/realtime","name":"@byronwade/realtime","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@byronwade/realtime","version":"0.1.0","description":"Realtime engine for Fakebase — broadcast, presence, postgres changes","license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@byronwade/core":"0.1.0"},"optionalDependencies":{"ws":"^8.18.0"},"devDependencies":{"@types/node":"^22.0.0","@types/ws":"^8.5.0","typescript":"^5.5.0","vitest":"^2.0.0"},"author":{"name":"Byron Wade"},"homepage":"https://github.com/byronwade/fakebase#readme","bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"repository":{"type":"git","url":"git+https://github.com/byronwade/fakebase.git","directory":"packages/realtime"},"engines":{"node":">=20.0.0"},"sideEffects":false,"publishConfig":{"access":"public"},"keywords":["supabase","local","dev","nextjs","prototype","fakebase"],"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","typecheck":"tsc --noEmit","clean":"rm -rf dist","lint":"eslint src"},"_id":"@byronwade/realtime@0.1.0","_integrity":"sha512-dlnnjusLZdTD+KD1Dbn8aruH/mf5wZrbIevr0PGQ0ljbFf2FE1NNJUYEn2ugbESnhpT2QdIDTVsRQWSSlGU/Lw==","_resolved":"/private/tmp/claude-501/ffb125a663b8d5b90cb804a996e82fe1/byronwade-realtime-0.1.0.tgz","_from":"file:byronwade-realtime-0.1.0.tgz","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-dlnnjusLZdTD+KD1Dbn8aruH/mf5wZrbIevr0PGQ0ljbFf2FE1NNJUYEn2ugbESnhpT2QdIDTVsRQWSSlGU/Lw==","shasum":"e8223c1481fc4a1274808fb73a5b074994c43b07","tarball":"https://registry.npmjs.org/@byronwade/realtime/-/realtime-0.1.0.tgz","fileCount":35,"unpackedSize":57735,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD1Cyim274mxWIKNvuYS7n8Dun1oYxg5pGTyNIfTo8NIgIhALEJtJh6Er35LMhIvHDb1i7Js7MPM91Z6dIGQPJ4MtIY"}]},"_npmUser":{"name":"byronwade","email":"bcw1995@gmail.com"},"directories":{},"maintainers":[{"name":"byronwade","email":"bcw1995@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/realtime_0.1.0_1780452909965_0.5356293581625418"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-03T02:15:09.861Z","0.1.0":"2026-06-03T02:15:10.090Z","modified":"2026-06-03T02:15:10.259Z"},"maintainers":[{"name":"byronwade","email":"bcw1995@gmail.com"}],"description":"Realtime engine for Fakebase — broadcast, presence, postgres changes","homepage":"https://github.com/byronwade/fakebase#readme","keywords":["supabase","local","dev","nextjs","prototype","fakebase"],"repository":{"type":"git","url":"git+https://github.com/byronwade/fakebase.git","directory":"packages/realtime"},"author":{"name":"Byron Wade"},"bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"license":"MIT","readme":"# `@byronwade/realtime`\n\n> Part of [**Fakebase**](https://github.com/byronwade/fakebase) — a Supabase-shaped, **local/dev-only** development platform for Next.js prototypes. Not for production use.\n\nThe realtime engine — broadcast, presence, and postgres-changes channels, plus an optional local WebSocket bridge. It mirrors `supabase.channel(...)` semantics for local dev.\n\n## Installation\n\n```bash\npnpm add @byronwade/realtime\n```\n\nWhen you use `fakebase`, realtime is also reachable through the client as `db.channel(...)`. Install this package directly to use the engine standalone.\n\n## Usage\n\n```ts\nimport { EventBus } from \"@byronwade/core\";\nimport { RealtimeService } from \"@byronwade/realtime\";\n\nconst realtime = new RealtimeService(new EventBus());\nconst channel = realtime.channel(\"room-1\");\n```\n\n## What's inside\n\n- `RealtimeService` — manages channels over an `EventBus`.\n- `RealtimeChannel`, `PresenceManager`, `BroadcastRegistry` — the building blocks for broadcast/presence/changes.\n- `createWsBridge(port?)` — an optional local WebSocket server (+ type `WsBridgeServer`).\n\nThe WebSocket bridge needs the optional `ws` dependency. Dev-only.\n\n## Documentation\n\n- [Project README](https://github.com/byronwade/fakebase#readme)\n- [Architecture](https://github.com/byronwade/fakebase/blob/main/docs/architecture.md)\n- [Compatibility matrix](https://github.com/byronwade/fakebase/blob/main/docs/compatibility-matrix.md)\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-fc8c5dfe69a2d0fbae649649b30d2749"}