@abloatai/humans
v0.63.0
Published
The optional human-facing local-state package for Ablo: presence, live queries, and React bindings.
Readme
@abloatai/humans
The interactive local-state runtime behind Ablo applications.
It turns Ablo's ordered transaction stream into WebSocket-backed local state with optimistic updates, rollback, object identity, persistence, presence, live queries, MobX integration, and React bindings.
Application code should install the branded Ablo SDK:
npm install @abloatai/abloFor a live client:
import { Ablo } from '@abloatai/ablo/client';
const ablo = Ablo({
schema,
session: { endpoint: '/api/ablo-session' },
});
await ablo.ready();
const order = ablo.orders.local.get(orderId);For React:
import { AbloProvider, useAblo } from '@abloatai/ablo/react';Use @abloatai/humans directly only when building Ablo client plugins or
framework integrations. Normal applications use @abloatai/ablo/client and
@abloatai/ablo/react, which delegate to this package.
