Skip to content
You're viewing documentation for v0.6.2. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Publish a community plugin

Package an Email SDK plugin for npm and list it in the community registry.

This guide publishes a plugin — built in Create your first plugin — as an npm package and lists it in the community registry. The registry is a static JSON file in the docs repo; there is no hosted plugin service.

If your package adds a new email provider, follow Publish a community adapter instead — same process, plus field-support documentation.

Shape the package

Name it email-sdk-{plugin} and export the plugin factory (and its options type) from the package root:

The bar: apps use it in one line inside plugins.

Set the package.json requirements

Declare @opencoredev/email-sdk as a peer dependency so apps never end up with two copies of the core types:

Plugin packages should be boring libraries. To qualify for a verified listing later, the package must have:

  • A public source repository (matching the registry entry).
  • npm provenance or trusted publishing.
  • No preinstall, install, or postinstall scripts.
  • No binaries.
  • A small runtime dependency surface.
  • No network calls during import or plugin construction.

These checks reduce supply-chain risk; they do not make third-party code risk-free.

Test registration and behavior

At minimum, prove the plugin registers with createEmailClient and does its job against the memory adapter:

Add a README with the install command, a minimal client example, and what the plugin extends the client with.

Publish and open the registry PR

Publish to npm from your own repository, then add an entry to apps/fumadocs/content/community/plugins.json in the Email SDK repo:

Every field except pluginId is required; href and repo must be https URLs, and name, package, and plugin id must be unique across the registry. Start with status: "community" — verified requires a per-version review with verifiedVersion and verification metadata in the entry.

Verify the entry

CI runs the same validation on the PR. For verified and official entries it also downloads the published tarball and audits it: install scripts, binaries, the peer dependency, repository match, and runtime dependency count.

Next

Last updated on