Skip to main content
A Plugin adds platform capability — a new node, a new RAG provider. A new messaging channel is not a Plugin but a Connector. That is what separates it from a Solution, which adds domain logic such as HR or recruitment.
Core implements CoreRegistrarInterface for Solutions only, and for them only action handlers. It does not discover Plugins yet: the package type fapost-plugin is reserved, but only Solutions have a manifest Core reads (see The Solution manifest). The contracts below exist in fapost/foundation; the Core side that consumes them for Plugins is not built yet.

The service provider

A Plugin is a Composer package whose service provider extends Fapost\Foundation\Lifecycle\AbstractPluginServiceProvider:
onActivate() and onDeactivate() are available to hook enabling and disabling; both are no-ops unless you override them.

Identity

A Plugin does not declare its id or version in code. Like a Solution, it will describe itself in its own composer.json, so Core can check it without running it; the format is shared and is described on the Solution page. Core does not read it for Plugins yet.

What you may register

Everything is meant to go through CoreRegistrarInterface, the single registration entry point defined in fapost/foundation. Core does not implement it for Plugins yet.
An extension declares intent through the registrar. It must not call Route, Schedule, or the migrator directly — the platform decides when and how those are mounted.

Rules

Depend on public contracts, not Core internals. Everything a Plugin needs is in fapost/foundation. A use App\… statement in a Plugin will break on a Core refactor, and nothing in the stability promise covers it. Do not inject Vue components into the running builder. The builder front end is compiled before your Plugin is enabled. Make a node configurable by describing it with a configuration schema — see Builder UI extensions. Follow migration isolation. A Plugin migration is a DDL operation like any other: no app(), no config(), no tenant-aware services, no reads of another module’s tables. See Migration isolation.