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
Account settings as a shared package (@carbon/account)
The ERP's account settings modal (Profile, Notifications, Security) moves into a package so the MES and the starter app open the same modal.
Decisions (from the user)
- A new package, shaped like
@carbon/onboarding— not@carbon/react, which cannot import@carbon/form(form depends on react). - All three panes in every app.
- The MES and the starter use the ERP's loaders and actions — through the MES's
existing
/x/proxy/*route (extended to GET), and a matching proxy route in the starter. No auth API is ported.
Shape
@carbon/account→ tab constants,accountProfileValidator,Account, the zustand store (useAccountSettings: open/close/tab).@carbon/account/ui→AccountSettings(host + modal), the panes, the section layout,ProfileForm,TotpEnrollmentpieces.- Per-app props:
user,companyId,api(/apiin the ERP,/x/proxy/apielsewhere), optionalrenderBrowserNotifications(ERP only: the push service worker is the ERP's) andtwoFactorgate (ERP only: plan gate + upgrade dialog). ColorPickermoves to@carbon/react(the avatar picker needs it; the ERP keeps a re-export).
Tasks
- Create
packages/account(package.json, tsconfig, AGENTS.md, CLAUDE.md). - Move panes/forms/TOTP pieces/store/models from the ERP into it; ERP files become imports or re-exports.
- ERP: mount from the package; avatar menu + profile sheet open the package store; person page uses the package
ProfileForm. - MES: proxy GET; mount the modal; UserNav + MoreSheet open it; MFA gate links to the ERP security pane.
- Starter: proxy route, QueryClient + invalidation, Lingui provider (erp catalog), mount, avatar menu opens it.
- Lingui: add
packages/account/srcto the erp and mes catalogs. - Verify: typecheck erp/mes/starter/account, Biome, tests, license headers. (Browser check pending — dev servers were down.)