Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

novu

БесплатноБез исполняемых скриптовНе проверен

Novu is open-source notification infrastructure: one workflow sends email, SMS, push, in-app and chat messages, with digests, delays, subscriber preferences…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Novu

Overview

Novu receives a trigger event from your backend and runs a workflow that delivers to each subscriber over one or more channels (email, SMS, push, in-app, chat), with delay and digest steps and per-subscriber preferences. Providers (SendGrid, Twilio, FCM, Slack and many more) are configured once in the Novu dashboard.

Workflows can be built in the dashboard, or in code with Novu Framework: your app exposes a bridge endpoint and Novu Cloud calls it to run your step functions. Packages today:

Need Package
Trigger workflows, manage subscribers (server) @novu/api
Define workflows in code @novu/framework
React Inbox bell and preferences @novu/react (@novu/nextjs for Next.js)
CLI (dev, sync, step publish) novu via npx

The old @novu/node server SDK (deprecated, support ended 2025-03) and @novu/notification-center (deprecated 2025-04) should be replaced by @novu/api and @novu/react.

Instructions

Step 1: Define workflows in code

npm install @novu/framework zod@3 zod-to-json-schema

Zod is optional, but if you use it install zod-to-json-schema too, or the server crashes at start with "Cannot find package 'zod-to-json-schema'". Novu Framework documents Zod v3.

// novu/workflows.ts
import { workflow } from "@novu/framework";
import { z } from "zod";

export const orderStatus = workflow(
  "order-status-update",
  async ({ step, payload }) => {
    await step.inApp("in-app-notification", async () => ({
      subject: `Order ${payload.orderId}: ${payload.status}`,
      body: `Your order is now ${payload.status}.`,
      redirect: { url: `/orders/${payload.orderId}` },
    }));

    await step.email("email-notification", async () => ({
      subject: `Order update: ${payload.status}`,
      body: `<p>Order <b>${payload.orderId}</b> is now <b>${payload.status}</b>.</p>`,
    }));

    // Conditional step: use `skip`, not an `if` around the step
    await step.sms(
      "sms-shipped",
      async () => ({ body: `Order ${payload.orderId} has shipped. Track it: ${payload.trackingUrl}` }),
      { skip: () => payload.status !== "shipped" },
    );

    await step.delay("wait-for-delivery", async () => ({ amount: 3, unit: "days" }));

    await step.email("feedback-request", async () => ({
      subject: "How was your order?",
      body: `<p>Tell us how order ${payload.orderId} went.</p>`,
    }));
  },
  {
    payloadSchema: z.object({
      orderId: z.string(),
      status: z.enum(["confirmed", "shipped", "delivered"]),
      trackingUrl: z.string().url().default("https://track.acme-shop.dev"),
    }),
    tags: ["orders"],
  },
);

// Digest: collect events for 30 minutes per subscriber, then send one email
export const activityDigest = workflow(
  "activity-digest",
  async ({ step }) => {
    const { events } = await step.digest("batch-activity", async () => ({ amount: 30, unit: "minutes" }));
    await step.email("digest-email", async () => ({
      subject: `${events.length} new comments on your project`,
      body: `<ul>${events.map((e) => `<li>${String(e.payload.text)}</li>`).join("")}</ul>`,
    }));
  },
  { payloadSchema: z.object({ text: z.string() }) },
);

Step rules: step.inApp needs subject and body; step.email needs subject and an HTML body; step.sms needs body; step.push needs subject and body; step.chat needs body or a card. A digest takes amount and unit, or a cron (not both), plus an optional digestKey to group by something other than the subscriber. Delay units are seconds to months. Steps are found by running the function with mock data, so a step wrapped in an if on payload values can be missing from the workflow Novu sees; skip always keeps it visible. Novu sanitizes HTML in email and in-app output.

Step 2: Expose the bridge endpoint

// server.ts (Express; there are also Next.js, Remix, Hono, NestJS, Lambda and more adapters)
import express from "express";
import { serve } from "@novu/framework/express";
import { orderStatus, activityDigest } from "./novu/workflows.ts";

const app = express();
app.use(express.json()); // required for Novu POST requests
app.use("/api/novu", serve({ workflows: [orderStatus, activityDigest] }));
app.listen(4000, "127.0.0.1");

Set NOVU_SECRET_KEY (from the dashboard API Keys page) in the environment; without it the app throws "Missing secret key" at start. Check the bridge: GET /api/novu?action=health-check returns {"status":"ok","discovered":{"workflows":2,"steps":7}}, and ?action=discover lists workflows, steps and the payload JSON schema.

Step 3: Develop locally and sync

npx novu@latest dev --port 4000          # opens the dashboard in Local mode via a tunnel
npx novu@latest sync --bridge-url https://api.acme-shop.dev/api/novu \
  --secret-key "$NOVU_SECRET_KEY" --api-url https://api.novu.co    # EU: https://eu.api.novu.co

sync

Полный SKILL.md на GitHub

Установить novu в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл novu?

Novu is open-source notification infrastructure: one workflow sends email, SMS, push, in-app and chat messages, with digests, delays, subscriber preferences and a drop-in React Inbox. Use when someone asks to "add notifications", "send email and SMS from one workflow", "in-app notification bell", "digest or batch notifications", "Novu workflow", "Novu Inbox", or "replace my notification code with Novu".

Как установить скилл novu?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл novu запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить novu с