rxfy-server
v2.0.0
Published
Server-side live data library for rxfy
Readme
rxfy-server
Server-side live data for rxfy. Bind Drizzle tables to rxfy models, write through the server, and publish live updates to subscribers.
Install
npm install rxfy-server
# peer deps: rxfy drizzle-orm drizzle-zod zodWhat it gives you
defineResource— bind a Drizzle table to an rxfy model (derived automatically, or pass a pre-mademodelshared with client code).createResourceRegistry— a typed index of resources.createServer—live.create/live.update/live.deletethat write to the DB and publishpatch/stalemessages.createInMemoryHub— pub/sub routing from topics to connections.createTopicKeyer— HMAC, time-windowed topic ids so clients cannot forge subscriptions.live.grant— mint the subscription grants a client is allowed to use (typically at SSR time).rxfy-server/browser— browser-safe subpath exporting the resource API without the Node-only topic keyer, so resources and their models can be imported into client bundles.
See the rxfy-server docs for the full walkthrough.
