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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
// SPDX-License-Identifier: AGPL-3.0-only
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
// Stable string keys for persisted state (implementationCheckState.itemKey /
// implementationFieldValue.fieldKey). Baked into content templates so adding or
// reordering template nodes never reassigns a saved key.
export const gateKey = (slug: string) => `gate:${slug}`;
export const productStepKey = (slug: string) => `prod:${slug}`;
export const taskKey = (boardKey: string) => `task:${boardKey}`;
export const flagKey = (reqCode: string) => `flag:${reqCode}`;
export const checkKey = (page: string, n: number | string) =>
`check:${page}.${n}`;
export const fmtKey = (trackRow: string) => `fmt:${trackRow}`;
export const fieldTextKey = (fieldKey: string) => `txt:${fieldKey}`;
// DOM anchor id for a spine step's card in the Plan view. Colons aren't valid in
// a URL fragment target lookup, so swap them for hyphens (gate:configure → gate-configure).
export const planAnchorId = (stepKey: string) =>
`plan-${stepKey.replace(/:/g, "-")}`;
// DOM anchor id for a Setup Map group. A Configure task in the Plan deep-links to
// its matching group here — its `key` is the group key (see content/board), so
// both sides derive the same anchor.
export const setupAnchorId = (groupKey: string) => `setup-${groupKey}`;