Packages
@notifkit/provider-console
A transport that sends nothing: it prints the message and reports success. Right for development and tests: no API key, no network, no real recipient, no dependencies.
npm install @notifkit/provider-console
import { NotifkitServer } from "notifkit";
import { ConsoleTransport } from "@notifkit/provider-console";
new NotifkitServer({
services: ["all"],
providers: [
new ConsoleTransport({ channel: "email" }),
new ConsoleTransport({ channel: "sms" }),
new ConsoleTransport({ channel: "push" }),
],
});
Options
| Option | Required | Notes |
|---|---|---|
channel | no | Defaults to push, not to every channel. One instance serves one channel. |
logger | no | Also emits a structured log line, if you would rather read that than the banner. |
limits | no | Unset by default: no throttling. |
One instance is one channel
It defaults to push. Pass { channel: "email" } to print email.
What it prints
┌───────────────── 📲 PUSH NOTIFICATION ─────────────────
│ to token : [email protected]
│ recipient: usr_123
│ priority : normal
│ content : {"subject":"Welcome","text":"Hi Alice"}
│ taskId : 0f8c2b7e-…
└───────────────────────────────────────────────────────────
Every send returns { success: true } with a synthetic providerMessageId
of console-<timestamp>. No failure path: the point in development, the
limitation in tests.
Not for production
It reports every message as delivered and sends nothing. Never register it in production.