When a team builds a Strapi plugin with the Plugin SDK
A team should start a Strapi plugin when the behavior it needs lives inside Strapi itself and cannot be expressed through content types, the REST or GraphQL APIs, or settings alone. The Plugin SDK gives that team a packaged, versioned extension with its own server code, admin code and configuration, so the logic ships and is tested as one unit rather than scattered across a project's src/api folders. Start one when the same behavior must be reused across several Strapi projects, when editors need a dedicated admin screen, or when a feature must be distributed to other teams or the public.
Typical triggers include a custom workflow that reacts to entry lifecycle events, an integration with an internal system that needs a stored configuration page, a reusable field or admin view, or a domain action exposed to editors and to tooling. A first plugin usually contains a server entry point that registers lifecycles and services, an admin entry point that adds a menu link or settings page, a small set of permissions, a configuration schema, and a test application that loads the plugin the way a real project would. Each piece is small. The engineering effort sits in deciding which code belongs on the server and which on the admin side, how the plugin's data is stored, and how it behaves when the host project changes.
Because of that, most of the work is structure, testing and version support rather than code volume. The team must confirm which Strapi 5 minor releases it will support, since Strapi ships new minor versions often, and it must check each one against its plugin before release. The reader should ask any partner to show a project layout, a repeatable build and link process, a test app that exercises both server and admin code, and a plan for how the plugin is versioned across the Strapi releases the organization runs. Confirm the exact supported range with the Strapi documentation and your own environment at the time you start.
What the Plugin SDK gives a Strapi 5 plugin project
A Strapi 5 plugin built with the Plugin SDK is split into a few parts that each carry their own risks. The cards below cover the project layout, the server and admin halves, the build and watch loop, and the packaged output. Confirm exact command names and folder paths against the current Strapi plugin documentation before you publish, because Strapi ships minor releases often.
Scaffolded project layout
The SDK generates a project with separate server and admin source folders, a package manifest, and build configuration. Keep the server and admin code paths distinct from the start, because later decisions about routes, services and admin pages all depend on that split. Check the generated folder names and entry files against the current docs, since they can change between releases. Record the layout in your repository's contributing notes so that new engineers do not reorganize it by hand.
Strapi v5 migration FAQServer entry and registration
The server side is where plugin lifecycle hooks, routes, controllers and services are registered when the host Strapi application starts. Treat the register and bootstrap phases as separate responsibilities, and avoid doing heavy work at import time. Confirm which phase each hook runs in for your target Strapi version. Errors here often appear only when a test app boots, so start one early.
Admin panel entry
The admin side is a React entry point that the Strapi admin loads when the plugin is enabled. It registers menu links, pages and settings sections for editors. Keep admin code limited to presentation and calls to server routes, so permission checks stay on the server. Verify that the admin bundle loads after a rebuild, because a silent admin failure is easy to miss in a headless test.
Build and watch loop
The SDK provides build and watch commands that compile server and admin code into the output the host application loads. During development, the watch flow rebuilds on change, but a linked test app may still need a restart to pick up server changes. Confirm the exact script names in your generated package manifest. Add a clean build to your CI pipeline so that stale output never reaches a release.
Packaged output and manifest
The build produces a distributable package whose manifest declares the plugin name, entry points and supported Strapi peer versions. These fields decide what installers and host applications accept, so review them before any publish step. Inspect the packed archive to confirm that only compiled files and required metadata are included. Ask whose release process will own the manifest when several Strapi versions are supported.
Which choices to settle before scaffolding the plugin
This table compares the six decisions that shape the first week of plugin work: release window, distribution, Node.js version, test database, test app origin and edition. Read each row as a commitment: the option sets what the team must maintain, and the right column shows when it fits.
| Decision | Option | What it commits the team to | When it fits |
|---|---|---|---|
| Strapi release line | Strapi 5 only | Testing against v5 minor releases, which ship roughly weekly, and no v4 compatibility code | New plugins with no installed v4 base to support |
| Strapi release line | Wider window including v4 | Separate code paths or adapters for v4 APIs, and a v4 test app | Plugins for customers still on v4, which reached end of life on April 30, 2026 |
| Distribution | Private repository only | Internal versioning and install instructions, with no public listing to maintain | Plugins for one organization's projects |
| Distribution | npm and Marketplace listing | Public package metadata, a license file, and support for users across Strapi versions | Plugins meant for other teams or the wider community |
| Edition and license | Community code under MIT Expat | Plugin code outside any ee directory, so it stays clear of the Enterprise license | Most plugins built on the open-source core |
| Edition and license | Enterprise code under ee directories | A separate Strapi license for that code and distribution limits to the license holder | Features that depend on Enterprise-only capabilities such as audit logs |
| Node.js version | Active or Maintenance LTS release | Pinning the version in CI and local tooling, and retesting when LTS status changes | Any project, since Strapi 5 runs only on these LTS versions |
| Test app database | PostgreSQL 14 or later or MySQL 8.0 or later | Running the test database in CI and matching the production engine | Plugins that will run on production databases of these kinds |
| Test app database | MariaDB 10.3 or later or SQLite 3 | Checking database-specific behavior for each supported engine | Teams already running MariaDB, or quick local tests with SQLite |
| Test app database | MongoDB or other NoSQL databases | Not supported by Strapi 5, so no test matrix can cover it | Not an option for Strapi 5 plugins |
| Test app origin | Fresh project created for the plugin | A clean schema and data for each run, and a plugin linked to a minimal app | Early development and automated tests |
| Test app origin | Existing customer or internal project | Realistic content types and data, but the test app's own changes can hide plugin bugs | Verifying the plugin against real content models before release |
How the plugin project and the test app stay in sync
The plugin source belongs in its own repository, and a separate test Strapi application loads that plugin during development and verification. Keeping the two projects apart means the plugin ships without the test app's content, configuration or uploads, and the test app stays a disposable consumer that you can recreate at any time. The only change the test app needs is a registration: a config/plugins.js (or .ts) entry that names your plugin and enables it, plus any plugin options you want to exercise. Treat that file as the integration contract between the two projects and keep it under version control in the test app, not in the plugin.
Build the plugin before the test app starts, not after. The test app reads the plugin's compiled output, so a stale build produces results that look like bugs in your code but are really leftovers from an earlier build. Use the build and watch commands that the SDK's generated project provides, and confirm in the plugin's own package.json which entry points and exports the build produces. Do not copy files from the plugin into the test app by hand. Link the packages with the local linking mechanism the SDK documents, or point the test app at the plugin path, and rely on that link so that a rebuild is the only step between an edit and a test run.
Check the file layout the current SDK generates instead of relying on memory from an earlier project or a tutorial. Folder names and entry points have changed across Strapi 5 releases, so compare your scaffold with the generator's output for the version you target. Run each verification pass against a test app on the same Strapi version the plugin targets, and record that version next to the test results. Mixing versions makes a passing run meaningless for the release you plan to publish. Ask your team to confirm the exact Strapi version range in the plugin's compatibility settings before the first full run, because that range determines which test apps the release must pass.
How the plugin, test app and release line fit together
The work starts in the plugin repository, where the Plugin SDK builds the plugin into a distributable package. That package is linked into a Strapi 5 test app on each release line the plugin targets, so the same code runs against each version it claims to support. Verification checks the admin panel loads, the server routes respond and the data behaves as designed. A failed check sends the work back to the build, and only a passing run on every targeted line moves on to release to a private registry, npm or the Marketplace.
Plugin source moves through the SDK build and linked test apps, and only passing checks reach release.
Build sequence for a first Strapi plugin
This sequence takes a plugin from a written brief to a packaged build that has been checked against every Strapi release it claims to support. Each step closes with a artifact or check that the next step depends on, so gaps surface before code is written rather than after release.
Write the plugin brief and support matrix
Before any code, the plugin owner and the team that will use it write a short brief: the problem the plugin solves, the content types and admin screens it needs, the Strapi 5 releases it must support, and how it will be distributed, whether to a private registry, the Marketplace or a Git repository. Decide who owns upgrades and who answers support questions. The step is done when the brief is signed off and the support matrix lists specific Strapi 5 minor versions, not a vague range. Confirm the current Strapi plugin distribution options with the Plugin SDK documentation before you commit to one.
Scaffold the project on a supported Node.js LTS line
Generate the plugin project with the scaffolding command documented in the current Plugin SDK guide, then pin the Node.js version to an Active or Maintenance LTS line, which is the requirement Strapi 5 installation docs set for running Strapi. Commit the generated layout, package manifest, lockfile and TypeScript configuration to version control so every developer and CI job starts from the same tree. The step closes when a fresh clone installs cleanly and the project builds with no changes to generated files. Confirm exact generator commands and flags against the SDK documentation, since they change between releases.
Link the plugin to a test Strapi app
Create a test Strapi 5 application on the database your production environment uses, such as PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later or SQLite 3 for local work, and link the plugin into it using the local linking method the SDK documents. Running against the production database engine catches SQL differences early, and Strapi 5 does not support MongoDB. The step is done when the test app starts, shows the plugin in the admin panel and survives a restart. Record the exact test app version and database versions in the repository so the environment can be recreated.
Build the first server and admin behavior
Implement one narrow feature end to end: a server route, a controller or service that performs the action, and an admin page that calls it with the admin permissions you defined in the brief. Keep permission checks on the server, not only in the admin UI. Use an illustrative example such as a plugin that reports stale entries to confirm the path from admin click to server logic to stored result. The step closes when a tester can complete the feature in the test app with an editor role and is refused with a restricted role, which proves the permission wiring.
Verify across every target Strapi release
Run the plugin's automated tests and the manual test script against each Strapi 5 release in the support matrix, not only the newest one. Strapi 5 minor releases ship frequently, so a plugin that passes on one minor version can break on another. Check the admin extension points, the Document Service calls and the response shape your server returns. The step is done when every release in the matrix passes the same checks, and any failing release is either fixed or removed from the matrix with a stated reason. Keep the results in a short log tied to the version numbers tested.
Package the build with a changelog and version policy
Produce the packaged build using the SDK's build command, install the packed artifact into a clean test app to confirm it works without the linked source, and write a changelog entry that names the Strapi releases each plugin version supports. Adopt a written version policy, such as which plugin major version maps to which Strapi 5 line, and state how long older plugin versions receive fixes. The step closes when the packed artifact passes the same verification as the linked build and the changelog and version policy are reviewed by the owner. Confirm the packaging and publishing steps against current documentation before release.
How versioning changes by support window
A plugin that targets one Strapi 5 minor release is the smallest test matrix and the easiest to keep accurate. The team pins the test app to that release, runs the full verification set against it, and publishes a statement that names only that version. Because Strapi 5 minor releases have shipped roughly weekly, such as v5.56.0 on September 30 and v5.57.0 on October 7, 2026, a pinned version goes out of date quickly, so the team must decide in advance when it will move the pin.
- Test scope: build, link to the test app, run server and admin checks, and confirm the plugin loads and its routes respond on the pinned release.
- Test app cadence: update the pin only on a planned schedule, then rerun the full checks before the statement changes.
- Compatibility statement: name the exact pinned version and say that other releases are untested.
- Dependency pinning: lock the
@strapi/sdk-pluginand@strapi/strapiversions in the lockfile so builds stay reproducible. - Retirement: state how users will learn when the pin moves and when older builds stop receiving fixes.
Before you publish, confirm that the statement matches the version your last verification run actually used.
A plugin that supports a range of Strapi 5 releases must prove each release it names, not infer compatibility from the newest one. The team keeps a small matrix of test apps, usually the oldest release in the range, the newest, and any release where a breaking change in the admin or server API landed. The range is widened only after the new release passes the same checks. Weekly minor releases make the matrix grow quickly, so the range should be set by what the team can actually run.
- Test scope: run the verification set against each boundary release and a sample release in between, plus the admin build for each.
- Test app cadence: review the matrix on a fixed rhythm, and add a new release to the range only after it passes.
- Compatibility statement: list the tested range with its lower and upper bounds, and state that releases outside it are not verified.
- Peer dependency range: keep the Strapi peer dependency range in
package.jsonaligned with the tested matrix, not wider. - Breaking changes: record which release introduced each API change the plugin depends on, so a regression can be traced quickly.
Before you widen the range, confirm each boundary release in the matrix was installed and checked, not assumed from the release notes.
A plugin that must follow Enterprise edition code faces a different constraint: some functionality depends on code under ee directories, which Strapi distributes under a separate Strapi license rather than the MIT Expat license that covers the Community Edition. The test app needs a licensed Enterprise install, so the team's test environment, CI access and release process all depend on license terms. Support statements must separate the Community code paths from the Enterprise paths and say which edition each claim covers.
- Test scope: run Community checks on a standard test app, and separately run Enterprise-dependent checks on a licensed install with the matching edition.
- Test app cadence: update the Enterprise test app on the same release schedule, but confirm license access for each update before planning the work.
- Compatibility statement: state the edition for each claim and avoid implying that Community users get Enterprise features.
- License review: have legal or licensing staff confirm that redistributing or depending on
eecode is permitted for the plugin's distribution model. - CI secrets: decide how license credentials reach CI and make sure they are never written to public build logs or artifacts.
Before you publish, confirm with Strapi's license terms and your own counsel whether the Enterprise dependency is allowed in the way you distribute the plugin.
What drives effort in a Strapi plugin build
This table lists the factors that move the work of a Strapi plugin up or down, with the way each one adds effort and the step a team can take to keep it contained. Read it before agreeing on scope, since most of the effort comes from decisions made in the first week rather than from the code itself.
| Driver | How it increases effort | How to keep it down |
|---|---|---|
| Admin screens and server routes | Each admin page, settings section and route needs its own permission checks, validation, error states and tests in both the admin and server halves of the SDK project. | Start with the smallest set of screens that proves the use case and list every route in the scope document before build starts. |
| Strapi versions supported | Each supported Strapi 5 minor line may change admin APIs or server helpers, so every release must be built and checked against more than one test app. | Name the Strapi versions in the first scope document and drop older lines explicitly rather than leaving the range open. |
| Data model complexity | Plugin content types, relations, lifecycle hooks and migrations multiply the cases a tester must check, especially when existing users already hold data. | Keep plugin content types few and stable, and agree on a schema change policy before the first public release. |
| Enterprise-only features | Code that depends on Enterprise Edition features under the separate Strapi license adds a licensing check, a second test setup and different distribution steps. | Confirm early whether the plugin must run on Community Edition only, and isolate any Enterprise code behind clear boundaries. |
| Test coverage expectations | Teams that expect unit, integration and admin UI tests for every release spend more time writing fixtures and keeping them current with each Strapi minor. | Agree on a minimum test list for each release type, and treat anything beyond it as a later improvement. |
| CI setup | A build that must install several Strapi versions, run a test app per version and publish packages takes longer to create and to debug when a runner changes. | Begin with one pipeline that builds and links to a single test app, then add version matrix jobs once the first one is stable. |
| Release reviewers | Each extra person who must approve a release adds waiting time, conflicting feedback and repeat checks, particularly when security or legal sign-off is needed. | Write a verification checklist and name one approver per check before the first release, so reviewers see the same evidence. |
| Confirm with your team | Ask whether the Strapi minor release cadence, support window and license terms in your environment match the plan, and check the current release notes before estimating. | Review the Strapi GitHub releases page and the Strapi LICENSE file at the start of the scope conversation. |
How the plugin connects to the rest of the Strapi platform
A first Strapi plugin rarely stays inside its own folder. Each connection below changes what the build must account for, from admin screens and data models to distribution and licensing. The database and hosting choices made for the wider Strapi project also set the limits of the test environment, so the plugin should be verified against the same versions and database engine the target project will run.
Admin pages and settings
A plugin that adds screens to the admin panel must register its menu links, settings sections and permissions, and it must load correctly in the admin build that editors actually use. Check that the plugin's admin entry point compiles against the Strapi release your project runs, and that permission checks protect every plugin page, not only the menu entry. The sibling topic on adding admin pages and settings covers injection zones, admin hooks and plugin page permissions in depth.
Plugin content types and server APIs
If the plugin stores its own data, it defines content types, routes, controllers and services, and these run through the Document Service API introduced in Strapi 5. Lifecycle timing and the data passed from server to admin panel both affect how the plugin behaves during edits and migrations. The sibling topic on storing plugin data with content types and server APIs explains how to design these pieces so they survive later schema changes.
Extending existing plugins
Some requirements are better met by changing a plugin another team already maintains, using the extensions folder in the project rather than editing the plugin's source. The build must record which plugin version each extension targets, because a plugin upgrade can silently break an override. The sibling topic on extending and overriding existing plugins covers the upgrade risk and when forking or wrapping is the safer choice.
Publishing to npm and the Marketplace
A plugin meant for other teams needs a package layout, a verified build output and a release process that other projects can install. Before release, confirm which Strapi versions the plugin supports and test each one, because the project's own upgrade path determines which users can adopt it. The sibling topic on publishing to npm and the Marketplace covers packaging, Marketplace listing and version support.
Enterprise plugins and licensing
Code under Enterprise directories is covered by a separate Strapi license, not the MIT Expat license that covers the Community Edition. A plugin that depends on Enterprise features must state that dependency, and its build must not copy Enterprise code into a package released under a different license. The sibling topic on installing Enterprise plugins explains distribution with a license, registry access in CI and offline builds.
Strapi LICENSE fileCustom MCP tools
A plugin can register tools with the Strapi MCP server so AI clients can run domain-specific actions. Each tool needs its own permission check, because an AI client can call it without an editor clicking through the admin panel. Confirm the tool's permission scope and when it becomes available in the server lifecycle. The sibling topic on adding custom MCP tools to Strapi from a plugin covers registration and permission checks.
Questions teams ask before building a Strapi plugin
Can an internal team build a first Strapi plugin without a partner?
Yes, an internal team with JavaScript and Node.js experience can build a first plugin without an outside partner, provided it has time, a test app and someone who owns the outcome. The learning curve sits in Strapi's plugin structure, the server and admin split, and the Strapi 5 APIs, so the first build usually costs more time than a second one. A partner is most useful when the plugin must be shipped to several customers or environments on a fixed schedule. Confirm your team's skills against the plugin scope before you decide.
What does the work need from our side?
Plan for four inputs before the build starts. First, Node.js and database access in a development environment that matches the versions Strapi 5 supports, which you should confirm in the installation requirements. Second, a named product owner who decides what the plugin does and accepts the result. Third, a test environment with a Strapi app the plugin can be linked to and tested against, plus a staging copy of your data where relevant. Fourth, a release decision maker who approves publishing, internal distribution and version support.
How long does a first Strapi plugin take to build?
The duration depends on the scope: the number of content types, admin screens, server routes and integrations, and how much testing and documentation the plugin needs. No reliable figure applies across plugins, so do not rely on a generic number. Ask any vendor, including DeployOpen, for a written estimate that lists the features, the test plan and the acceptance criteria. A good estimate separates the build from the verification and release steps.
What drives the cost of a Strapi plugin project?
The main drivers are the number of features, whether the plugin adds server APIs, admin pages or both, the integrations with other systems, the data model complexity, and the number of Strapi versions and environments it must support. Costs also rise with security review, documentation, and the amount of rework after acceptance testing. Costs fall when requirements are written down early and the test app is ready on day one. When you request a quote, ask who is paying for each phase: design, build, testing, release and any later support.
Must a plugin be rebuilt for every Strapi release?
Not necessarily, but each Strapi release can change APIs that your plugin uses, so the plugin must be tested against every version you intend to support. Strapi 5 ships minor releases frequently, so a test matrix and a compatibility policy matter more than a rebuild. Decide which Strapi 5 versions the plugin targets, automate the build and test steps, and review the release notes before you upgrade your app. Confirm the supported versions and their peer dependency declarations in the Plugin SDK documentation.
Does Community Edition licensing apply to the code we write?
Strapi's Community Edition is released under the MIT Expat license, and the license file in the Strapi repository states the terms that apply to that code. Code under the ee directories is covered by a separate Strapi license, so your plugin should not copy from those directories without reviewing the terms. Whether your own plugin code can be licensed or distributed as you intend is a legal question. Confirm the license file and have your legal team review your intended distribution model before publishing.
What does ongoing support for a plugin look like?
Ongoing support covers Strapi version compatibility, dependency updates, bug fixes, security patches and responses to user issues. It recurs for as long as the plugin is in use, so budget for it separately from the first build. Support can be handled by your team or by a retainer with a partner, and the agreement should state response expectations, which Strapi versions are covered and who approves each release. Ask for those terms in writing before accepting the build.
How DeployOpen scopes and delivers Strapi plugin builds
DeployOpen treats a Plugin SDK build as a fixed-scope piece of work with a written scope, deliverables and timeline agreed before any code is written. The team plans the plugin layout, the test app used for verification, and the Strapi versions the plugin must support, then builds, tests, documents and hands over the result inside infrastructure you control.
How we scope
- Written scope names the plugin's purpose, its server and admin features, and the Strapi 5 versions it must run on.
- Scope records which Node.js and database versions the test app and target environments use, checked against Strapi's supported list.
- Quotes follow from the written scope, so ask which plugin features, test cases and release steps each line item covers.
How we build
- Project layout is set up with the Plugin SDK, with server and admin code kept separate and linked to a test Strapi app during development.
- Build and verification steps run against the test app, so the team can confirm the plugin loads and behaves before each release.
- Versioning approach is designed for several Strapi 5 releases, and compatibility is checked as the framework's minor releases ship.
How we hand over
- Handover includes the source repository, build and verification instructions, and notes on how the plugin is linked to a test app.
- Documentation covers the plugin layout, supported Strapi versions, the release process and known compatibility limits.
- Knowledge transfer sessions walk your engineers through making changes, rebuilding and verifying the plugin on their own.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, covering plugin changes after handover.
- Retainer work can track new Strapi 5 releases, retest the plugin against them, and update the version matrix.
- Ask during scoping whether support should cover publishing to npm or the Marketplace, or stay within your private registry.

