@arcforgelabs/flow

中文文档
2026.11.1发布于 2026/11/07MITES Module构建来源已验证近 30 天下载 2908

Invoicing, bill entry and a financial dashboard for labs, with Seazona and Xero integrations.

原始使用文档
文档目录3 节
  1. Status
  2. Documentation
  3. Getting started

Flow

Flow is job management, invoicing, bill approval and a financial dashboard for labs that make work to order, first for dental labs. Seazona (the lab's case system) is a bundled integration, and Xero is an optional one. See VISION.md.

Flow is maintained by Arc Forge Labs at arcforgelabs/flow.

Licence: MIT (LICENSE).

Status

This repository is the new home of Flow, with a new history. Code moves here from an earlier private codebase one module at a time (CONTRIBUTING.md, "Porting from the earlier codebase"). Today it holds the repository's rules, CI, the release track (npm, container image and GitHub Release, on a beta and a stable channel), the integration port, a health check, Clerk sign-in with roles kept in Flow, a People page for owners, the design systems Arc Forge Labs' Field uses, and the first part of the core: the PostgreSQL data model for organisations, contacts, the price list and invoices. It is not ready to run a lab.

Documentation

DocumentWhat it is for
VISION.mdWhat Flow is for, the core and its integrations, and what it will not do
AGENTS.mdAgent entry point (CLAUDE.md links to it)
CONTRIBUTING.mdHow to file issues and pull requests, porting rules, the changelog, merging
CHANGELOG.mdWhat changed in each release: an index of one file per release in CHANGELOG/
SECURITY.mdHow to report a security problem, the trust model, and the rules held hard
LICENSEMIT licence
docs/docs.jsonThe docs site navigation. docs/ is published at https://arcforgelabs.github.io/docs/flow/ by arcforgelabs/docs
docs/index.mdThe docs site home page
docs/releases/One release notes page per version (<version>.md), shown on the docs site
docs/DESIGN.mdThe design systems (theme families), how pages and Clerk's components take them, and the screens
docs/DESIGN_SYSTEM.mdThe Flow Design System artifact: how npm run design-system builds it from the code, the card per shared component, publishing and review
docs/MOBILE_TESTS.mdThe phone suite: every screen at phone, tablet and desk sizes in WebKit and Chromium, its checks and budget, the three widths, saved images
docs/DATA_MODEL.mdThe PostgreSQL records, the rules the database holds, and how to change the schema
docs/DATA_SPINE.mdThe design of the tables and jobs every integration shares: mirror, identity map, job queue, outbox, review queue
docs/JOB_INVOICE_LINKS.mdThe pipeline: how each job links to its customer and to the accounting invoice that bills it
docs/INVOICING_RULES.mdThe invoicing rules that draft a job's invoice, and the two ways an invoice goes to Xero
docs/INVOICE_RULES.mdInvoice rules a lab builds (When, If, Then) that make a ready job wait or never draft
docs/INVOICE_SENDING.mdThe invoice tabs (Pending, Ready, Draft, Approved, Sent, Void), a changed job, and Send all ready to the accounting system
docs/CONTACTS.mdContacts: Flow's own customers and suppliers, and creating a missing Xero client from one
docs/RECONCILE.mdThe daily reconcile: counts and totals per day across the work system's copy, the ledger and the accounting copy
docs/ALERTS.mdQuiet alerts: the slim line on a page when something there needs a person, and how a person dismisses it
docs/AUTOMATIONS.mdAutomations: Flow routines that mark jobs ready to invoice and draft them, each on or off
docs/LINE_MAPPING.mdLine mapping: how each work system line finds its price item, and Price codes in Settings
docs/CUSTOM_FIELDS.mdCustom fields: the lab's own fields for its jobs, kept in Flow only, and how a board move checks for conflicts
docs/JOB_BOARD_MOVES.mdMoving jobs on the Jobs board: custom field moves stay in Flow; Seazona stage moves become a hand-off
docs/PRICE_LIST.mdThe price list: Flow's own codes and prices, their links to Xero items and Seazona products, and the price check
docs/AI_BOTS.mdThe AI bots: ClawSweeper reviews and the Docs Agent, their ClawRouter budget and cost, and setup
docs/LOW_RISK_MERGE.mdThe low-risk merge lane: which pull requests merge themselves when green, with ClawSweeper's risk labels
docs/RELEASING.mdVersions and channels, the release workflows, how to cut and roll back a release, and the one-time setup
docs/AGENT_ACCESS.mdThe off-by-default native MCP read tools, grants, host gates and stock OpenClaw setup
docs/SELF_HOSTING.mdRunning a Flow release with Docker, Node or Replit, the update notice, and Clerk sign-in
docs/REPLIT.mdA Replit workspace of this repository that follows a release channel (FLOW_DEPLOY_REF)
docs/INTEGRATIONS.mdHow an integration adapter is built, turned on and off, and owns its tables
docs/XERO.mdThe Xero adapter: modes, settings, rate limits, connecting Xero and draft invoices
docs/XERO_IMPORT.mdXero › Import: each Xero invoice in Flow's copy linked to its Flow invoice, or made into one
docs/SEAZONA.mdThe Seazona adapter: modes, settings, the rate governor, replay files and its tables
docs/SENTRY.mdThe Sentry adapter: errors and problem reports to the installation's own Sentry project
server/integrations/port.jsThe integration port every adapter implements

Getting started

Requirements: Node 24, npm and PostgreSQL 16 or later.

npm ci
FLOW_TEST_DATABASE_URL=postgres://… npm test   # a throwaway database
DATABASE_URL=postgres://… npm start             # http://localhost:19300/health

版本与发布记录

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

版本发布日期距今
2026.11.1latest2026/11/07今天
2026.10.53-4beta2026/11/071 天前
2026.10.53-32026/11/061 天前
2026.10.53-22026/11/061 天前
2026.10.53-12026/11/061 天前
2026.10.532026/10/299 天前

其他发布通道:placeholder → 0.0.0-placeholder,beta → 2026.10.53-4。

关于 @arcforgelabs/flow 的常见问题

@arcforgelabs/flow 是什么?

Invoicing, bill entry and a financial dashboard for labs, with Seazona and Xero integrations.

如何安装 @arcforgelabs/flow?

在项目目录运行 npm install @arcforgelabs/flow,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 flow-server,可以用 npx flow-server 直接运行。

@arcforgelabs/flow 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/arcforgelabs__flow 是否存在。

@arcforgelabs/flow 支持 ESM 还是 CommonJS?

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

@arcforgelabs/flow 需要什么版本的 Node.js?

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

@arcforgelabs/flow 可以商用吗?

@arcforgelabs/flow 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@arcforgelabs/flow 的下载量有多少?

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

@arcforgelabs/flow 还在维护吗?

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