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
AGPL V3
Brad Barbinf7cda3fc0888
diff --git a/README.md b/README.mdindex 9675fb4292..1a42dd189f 100644--- a/README.md+++ b/README.md@@ -6,7 +6,6 @@ Carbon is the open-source operating system for manufacturing.-Features:- [x] ERP@@ -85,12 +84,12 @@ The API documentation is located in the ERP app at `/x/api/js/intro`. It is autoNavigate to settings in the ERP to generate an API key. If you're self-hosting you can also use the supabase service key instead of the public key for root access. In that case you don't needto include the `carbon-key` header.```ts-import { Database } from '@carbon/database'-import { createClient } from '@supabase/supabase-js'+import { Database } from "@carbon/database";+import { createClient } from "@supabase/supabase-js";-const apiKey = process.env.CARBON_API_KEY-const apiUrl = process.env.CARBON_API_URL-const publicKey = process.env.CARBON_PUBLIC_KEY+const apiKey = process.env.CARBON_API_KEY;+const apiUrl = process.env.CARBON_API_URL;+const publicKey = process.env.CARBON_PUBLIC_KEY;const carbon = createClient<Database>(apiUrl, publicKey, {global: {@@ -107,15 +106,18 @@ const { data, error } = await carbon.from("item").select("*");### From the Monorepo```tsx-import { getCarbonServiceRole } from "@carbon/auth"+import { getCarbonServiceRole } from "@carbon/auth";const carbon = getCarbonServiceRole();// returns all items across companiesconst { data, error } = await carbon.from("item").select("*");// returns items from a specific company-const companyId = 'xyz';-const { data, error } = await carbon.from("item").select("*").eq("companyId", companyId);+const companyId = "xyz";+const { data, error } = await carbon+ .from("item")+ .select("*")+ .eq("companyId", companyId);```## Local Development@@ -221,8 +223,6 @@ For example, to run test command in the `@carbon/react` package you can run:$ npm run test -w @carbon/react```--### Restoring a Production Database Locally1. Download the production database backup from Supabase