SimpleNS uses a plugin-based architecture that allows you to extend its capabilities by adding new notification providers without modifying the core system.
Why Plugins?
Plugins keep the core lean while enabling unlimited extensibility. Add only the providers you need, exactly how you need them configured.
Open Dashboard → Plugins (/plugins) (or use the /api/plugins/* APIs) to browse the plugin catalog (GET /api/plugins/catalog) and install official or community npm packages.
If you host private plugins, configure custom npm registry/scope tokens via npm Auth (NpmAuthService) right in the Dashboard.
Installed plugins, encrypted provider credentials, and channel routings are stored in MongoDB and hot-reloaded with zero restarts across all API, worker, and processor containers via Redis Pub/Sub (PluginSyncService, ProviderManagerService, ChannelRoutingService).
SimpleNS separates Plugins from Provider Instances so you can scale and isolate credentials cleanly:
Plugin: The npm package (e.g., @simplens/resend, @simplens/nodemailer-gmail) installed in SimpleNS.
Provider Instance: A named configuration of a plugin with its own encrypted credentials, priority, and rate limit (e.g., resend-acct-1 and resend-acct-2 using different API keys on the same @simplens/resend plugin).
Channel Routing: Chains your provider instances into a default + ordered fallback_provider_ids list per channel, enabling automatic failover on both errors and rate limits. See Multi-Provider Channel Routing.
Everything is managed live in Dashboard → Plugins (/plugins):
Install / Upgrade / Uninstall: Install packages from npm, switch versions, or uninstall plugins without restarting containers.
Provider Instances: Create one or more provider instances per plugin with encrypted credentials, priority, rate limits (maxTokens, refillRate), and optional file attachment overrides.
Channel Routing: Assign a default and optional fallback provider for each channel (e.g., email → gmail-primary, fallback resend-backup).
Upgrading from simplens.config.yaml?
If your MongoDB collections are empty on startup and a legacy simplens.config.yaml exists, YamlMigrator automatically imports your providers, credentials, and channel routings into MongoDB.