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

Community registry

The plugins.json entry schema, status labels, and the validation that gates every registry change in CI.

The community registry is one static JSON file — apps/fumadocs/content/community/plugins.json in the SDK repository — listing third-party adapters, plugins, and hybrid packages. The docs site renders it on the community page; changes land by pull request and are validated by a script in CI.

To list a package, build it first: Publish a community adapter or Publish a community plugin.

Entry schema

PropType
namestring

Display name. Must be unique across the registry.

Typestring
packagestring

npm package name (valid lowercase name, scoped or not). Unique.

Typestring
kind"adapter" | "plugin" | "hybrid"

What the package adds.

Type"adapter" | "plugin" | "hybrid"
status"community" | "verified" | "official"

Trust label. Anything beyond community requires verification metadata.

Type"community" | "verified" | "official"
descriptionstring

One-line summary shown in the registry.

Typestring
hrefstring

Package or docs link. Must be https.

Typestring
repostring

Public source repository. Must be https and match the package metadata for verified entries.

Typestring
maintainerstring

Maintainer handle.

Typestring
pluginId?string

The plugin's id, when the package exports a plugin factory. Unique.

Typestring
adapter?string

Adapter routing name. Required for adapter and hybrid entries.

Typestring
importName?string

The export users import, e.g. the plugin factory.

Typestring
verifiedVersion?string

Exact package version the verification applies to. Required for verified and official entries.

Typestring
verification?object

Review metadata. Required for verified and official entries.

Typeobject

verification itself requires reviewedAt (ISO date), reviewedBy, provenance: true, noInstallScripts: true, and runtimeDependencies (a non-negative integer); notes is optional.

Status labels

Status Meaning
community Listed by pull request. Not endorsed or audited.
verified Passed the static checks and npm audit for exactly verifiedVersion.
official Maintained by OpenCore or in the Email SDK repository.

Verification is per version: a new release is unverified until the entry’s verifiedVersion is updated and the checks pass again.

Validation

Run the check locally before opening a pull request:

That runs scripts/validate-community-registry.ts, which enforces the schema above: required fields, valid npm package names, https-only links, the enum values, no duplicate name/package/pluginId, adapter on non-plugin entries, and complete verification blocks on verified and official entries.

The npm audit in CI

With --network (or automatically when CI=true — the same script runs in CI via bun run release:ci), verified and official entries get a deeper audit. The script downloads the published npm tarball for verifiedVersion and fails the build if the package:

  1. Has a repository that does not match the entry’s repo.
  2. Defines preinstall, install, or postinstall scripts.
  3. Has a runtime dependency count that differs from verification.runtimeDependencies.
  4. Does not declare @opencoredev/email-sdk as a peer dependency.
  5. Exposes a bin entry.
  6. Contains suspicious tokens in shipped JavaScript (child_process, eval(, Function(, token-stealing env reads, curl /wget ).

Last updated on