@abloatai/ablo

中文文档
0.67.3发布于 2026/11/07Apache-2.0TypeScriptES Module构建来源已验证近 30 天下载 3684

The public Ablo SDK for coordinated reads, commits, claims, observation, and reactive applications.

原始使用文档
文档目录5 节
  1. Why Ablo
  2. Start
  3. Navigating the source
  4. Contributing
  5. License

Ablo

Coordination infrastructure for agents, applications, services, and people working on shared state.

Docs  |  Installation  |  API  |  GitHub

npm license node >=24 types included


Ablo is coordination infrastructure for agents, applications, services, and people working on shared state.

Every write goes through it, so authority, idempotency, conflicts, ordering, and confirmation are enforced in one place. Your Postgres remains the source of truth.

Groups structure which shared state reaches each person or agent. Declare the data's scope and participant authority, then let authorized subscriptions keep reactive views current; HTTP agents explicitly read or observe changes. Start with Groups and shared context to connect membership, access, loading and updates.

Why Ablo

Software used to have one writer: a human clicking through an application. AI applications now have humans, agents, workflows, and services acting concurrently. Databases keep transactions consistent. They do not coordinate autonomous work that reads now, reasons for thirty seconds, and writes later.

Humans handle this naturally. We see that somebody is editing, agree on who takes which part, wait our turn, and look again before continuing. Ablo gives software actors those same capabilities: bounded authority, shared ownership, fresh context, safe handoffs, and an attributed record of what happened.

Start

npm install @abloatai/ablo
npx ablo init
npx ablo dev

ablo dev prepares an isolated Ablo branch for your Git branch, writes its temporary credential to gitignored .env.local, pushes the schema, and watches for changes.

Read and write through one typed API:

const order = await ablo.orders.read({ id: orderId });

if (!order) throw new Error('Order not found');
await ablo.orders.update({
  id: order.id,
  data: { status: 'approved' },
  reads: [order],
});

confirmed means the authoritative database reported the change back. The same commit can be retried safely if the caller loses its connection.

When work takes thirty seconds instead of one request, coordinate before the agent starts reasoning:

await using claim = await ablo.orders.claim({ id: orderId });

const priced = await pricingAgent(claim.data);

await ablo.orders.update({
  id: claim.data.id,
  data: { total: priced.total, status: 'repriced' },
  claim,
});

Another actor touching the same work waits fairly and receives fresh state when its turn begins. If the agent fails, the claim releases automatically. If its context became stale, the write is rejected instead of silently overwriting work it never saw.

If you use AI SDK, expose the same operation as a typed model tool:

import { updateTool } from '@abloatai/ablo/ai-sdk';

const approveOrder = updateTool(ablo.orders, {
  description: 'Approve an order after reviewing it.',
  inputSchema: z.object({ orderId: z.string() }),
  id: ({ orderId }) => orderId,
  apply: () => ({ status: 'approved' }),
});

Ablo supplies readTool, createTool, updateTool, and deleteTool over the same authoritative resources. AI SDK keeps ownership of the model loop and tool execution.

For a model call that needs several reads plus application-owned retrieval or memory, context() awaits the selected values and carries the exact Ablo rows into the write's reads option. It does not add search, memory, or a model runtime.

Use @abloatai/ablo for agents and backend code, @abloatai/ablo/client for live applications, and @abloatai/ablo/react for React. All entrypoints share the same schema, authority, commits, claims, and ordered changes.

Read the Quickstart, browse docs.abloatai.com, or run npx ablo docs.

Navigating the source

This repository preserves the package ownership boundaries instead of flattening the implementation into packages/ablo:

  • packages/ablo is the branded public facade. Its files mostly re-export the package that owns each API.
  • packages/transaction owns the shared model-operation contracts and the headless HTTP/WebSocket transport implementation.
  • packages/humans owns the reactive WebSocket/local/React implementation.

That means searching only inside packages/ablo/src will not find the implementation of create, update, delete, or claim. Read the source code map for a verb-by-verb ownership table and guided call traces for both the default and reactive clients.

Contributing

Ablo is free and open source. You can help by opening an issue, suggesting a feature, or contributing code.

Please report vulnerabilities privately through GitHub Security Advisories.

License

Apache License 2.0. See LICENSE and NOTICE.

版本与发布记录

@abloatai/ablo 共发布 127 个版本,首次发布于 2026/05/24;过去 12 个月发布了 127 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.67.3latest2026/11/071 天前
0.67.22026/11/025 天前
0.67.12026/10/2711 天前
0.67.02026/10/2612 天前
0.66.172026/10/2216 天前
0.66.162026/10/1820 天前

关于 @abloatai/ablo 的常见问题

@abloatai/ablo 是什么?

The public Ablo SDK for coordinated reads, commits, claims, observation, and reactive applications.

如何安装 @abloatai/ablo?

在项目目录运行 npm install @abloatai/ablo,或使用 pnpm add / yarn add / bun add。

@abloatai/ablo 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@abloatai/ablo 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@abloatai/ablo 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@abloatai/ablo 可以商用吗?

@abloatai/ablo 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@abloatai/ablo 的下载量有多少?

根据 npm 官方下载统计,@abloatai/ablo 在 2026/10/05 – 2026/11/03 这 30 天内被下载 3,684 次,日均约 123 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@abloatai/ablo 还在维护吗?

最新版本 0.67.3 发布于 2026/11/07(1 天前);至今共发布 127 个版本,其中过去 12 个月发布了 127 个;首次发布于 2026/05/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。