项目 / crbnos/carbon

crbnos/carbon

行业推荐
语言 TypeScript标签 erpmanufacturingsupabasetypescriptleanmesqmspostgresqlreact-routermcp-serverai-agentsbill-of-materialsinventory-managementmanufacturing-execution-systemmrpopen-source-erpproduction-planningquality-management-systemself-hostedtraceability数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24

一段话介绍

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
2,859累计星
398Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

库存与供应链协同

适配系统:库存管理系统、供应链协同平台 · 得分 1.4

覆盖库存台账与出入库流程,可作为仓内作业与上下游协同的业务底座。

数字孪生与产线仿真

适配系统:数字孪生平台、制造执行系统 · 得分 1.4

具备物理对象建模与仿真推演能力,可用于产线布局验证、排产推演与虚拟调试。

能耗监测与能效优化

适配系统:能源管理系统、能耗监测平台 · 得分 1.4

面向能耗采集与负荷分析建模,可用于园区/楼宇能效诊断与用能优化建议。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
想先试用,可到 [Carbon Cloud](https://app.carbon.ms) 开通云端试用;要在自有环境运行,按[自托管指南](https://carbon.ms/self-hosted)部署。从源码在本地开发的步骤见[仓库 README](https://github.com/crbnos/carbon),接口说明见[项目文档](https://docs.carbon.ms)。三种方式均可。
特点或设计要点
项目说明文档见 https://carbon.ms/compare/netsuite。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-24 · 语言 TypeScript · 贡献者 —
mcpself-host

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,正文较长,已截断:保留前 20000 字符(原始 32,302 字节),完整内容见 GitHub 仓库。

<div align="center">
  <a href="https://carbon.ms">
    <picture>
      <source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/carbon-word-dark.svg" />
      <img height="72" alt="Carbon" src=".github/assets/readme/carbon-word-light.svg" />
    </picture>
  </a>

  <h3>Build hardware at the speed of software</h3>

  <p>
    Carbon combines ERP, MRP, MES and QMS.<br />
    Plan materials, run the shop floor, manage quality and track actual costs in one system.
  </p>

  <p><strong>Hard tech unicorns build on Carbon.</strong></p>

  <p>
    <a href="https://app.carbon.ms"><strong>Start 30-day trial</strong></a> ·
    <a href="https://carbon.ms/self-hosted"><strong>Self-host</strong></a> ·
    <a href="https://docs.carbon.ms"><strong>Docs</strong></a> ·
    <a href="https://docs.carbon.ms/api"><strong>API</strong></a> ·
    <a href="https://docs.carbon.ms/api/mcp"><strong>MCP</strong></a> ·
    <a href="https://discord.gg/yGUJWhNqzy"><strong>Discord</strong></a> ·
    <a href="https://github.com/orgs/crbnos/projects/1/views/1"><strong>Roadmap</strong></a>
  </p>

  <p>
    <a href="https://github.com/crbnos/carbon/stargazers"><img src="https://img.shields.io/github/stars/crbnos/carbon?style=flat-square&logo=github&label=Stars&color=000000&labelColor=000000" alt="GitHub stars" /></a>
    <a href="https://discord.gg/yGUJWhNqzy"><img src="https://img.shields.io/badge/Discord-000000?style=flat-square&logo=discord&logoColor=white" alt="Discord" /></a>
    <img src="https://img.shields.io/badge/TypeScript-000000?style=flat-square&logo=typescript&logoColor=white" alt="TypeScript" />
    <img src="https://img.shields.io/badge/React-000000?style=flat-square&logo=react&logoColor=white" alt="React" />
    <img src="https://img.shields.io/badge/Postgres-000000?style=flat-square&logo=postgresql&logoColor=white" alt="Postgres" />
    <img src="https://img.shields.io/badge/Rust-000000?style=flat-square&logo=rust&logoColor=white" alt="Rust" />
    <a href="LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-000000?style=flat-square" alt="License: AGPL-3.0" /></a>
  </p>
</div>

<br />

<a href="https://carbon.ms">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/assembly-dark.webp" />
    <img alt="Carbon assembly instructions: step-by-step 3D work instructions authored from the CAD model" src=".github/assets/readme/assembly-light.webp" />
  </picture>
</a>

<table>
  <tr>
    <td width="33%" valign="top">
      <picture>
        <source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/sales-orders-dark.webp" />
        <img alt="Sales orders list with status, linked jobs and order totals" src=".github/assets/readme/sales-orders-light.webp" />
      </picture>
      <p align="center"><sub><b>One record from quote to cash.</b> Link quotes, orders, jobs and invoices.</sub></p>
    </td>
    <td width="33%" valign="top">
      <picture>
        <source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/bom-dark.webp" />
        <img alt="Multi-level bill of materials with planning and supersession" src=".github/assets/readme/bom-light.webp" />
      </picture>
      <p align="center"><sub><b>Generate configurations from rules.</b> Control BOMs, routings and revisions.</sub></p>
    </td>
    <td width="33%" valign="top">
      <picture>
        <source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/traceability-dark.webp" />
        <img alt="Lot and serial traceability graph" src=".github/assets/readme/traceability-light.webp" />
      </picture>
      <p align="center"><sub><b>Trace every unit to its source.</b> Follow lot and serial genealogy in both directions.</sub></p>
    </td>
  </tr>
</table>

<br />

## Contents

- [Why Carbon](#why-carbon)
- [Features](#features)
- [Get Carbon](#get-carbon)
- [API & MCP](#api--mcp)
- [Architecture](#architecture)
- [Tech Stack](#tech-stack)
- [Monorepo](#monorepo)
- [Local Development](#local-development)
- [Commands](#commands)
- [Security](#security)
- [Contributing](#contributing)
- [License](#license)

<br />

## Why Carbon

Manufacturing teams often run planning, production, quality and accounting in separate systems. That creates predictable problems:

- BOMs and revisions are re-keyed between engineering and production
- Material shortages surface after work has started
- Job costs and quality records are reconstructed after the fact
- Integrations depend on vendor-specific tools and consultants

Carbon puts ERP, MRP, MES and QMS in **one Postgres database you can inspect, own and extend**. Engineering, planning, production, quality and accounting update the same data, without synchronization jobs between separate product databases.

<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/where-carbon-fits-dark.webp" />
    <img alt="Where Carbon fits: your sales tools (CRM and quoting, online store, customer portal) send orders in, and your factory (machines and robots, sensors and testing, your own software) gets work out, both through the Carbon API. In the middle, Carbon plans, runs and tracks the work: orders, planning, scheduling, shop floor, quality and inventory, all on one shared Postgres database. Analytics sees across all three." src=".github/assets/readme/where-carbon-fits-light.webp" width="900" />
  </picture>
</p>

Carbon is an open-source alternative to [NetSuite](https://carbon.ms/compare/netsuite), [Epicor](https://carbon.ms/compare/epicor), [SAP Business One](https://carbon.ms/compare/sap-business-one), [Plex](https://carbon.ms/compare/plex), [Odoo](https://carbon.ms/compare/odoo) and [ERPNext](https://carbon.ms/compare/erpnext). It supports complex assembly, contract manufacturing, configure-to-order and high-mix, low-volume production. See [all comparisons](https://carbon.ms/compare).

<br />

## Features

|                              |                                                                                  |
| ---------------------------- | -------------------------------------------------------------------------------- |
| **ERP — Inventory & Costing** | Quotes, orders, purchasing, inventory, invoicing and actual job costs             |
| **MRP — Planning**            | Demand, supply planning, versioned BOMs and routings, finite-capacity scheduling  |
| **MES — Execution**           | Digital travelers, operator terminals, 3D instructions, barcode and labor capture |
| **QMS — Quality**             | Inspections, FAI, nonconformance, CAPA, calibration and risk management           |
| **Traceability**              | Forward and backward lot and serial genealogy                                     |
| **Engineering**               | Multi-level BOMs, revisions, change orders, supersession and product configuration |
| **Accounting**                | General ledger, journals, multi-entity, multi-currency and accounting integrations |
| **Workflows**                 | Rule-based automation with triggers, actions and run history                      |
| **Maintenance & Assets**      | Scheduled maintenance, fixed assets and kanban replenishment                      |
| **API, Webhooks & MCP**       | Typed REST operations, event-driven webhooks and a permission-aware MCP server    |
| **Custom Fields**             | Extend records without changing the core schema                                   |
| **Integrations**              | Onshape, SolidWorks, Paperless Parts, Linear, Jira, Slack, Ramp, Stripe and Zebra |

See the [full roadmap](https://github.com/orgs/crbnos/projects/1/views/1) for what's next.

**Technical highlights**

- Generated types shared by the database, application and API
- Postgres row-level security and tenant-scoped records
- Role- and attribute-based access for employees, customers and suppliers
- Realtime database subscriptions
- Shared identity and permissions across the application, API and MCP server
- Explicit dependency graphs for manufacturing operations
- Rust geometry services for STEP conversion and assembly motion planning

<br />

## Get Carbon

| | |
| --- | --- |
| **Carbon Cloud** | Managed application, database, updates and backups. [Start a 30-day trial](https://app.carbon.ms) without a sales call. |
| **Self-hosted** | Run Carbon in your VPC, on-prem or air-gapped. See the [self-hosting guide](https://carbon.ms/self-hosted). |
| **Develop locally** | Run the application and supporting services from source. Follow [Local Development](#local-development). |

<br />

## API & MCP

The [**Carbon API**](https://docs.carbon.ms/api) exposes the same manufacturing operations used by the application. Each operation validates its input, updates dependent records and enforces the authenticated identity's permissions. Operations are available through two interfaces with the same arguments:

- **HTTP:** `POST https://app.carbon.ms/api/v1/{module}/{operation}`, with a published [OpenAPI spec](https://app.carbon.ms/api/v1/openapi.json) for [generating a typed client](https://docs.carbon.ms/api/sdks) in any language
- **[MCP](https://docs.carbon.ms/api/mcp):** as tools for hosted or local AI agents, scoped to the permissions of the API key or signed-in user

Create a key under **Settings → API Keys**, then:

```bash
curl -X POST https://app.carbon.ms/api/v1/sales/getSalesOrders \
  -H "Authorization: Bearer $CARBON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "args": { "limit": 10 } }'
```

Self-hosted deployments serve the same API at `/api/v1`. The [Data API](https://docs.carbon.ms/api/data) provides direct access to permitted tables and views when an operation is not available in the service layer.

API keys and MCP are included with Business and Enterprise plans. Using them in a self-hosted deployment requires a commercial license.

<br />

## Architecture

ERP and MES are React Router apps over a single Postgres database. Permissions (row-level security), computed totals and change events live in the database itself; background work runs through Inngest, which calls back into the ERP to execute jobs. The [architecture guide](https://docs.carbon.ms/docs/building/architecture) follows one click all the way down.

<a href="https://docs.carbon.ms/docs/building/architecture">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/architecture-dark.webp" />
    <img alt="How Carbon works: 1, shop floor staff, office staff, customers and suppliers, and your code and AI use Carbon; 2, inside Carbon, the MES for the shop floor and the ERP for the office, the API and MCP, both save to one shared database that decides who can see what and keeps totals correct, and screens update live; 3, after each save, background jobs send email and Slack, sync accounting, call webhooks, run workflows and sync Linear and Jira, plus search and the audit log." src=".github/assets/readme/architecture-light.webp" width="900" />
  </picture>
</a>

## Building E2E Systems

Carbon is intended to be the core of a bespoke end-to-end manufacturing system. We provide an `apps/starter` and allow you to build a custom sales and shop-floor engine with Carbon at the center.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset=".github/assets/readme/build-on-carbon-dark.webp" />
  <img alt="Build on Carbon: 1, you connect your own app and scripts through the API, AI agents through MCP and reports through the Data API; 2, Carbon gives every way in the same permissions as the person or API key and the same actions the Carbon app uses, on one shared database; 3, Carbon tells others through webhooks, workflows and integrations such as Onshape, SolidWorks, Slack, Xero and Jira." src=".github/assets/readme/build-on-carbon-light.webp" width="900" />
</picture>

<br />

## Tech Stack

| Layer          | Technology                                                                                       |
| -------------- | ------------------------------------------------------------------------------------------------ |
| Apps           | [React Router 7](https://reactrouter.com) on [Vite](https://vite.dev), [TypeScript](https://www.typescriptlang.org/) |
| UI             | [Tailwind 4](https://tailwindcss.com), [Radix](https://radix-ui.com), [React Aria](https://react-spectrum.adobe.com/react-aria/), [TanStack Table and Query](https://tanstack.com) |
| Forms          | [Zod](https://zod.dev) with `@carbon/form`                                                       |
| Database       | [Postgres](https://www.postgresql.org) with row-level security, [PostgREST](https://postgrest.org) and [Kysely](https://kysely.dev) |
| API            | [oRPC](https://orpc.unnoq.com) with OpenAPI, [MCP](https://modelcontextprotocol.io) server       |
| AI             | [AI SDK](https://ai-sdk.dev) (Anthropic, OpenAI)                                                  |
| Jobs & events  | [Inngest](https://inngest.com)                                                                    |
| Cache          | [Redis](https://redis.io)                                                                         |
| 3D & CAD       | [three.js](https://threejs.org) / react-three-fiber; Rust with [OpenCASCADE](https://dev.opencascade.org) and [FCL](https://github.com/flexible-collision-library/fcl) |
| Documents      | [React PDF](https://react-pdf.org), [React Email](https://react.email), [TipTap](https://tiptap.dev) |
| i18n           | [Lingui](https://lingui.dev)                                                                      |
| Tooling        | [pnpm](https://pnpm.io), [Turborepo](https://turbo.build), [Biome](https://biomejs.dev), [Vitest](https://vitest.dev) |
| Docs           | [Next.js](https://nextjs.org) + [Fumadocs](https://fumadocs.dev)                                  |
| Hosting        | [AWS](https://aws.amazon.com) via [SST](https://sst.dev), or self-hosted with Docker              |

<br />

## Monorepo

A [pnpm](https://pnpm.io) + [Turborepo](https://turbo.build) monorepo:

```
carbon
├── apps         # ERP, MES and the Rust assembler
├── packages     # shared TypeScript packages
├── crates       # Rust crates behind the assembler (CAD conversion, collision, motion planning)
└── docs         # docs.carbon.ms, with content and glossary as @carbon/content
```

### `/apps`

| App         | Description                                                     |
| ----------- | --------------------------------------------------------------- |
| `erp`       | ERP: sales, purchasing, inventory, planning, quality, accounting |
| `mes`       | MES: the shop floor app, run on tablets next to the machines    |
| `assembler` | Rust geometry service: STEP → GLB and assembly motion planning  |
| `academy`   | Training                                                        |
| `starter`   | Example app built on the API                                    |

### `/packages`

| Package                  | Description                                                                  |
| ------------------------ | ---------------------------------------------------------------------------- |
| `@carbon/database`       | Schema, migrations, generated types and database clients                     |
| `@carbon/auth`           | Authentication, RBAC, sessions, API keys and OAuth                           |
| `@carbon/api`            | API contract: the generated operation manifest behind the Carbon API and MCP |
| `@carbon/react`          | Shared UI components (Radix, React Aria, Tailwind)                           |
| `@carbon/form`           | `ValidatedForm` and field components for zod + FormData                      |
| `@carbon/jobs`           | Inngest background jobs: events, integrations, notifications, workflows      |
| `@carbon/planning`       | MRP and scheduling engines                                                   |
| `@carbon/documents`      | PDFs, email templates, ZPL labels, QR and barcodes                           |
| `@carbon/printing`       | Printer routing, label queue and ProxyBox delivery                           |
| `@carbon/viewer`         | 3D models and animated assembly instructions (react-three-fiber)             |
| `@carbon/files`          | File handling: images, HEIC, CAD formats                                     |
| `@carbon/tiptap`         | Rich-text editor extensions and components                                   |
| `@carbon/onboarding`     | Implementation Hub: guided company setup                                     |
| `@carbon/notifications`  | Notification event taxonomy shared by apps and jobs                          |
| `@carbon/workflows-core` | Community-licensed contracts for workflow triggers                           |
| `@carbon/locale`         | Lingui i18n runtime for ERP and MES                                          |
| `@carbon/lib`            | Server utilities: event system, Inngest client, SMTP, Slack                  |
| `@carbon/kv`             | Redis client and rate limiting                                               |
| `@carbon/env`            | Validated environment variables, secrets kept server-side                    |
| `@carbon/logger`         | Isomorphic logger built on LogTape                                           |
| `@carbon/utils`          | Pure shared utilities (dates, precision, BOM, formatting)                    |
| `@carbon/stripe`         | Stripe billing (Carbon Cloud only)                                           |
| `@carbon/ee`             | Enterprise features and integrations (commercial license)                    |
| `@carbon/checks`         | Conformance checks that keep the codebase consistent                         |
| `@carbon/dev`            | The `crbn` dev CLI: worktrees, Docker stacks, dev URLs                       |
| `@carbon/harness`        | Harness for AI coding agents working on this repo                            |
| `@carbon/config`         | Shared Vitest, TypeScript and Tailwind configuration                         |

<br />

## Local Development

**Prerequisites:** [Docker](https://docs.docker.com/get-docker/), [Node.js](https://nodejs.org) 24.22.1+ (see `.nvmrc`) and [pnpm](https://pnpm.io) (via Corepack). On Windows, use WSL or Git Bash.

```bash
git clone https://github.com/crbnos/carbon.git && cd carbon
corepack enable && pnpm install
cp .env.example .env
pnpm dev
```

`pnpm dev` boots the whole backend in Docker (Postgres, PostgREST, auth, storage, realtime, Inngest, Redis and a mail catcher), applies migrations, generates types and starts the apps:

| Surface      | URL                      |
| ------------ | ------------------------ |
| ERP          | http://localhost:3000    |
| MES          | http://localhost:3001    |
| API          | http://localhost:54321   |

Sign in as `test@carbon.ms`: the dev stack seeds that user and skips the magic link. To fill a company with a full demo story (items, BOMs, orders, jobs, inspections, journals), seed one of the industry datasets (`satellite`, `robotics`, `precision`, `motor`):

```bash
pnpm db:seed:dev -- --email test@carbon.ms --dataset satellite
```

No external accounts are needed to run locally. Email, Google/Microsoft sign-in, Stripe, PostHog and AI providers are all optional and configured in `.env`; see [environment variables](https://docs.carbon.ms/docs/platform/self-hosting/environment-variables).

### Claude Code cloud sessions and other agents

Set `SESSION_SECRET` in the cloud environment’s secret settings before booting the stack (generate a value with `openssl rand -hex 32`).

`scripts/cloud-dev.sh` boots the stack in a Claude Code cloud container: run it from the repo root, or from a `SessionStart` hook in your own Claude Code settings. It selects Node 24, starts `crbn up --no-portless` in the background and points `agent-browser` at the preinstalled Chrome. The ERP answ
↑