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.
import type { Plugin, PluginOption } from "vite";
export function applyDotenvToProcessEnv(mode: string, appDir: string): void;
export function clientOnlyAlias(specifier: string, file: string): Plugin;
export function stackActivity(): Plugin;
export function precompressedAssets(env: {
command: "build" | "serve";
mode: string;
}): Promise<Plugin[]>;
export function compressRemaining(directory: string): Promise<void>;
export function linguiWithoutIdQuery<T>(plugins: T[]): T[];
export type CarbonOptions = {
/** What Vite hands the config function; needed for `precompress`. */
command?: "build" | "serve";
mode?: string;
/** Trim react-aria's strings to the locales in the Lingui config. */
locales?: boolean;
/** Specifier → stub file, replaced in the browser build only. */
clientOnly?: Record<string, string>;
/** Split the production server build per package (see `splitServerByPackage`). */
splitServer?: boolean;
/** Write a Brotli `.br` beside each client asset (not on Vercel). */
precompress?: boolean;
};
/** Every Carbon app's own Vite plugins; React Router and Tailwind stay separate. */
export function carbon(options?: CarbonOptions): Promise<PluginOption[]>;
export function splitServerByPackage(): Plugin;