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.

refactor: remove Novu integration and update documentation

naveenkash25ef5ca7106d
diff --git a/.env.example b/.env.example
index fd739867ef..2c91b99a10 100644
--- a/.env.example
+++ b/.env.example
@@ -34,10 +34,6 @@ RESEND_API_KEY="************************"
RESEND_DOMAIN="carbon.ms"
# RESEND_AUDIENCE_ID="*****" # Optional — required for contact management in `packages/jobs`
-# Novu
-NOVU_APPLICATION_ID="********************"
-NOVU_SECRET_KEY="********************"
-
# Inngest (production keys; dev mode flags are in .env.local)
# INNGEST_SIGNING_KEY="signkey-****-********************"
# INNGEST_EVENT_KEY="********************"
diff --git a/README.md b/README.md
index d095939fb1..e6c42f478b 100644
--- a/README.md
+++ b/README.md
@@ -85,7 +85,6 @@ Technical highlights:
- [Inngest](https://inngest.com) - jobs
- [Resend](https://resend.com) – email
- [Lingui](https://lingui.dev) - i18n
-- [Novu](https://novu.co) – notifications
- [Vercel](https://vercel.com) – hosting
- [Stripe](https://stripe.com) - billing
@@ -149,7 +148,6 @@ In addition you must configure the following external services:
| Posthog | Product analytics platform | [https://us.posthog.com/signup](https://us.posthog.com/signup) |
| Stripe | Payments service | [https://dashboard.stripe.com/login](https://dashboard.stripe.com/login) |
| Resend | Email service | [https://resend.com](https://resend.com) |
-| Novu | Notifications service | [https://dashboard.novu.co/auth/sign-in](https://dashboard.novu.co/auth/sign-in) |
Posthog has a free tier which should be plenty to support local development. If you're self hosting and you don't want to use Posthog, it's pretty easy to remove the analytics.
@@ -235,7 +233,7 @@ $ cp ./.env.example ./.env
- `SUPABASE_ANON_KEY`, `SUPABASE_SERVICE_ROLE_KEY` — keys minted per-worktree from a random `SUPABASE_JWT_SECRET`
- `SUPABASE_DB_URL` — direct Postgres URL on a dynamic port
-`.env.local` is generated; do not commit it or hand-edit values that came from `crbn up` (they are re-derived on each boot). Put genuine secrets (OAuth client IDs, Stripe keys, Resend, Novu) in `.env` only.
+`.env.local` is generated; do not commit it or hand-edit values that came from `crbn up` (they are re-derived on each boot). Put genuine secrets (OAuth client IDs, Stripe keys, Resend) in `.env` only.
Run `crbn status` at any time to see the live port assignment and the URLs portless is serving.
@@ -258,19 +256,6 @@ Run `crbn status` at any time to see the live port assignment and the URLs portl
Resend is used for transactional emails (user invitations, email verification, onboarding). All three variables are stored in `packages/auth/src/config/env.ts`.
-7. **Novu** (In-app notifications) - [Create a Novu account](https://dashboard.novu.co/auth/sign-in) and configure:
-
-- `NOVU_APPLICATION_ID="********************"` (Client-side, public)
-- `NOVU_SECRET_KEY="********************"` (Server-side secret, backend only)
-
-Novu is used for in-app notifications and notification workflows. After standing up the application and tunnelling port 3000, sync your Novu workflows:
-
-```bash
-pnpm run novu:sync
-```
-
-This command syncs your Novu workflows with the Carbon application using the bridge URL.
-
Finally, boot the stack and the apps:
```bash
diff --git a/apps/erp/app/types/index.ts b/apps/erp/app/types/index.ts
index 8dc5607f47..0454034754 100644
--- a/apps/erp/app/types/index.ts
+++ b/apps/erp/app/types/index.ts
@@ -29,9 +29,8 @@ export type ListItem = {
name: string;
};
-// Topbar shape — matches the surface the old Novu IMessage exposed so
-// consumers don't change. `payload` mirrors what notify.ts writes into the
-// notification row's payload jsonb column.
+// Topbar notification shape. `payload` mirrors what notify.ts writes into
+// the notification row's payload jsonb column.
export type Notification = {
_id: string;
read: boolean;
diff --git a/llm/cache/environment-configuration.md b/llm/cache/environment-configuration.md
index b8c24969b3..5873ca0e55 100644
--- a/llm/cache/environment-configuration.md
+++ b/llm/cache/environment-configuration.md
@@ -32,7 +32,6 @@
#### External Services
- `RESEND_API_KEY` - Email service API key
-- `NOVU_APPLICATION_ID` & `NOVU_SECRET_KEY` - Notification service
- `POSTHOG_API_HOST` & `POSTHOG_PROJECT_PUBLIC_KEY` - Analytics
- `SLACK_BOT_TOKEN` - Slack integration
- `TRIGGER_ID`, `TRIGGER_API_KEY`, `TRIGGER_API_URL`, `TRIGGER_SECRET_KEY` - Trigger.dev job queue
diff --git a/llm/cache/sst-deployment-infrastructure.md b/llm/cache/sst-deployment-infrastructure.md
index 99aa77da17..8735192c69 100644
--- a/llm/cache/sst-deployment-infrastructure.md
+++ b/llm/cache/sst-deployment-infrastructure.md
@@ -55,7 +55,6 @@ Both ERP and MES services receive identical environment variable configurations
#### External Services
- `CLOUDFLARE_TURNSTILE_*` - Bot protection
- `EXCHANGE_RATES_API_KEY` - Currency exchange
-- `NOVU_*` - Notifications
- `OPENAI_API_KEY` - AI features
- `POSTHOG_*` - Analytics
- `RESEND_API_KEY` - Email service
diff --git a/package.json b/package.json
index 97369bbb7b..e7108d7a7f 100755
--- a/package.json
+++ b/package.json
@@ -56,7 +56,6 @@
"lingui:compile": "lingui compile --namespace es",
"lingui:extract": "lingui extract --clean",
"lingui:clean": "node ./scripts/strip-po-headers.mjs",
- "novu:sync": "pnpm dlx novu@latest sync --bridge-url https://app.carbon.ms/api/novu --secret-key $NOVU_SECRET_KEY --api-url https://api.novu.co",
"prepare": "pnpm exec husky install",
"test": "turbo run test",
"tool:new": "tsx scripts/create-tool.ts",
diff --git a/packages/database/supabase/migrations/20260508120001_notifications.sql b/packages/database/supabase/migrations/20260508120001_notifications.sql
index bb4259c0f1..86a258f6c2 100644
--- a/packages/database/supabase/migrations/20260508120001_notifications.sql
+++ b/packages/database/supabase/migrations/20260508120001_notifications.sql
@@ -1,6 +1,5 @@
--- In-app notification store. Replaces Novu cloud storage so we own the data
--- and can stream changes to clients via Supabase Realtime instead of Novu's
--- WebSocket service.
+-- In-app notification store. Owns the data so we can stream changes to
+-- clients via Supabase Realtime.
--
-- Grouping model: notifications can be flat or grouped under a "digest" row.
-- A digest is itself a notification row (event = "digest"); its children point
diff --git a/packages/notifications/src/index.ts b/packages/notifications/src/index.ts
index bd2d0108ec..e25b441f86 100644
--- a/packages/notifications/src/index.ts
+++ b/packages/notifications/src/index.ts
@@ -1,8 +1,8 @@
// Notification event taxonomy. Kept as a standalone package because the
// enums are referenced from app routes, scheduled jobs, and the inngest
-// notify function. The previous Novu trigger helpers have been removed —
-// callers now dispatch a `carbon/notify` event via @carbon/lib's `trigger()`
-// and the notify function handles fan-out (in-app / email / slack).
+// notify function. Callers dispatch a `carbon/notify` event via
+// @carbon/lib's `trigger()` and the notify function handles fan-out
+// (in-app / email / slack).
export enum NotificationEvent {
ApprovalApproved = "approval-approved",