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 { cn, Heading } from "@carbon/react";
import { getLocalTimeZone } from "@internationalized/date";
import { useLocale } from "@react-aria/i18n";
import type { ComponentProps } from "react";
import { useMemo } from "react";
import { useUser } from "~/hooks";
export default function AppIndexRoute() {
const user = useUser();
const { locale } = useLocale();
const date = new Date();
const formatter = useMemo(
() =>
new Intl.DateTimeFormat(locale, {
dateStyle: "full",
timeZone: getLocalTimeZone()
}),
[locale]
);
return (
<div className="p-8 w-full h-full bg-card">
<Heading size="h3">Hello, {user.firstName}</Heading>
<Subheading>{formatter.format(date)}</Subheading>
<Hr />
</div>
);
}
const Hr = () => (
<hr className="h-px my-8 bg-black/10 border-0 dark:bg-white/10" />
);
const Subheading = ({ children, className }: ComponentProps<"p">) => (
<p className={cn("text-muted-foreground text-base font-light", className)}>
{children}
</p>
);