Skip to content

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.

docs: more licensing fixes

Sidwebworkse7a41c146c12
diff --git a/.claude/skills/carbon-docs/SKILL.md b/.claude/skills/carbon-docs/SKILL.md
index 30925de6ac..fce33455ed 100644
--- a/.claude/skills/carbon-docs/SKILL.md
+++ b/.claude/skills/carbon-docs/SKILL.md
@@ -152,10 +152,29 @@ Each `##` heading becomes a sidebar rail entry — so structure chapters as 3–
`branch` = a temporary returnable hold (Paused, On Hold, Needs Approval); `terminal` = an off-path exit
(Cancelled, Voided, Lost, Expired). Use it ONLY for a **linear** lifecycle — a 2-axis comparison matrix
(e.g. invoices sales-vs-purchase) or a small enum list stays a markdown table.
- - `<PlanBadge plan="Business" />` — flags a paid-tier feature. Whole-page gate → set `plan: Business` in
- frontmatter (renders inline with the page title); section gate → drop `<PlanBadge>` in-body. Gated
- features = `packages/ee/src/plan.ts` (Business/Partner). **Don't** badge free ones (email, exchange-rates).
- The gate is **Cloud-only** — self-hosted isn't plan-gated; note that where it matters.
+ - `<PlanBadge plan="Business" />` — flags a paid feature. Whole-page gate → set `plan: Business` in
+ frontmatter; renders a small **"Paid"** pill inline with the page title (label is fixed to "Paid"; the
+ `plan` value only feeds the hover tooltip + the banner copy). Section gate → drop `<PlanBadge>` in-body.
+ Gated features = `packages/ee/src/plan.ts`. **Don't** badge free ones (email, exchange-rates).
+ - **Plan-gated pages also get a full-width announcement bar** (`components/plan-banner-bar.tsx`,
+ `PlanBannerBar`) rendered by the docs **layout** (`app/docs/[[...slug]]/layout` builds a url→plan map from
+ `plan` frontmatter and passes it in) — sticky under the header, spanning the content area. Adding
+ `plan: Business` frontmatter is all it takes; the badge and the bar both light up. Don't hand-place a
+ banner in MDX.
+ - **Licensing model — get this right, it's been wrong before.** See `docs/content/docs/platform/licensing.mdx`
+ (the canonical page). Editions (`packages/utils/src/types.ts` `enum Edition`): **Community** (self-host,
+ AGPLv3 open core), **Enterprise** (self-host + commercial license), **Cloud** (managed). EE features =
+ code under `packages/ee` or any `.ee` file → require a commercial license per the repo `LICENSE`.
+ - **Carbon Cloud = the hosted SaaS at https://app.carbon.ms** — NOT the `/docs/platform/...` deployment
+ docs. Self-hosting recipes (Docker with Caddy, AWS with SST) live under
+ `docs/content/docs/platform/self-hosting/`.
+ - **Cloud plans = Starter and Business only.** `Plan` enum also has `Partner`, but Partner is
+ **internal-only — never mention it in reader-facing docs.** Don't write "Business and Partner plans".
+ - **Never write "self-hosted isn't plan-gated."** The *runtime* gate is Cloud-only
+ (`packages/ee/src/plan.server.ts` returns early when `CarbonEdition !== Edition.Cloud`), but the
+ *license* still governs: self-hosting runs in **community mode**; Enterprise/EE features need a
+ commercial license. Frame it as a license boundary, not a technical lockout — features aren't
+ "disabled" in Community.
- `<Steps>/<Step>`, `<Tabs>/<Tab>` (fumadocs-ui), markdown tables, and code fences (dark panel).
- `<Term id?>…</Term>` — inline glossary term (dotted underline → definition popover). The same component
as the Guide; see "Interlinking & the glossary" below.
diff --git a/docs/components/editorial/reference-components.tsx b/docs/components/editorial/reference-components.tsx
index f96fd7fac9..1d58037be1 100644
--- a/docs/components/editorial/reference-components.tsx
+++ b/docs/components/editorial/reference-components.tsx
@@ -51,13 +51,13 @@ export function Callout({
}
/* Plan gate marker — flags a feature that needs a paid plan. Carbon's gated
- * features (`packages/ee/src/plan.ts`) all require the Business or Partner plan, so
- * the badge reads "Business plan" by default. Drop it at the top of a gated page, or
- * right under the heading of a gated section. */
+ * features (`packages/ee/src/plan.ts`) require the Business plan, so the badge reads
+ * "Business plan" by default. Drop it at the top of a gated page, or right under the
+ * heading of a gated section. */
export function PlanBadge({ plan = "Business", className = "" }: { plan?: string; className?: string }) {
return (
<span
- title={`Available on the ${plan} and Partner plans`}
+ title={`Available on the ${plan} plan`}
className={`inline-flex items-center gap-1.5 whitespace-nowrap rounded-full border border-ed-amber-stroke bg-ed-amber-fill px-2.5 py-[3.5px] font-mono text-ed-10 font-semibold uppercase tracking-[0.04em] text-ed-amber-text ${className}`}
>
<svg width="11" height="11" viewBox="0 0 14 14" fill="none" aria-hidden="true" className="shrink-0">
diff --git a/docs/components/plan-banner-bar.tsx b/docs/components/plan-banner-bar.tsx
index 4aac9b57a9..38a16fc77c 100644
--- a/docs/components/plan-banner-bar.tsx
+++ b/docs/components/plan-banner-bar.tsx
@@ -5,42 +5,45 @@ import { usePathname } from "next/navigation";
/* Full-width sticky announcement bar for plan-gated pages. The docs layout builds a
* url→plan map from `plan` frontmatter and passes it in; this matches the current path
* and, when the page is gated, renders the bar across the whole content area (everything
- * to the right of the left nav). Pinned just under the fixed 64px header. */
+ * to the right of the left nav). Pinned just under the fixed 64px header.
+ *
+ * Markup is a single flowing paragraph (icon+label grouped inline, links inline) so it
+ * reflows cleanly from a one-liner on desktop to a wrapped block on mobile — no stranded
+ * icon, dash, or CTA. */
export function PlanBannerBar({ plans }: { plans: Record<string, string> }) {
const pathname = usePathname();
const plan = plans[pathname] ?? plans[pathname.replace(/\/$/, "")];
if (!plan) return null;
+ const link =
+ "font-semi text-[#4a3211] underline underline-offset-2 transition-opacity hover:opacity-70";
+
return (
- <div className="sticky top-16 z-40 flex flex-wrap items-center gap-x-2 gap-y-1 border-b border-[#e0c389] bg-[#fbe7b8] px-6 py-3 text-ed-14 leading-[150%] text-[#6b4a1d] lg:px-14">
- <svg
- width="14"
- height="14"
- viewBox="0 0 14 14"
- fill="none"
- aria-hidden="true"
- className="shrink-0"
- >
- <rect x="2.6" y="6.3" width="8.8" height="5.6" rx="1.4" stroke="currentColor" strokeWidth="1.4" />
- <path d="M4.5 6.3V4.7a2.5 2.5 0 0 1 5 0v1.6" stroke="currentColor" strokeWidth="1.4" />
- </svg>
- <span className="font-semi text-[#4a3211]">Enterprise feature</span>
- <span className="font-book">
- — included with the {plan} and Partner plans on{" "}
- <a
- href="https://app.carbon.ms"
- className="font-semi text-[#4a3211] underline underline-offset-2 transition-opacity hover:opacity-70"
+ <div className="sticky top-16 z-40 border-b border-[#e0c389] bg-[#fbe7b8] px-6 py-3 text-ed-14 leading-[155%] text-[#6b4a1d] lg:px-14">
+ <span className="mr-1 inline-flex items-center gap-1.5 align-middle font-semi text-[#4a3211]">
+ <svg
+ width="14"
+ height="14"
+ viewBox="0 0 14 14"
+ fill="none"
+ aria-hidden="true"
+ className="shrink-0"
>
+ <rect x="2.6" y="6.3" width="8.8" height="5.6" rx="1.4" stroke="currentColor" strokeWidth="1.4" />
+ <path d="M4.5 6.3V4.7a2.5 2.5 0 0 1 5 0v1.6" stroke="currentColor" strokeWidth="1.4" />
+ </svg>
+ Enterprise feature
+ </span>
+ <span className="font-book">
+ — included with the {plan} plan on{" "}
+ <a href="https://app.carbon.ms" className={link}>
Carbon Cloud
</a>
- . Self-hosted, it needs a commercial license.
+ . Self-host and you need a commercial license.{" "}
+ <a href="/docs/platform/licensing" className={`${link} whitespace-nowrap`}>
+ Licensing →
+ </a>
</span>
- <a
- href="/docs/platform/licensing"
- className="ml-1 font-semi text-[#4a3211] underline underline-offset-2 transition-opacity hover:opacity-70"
- >
- Licensing →
- </a>
</div>
);
}
diff --git a/docs/content/docs/integrations/accounting.mdx b/docs/content/docs/integrations/accounting.mdx
index 69b8d4e6c0..909d1c5105 100644
--- a/docs/content/docs/integrations/accounting.mdx
+++ b/docs/content/docs/integrations/accounting.mdx
@@ -5,7 +5,7 @@ description: Post invoices to Xero and keep currency exchange rates current auto
Two accounting integrations: **Xero** mirrors your <Term id="invoice">invoices</Term> into an external ledger, and **Exchange Rates**
keeps multi-currency math honest. Exchange Rates is available on every plan; Xero is an Enterprise
-(Business / Partner) integration.
+(Business-plan) integration.
## Xero
diff --git a/docs/content/docs/integrations/index.mdx b/docs/content/docs/integrations/index.mdx
index 984f056b6c..ca43d4c9dd 100644
--- a/docs/content/docs/integrations/index.mdx
+++ b/docs/content/docs/integrations/index.mdx
@@ -7,7 +7,7 @@ Carbon ships a set of first-party **integrations** to third-party apps. Each one
under **Settings → Integrations**, where you flip it on and supply its credentials or settings.
Integrations are an **Enterprise** capability. On [Carbon Cloud](https://app.carbon.ms) they're included
-with the **Business** and **Partner** plans; self-hosted, they require a commercial (Enterprise) license —
+with the **Business** plan; self-hosted, they require a commercial (Enterprise) license —
see [Licensing](/docs/platform/licensing). **Email** and **Exchange Rates** are the exceptions, available on
every edition and plan.
diff --git a/docs/content/docs/platform/licensing.mdx b/docs/content/docs/platform/licensing.mdx
index 4da09df48b..6b8cb1df43 100644
--- a/docs/content/docs/platform/licensing.mdx
+++ b/docs/content/docs/platform/licensing.mdx
@@ -11,7 +11,7 @@ Carbon's source is public, but using it isn't unconditional. Two licenses govern
| --- | --- | --- |
| **Community** | The open core — ERP + MES — self-hosted on your own infrastructure. | AGPLv3 |
| **Enterprise** | Self-hosted Carbon with a commercial license: unlocks Enterprise features and lifts the AGPL copyleft obligation. | Commercial |
-| **Cloud** | Carbon run for you at [app.carbon.ms](https://app.carbon.ms) — billed on the Starter, Business, and Partner plans. | Commercial |
+| **Cloud** | Carbon run for you at [app.carbon.ms](https://app.carbon.ms) — billed on the Starter and Business plans. | Commercial |
Self-hosting (the [Docker + Caddy recipe](/docs/platform/self-hosting/docker-caddy)) runs the **Community** edition by default. A commercial license turns the same hardware into the **Enterprise** edition.
diff --git a/docs/content/docs/reference/storage-rules.mdx b/docs/content/docs/reference/storage-rules.mdx
index 3fb048a300..eba0a3df29 100644
--- a/docs/content/docs/reference/storage-rules.mdx
+++ b/docs/content/docs/reference/storage-rules.mdx
@@ -104,7 +104,7 @@ Storage rules live in the **Inventory** area, under **Storage Rules** — create
To attach an existing rule to a single item, use the **Rules** tab on that item.
<Callout type="warn">
-Storage rules are an **Enterprise** capability, gated to the **Business** and **Partner** plans. On other
+Storage rules are an **Enterprise** capability, gated to the **Business** plan. On other
plans the screen shows an upgrade prompt and no rules are evaluated.
</Callout>