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:
final class AcmePluginServiceProvider extends AbstractPluginServiceProvider{ protected function registerExtensions(CoreRegistrarInterface $registrar): void { $registrar->registerNodeHandler(AcmeNodeHandler::class); }}
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.
Method
Registers
registerActionHandler(string $handlerClass)
An action handler, reached by the call node’s handler transport
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FaPost","description":"Conversational assistants and flow automation platform.","colors":{"primary":"#5a6e58","light":"#94a187","dark":"#3f4f3d"},"favicon":"https://mintcdn.com/fapost/dkK02WohiwWLokiz/favicon.svg?fit=max\u0026auto=format\u0026n=dkK02WohiwWLokiz\u0026q=85\u0026s=f3739e1cf80934093fb16564881363f9","background":{"color":{"light":"#f5f4f1","dark":"#131211"}},"navbar":{"links":[{"href":"https://github.com/fapost-lab/core","type":"github"}]},"footer":{"socials":{"github":"https://github.com/fapost-lab/core","website":"https://fapost.in"}},"fonts":{"family":"DM Sans"},"styling":{"codeblocks":{"theme":"one-dark-pro"},"latex":false},"banner":{"content":"FaPost is pre-1.0 and this documentation is still being written. Sections say where they are incomplete.","dismissible":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fapost","hasAudioNarration":false,"actualSubdomain":"fapost","customDomains":["docs.fapost.in"],"gitSource":{"type":"github","owner":"fapost-lab","repo":"core","deployBranch":"main","contentDirectory":"docs/site","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b074ff41a35d39c8c78521c","clientVersion":"0.0.4330","searchFilterCounts":[{"language":"default","tag":"Developers","count":35},{"language":"default","tag":"User guide","count":35},{"language":"default","tag":"Self-hosting","count":15},{"language":"default","tag":"Admin panel","count":11},{"language":"default","tag":"Flows","count":9},{"language":"default","tag":"Reference","count":8},{"language":"default","tag":"Operate","count":7},{"language":"default","tag":"Core internals","count":6},{"language":"default","tag":"Development environment","count":5},{"language":"default","tag":"Contributing to Core","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#content.mdx-content h2{font-size:1.75rem;line-height:1.25;letter-spacing:-0.02em;margin-top:4rem;padding-top:2rem;border-top:1px solid rgb(23 23 23 / 12%)}.dark #content.mdx-content h2{border-top-color:rgb(255 255 255 / 12%)}#content.mdx-content h2:first-child{margin-top:1rem;padding-top:0;border-top:0}#content.mdx-content h3{font-size:1.3125rem;line-height:1.35;letter-spacing:-0.01em;margin-top:2.75rem}#content.mdx-content h4{font-size:1.0625rem;line-height:1.4;margin-top:2rem;color:rgb(82 82 82)}.dark #content.mdx-content h4{color:rgb(163 163 163)}@media (max-width: 639px){#content.mdx-content h2{font-size:1.5rem;margin-top:3rem;padding-top:1.5rem}#content.mdx-content h3{font-size:1.1875rem;margin-top:2.25rem}}"}]}
{"page":{"pagePath":"extending/plugins","slug":"/extending/plugins","pageMetadata":{"title":"Building a Plugin","description":"Extensions installed and enabled at runtime.","href":"/extending/plugins"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Extensions installed and enabled at runtime.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A Plugin adds `,_jsx(_components.strong,{children:`platform capability`}),` — a new node, a new RAG provider. A new\nmessaging channel is not a Plugin but a `,_jsx(_components.a,{href:`/extending/connectors`,children:`Connector`}),`.\nThat is what separates it from a `,_jsx(_components.a,{href:`/extending/solutions`,children:`Solution`}),`, which adds\ndomain logic such as HR or recruitment.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Core implements `,_jsx(_components.code,{children:`CoreRegistrarInterface`}),` for `,_jsx(_components.a,{href:`/extending/solutions#registering-actions`,children:`Solutions`}),`\nonly, and for them only action handlers. It does not discover Plugins yet: the package type\n`,_jsx(_components.code,{children:`fapost-plugin`}),` is reserved, but only Solutions have a manifest Core reads (see\n`,_jsx(_components.a,{href:`/extending/solutions#the-manifest`,children:`The Solution manifest`}),`). The contracts below\nexist in `,_jsx(_components.code,{children:`fapost/foundation`}),`; the Core side that consumes them for Plugins is not built yet.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`the-service-provider`,children:`The service provider`}),`\n`,_jsxs(_components.p,{children:[`A Plugin is a Composer package whose service provider extends\n`,_jsx(_components.code,{children:`Fapost\\\\Foundation\\\\Lifecycle\\\\AbstractPluginServiceProvider`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes one-dark-pro one-dark-pro`,style:{backgroundColor:`#282c34`,\"--shiki-dark-bg\":`#282c34`,color:`#abb2bf`,\"--shiki-dark\":`#abb2bf`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:`final`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` class`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:` AcmePluginServiceProvider`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` extends`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:` AbstractPluginServiceProvider`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` protected`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:` function`}),_jsx(_components.span,{style:{color:`#61AFEF`,\"--shiki-dark\":`#61AFEF`},children:` registerExtensions`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`CoreRegistrarInterface`}),_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:` $registrar`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`): `}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`void`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E06C75`,\"--shiki-dark\":`#E06C75`},children:` $registrar`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`->`}),_jsx(_components.span,{style:{color:`#61AFEF`,\"--shiki-dark\":`#61AFEF`},children:`registerNodeHandler`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`(`}),_jsx(_components.span,{style:{color:`#E5C07B`,\"--shiki-dark\":`#E5C07B`},children:`AcmeNodeHandler`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`::`}),_jsx(_components.span,{style:{color:`#C678DD`,\"--shiki-dark\":`#C678DD`},children:`class`}),_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#ABB2BF`,\"--shiki-dark\":`#ABB2BF`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`onActivate()`}),` and `,_jsx(_components.code,{children:`onDeactivate()`}),` are available to hook enabling and disabling;\nboth are no-ops unless you override them.`]}),`\n`,_jsx(Heading,{level:`2`,id:`identity`,children:`Identity`}),`\n`,_jsxs(_components.p,{children:[`A Plugin does not declare its id or version in code. Like a Solution, it will describe itself in\nits own `,_jsx(_components.code,{children:`composer.json`}),`, so Core can check it without running it; the format is shared and is\ndescribed on the `,_jsx(_components.a,{href:`/extending/solutions#the-manifest`,children:`Solution page`}),`. Core does not read it for\nPlugins yet.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-may-register`,children:`What you may register`}),`\n`,_jsxs(_components.p,{children:[`Everything is meant to go through `,_jsx(_components.code,{children:`CoreRegistrarInterface`}),`, the single registration\nentry point defined in `,_jsx(_components.code,{children:`fapost/foundation`}),`. Core does not implement it for Plugins yet.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Registers`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`registerActionHandler(string $handlerClass)`})}),_jsxs(_components.td,{children:[`An action handler, reached by the `,_jsx(_components.code,{children:`call`}),` node’s `,_jsx(_components.code,{children:`handler`}),` transport`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`registerNodeHandler(string $handlerClass)`})}),_jsx(_components.td,{children:`A node handler for the flow engine`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`registerDataAccessor(string $namespace, string $accessorClass)`})}),_jsxs(_components.td,{children:[`A read accessor for condition nodes, under `,_jsx(_components.code,{children:`module.\u003cnamespace>.*`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`registerRagAdapter(string $provider, string $adapterClass)`})}),_jsxs(_components.td,{children:[`A retrieval provider, for example `,_jsx(_components.code,{children:`pgvector`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`registerRoutes(Closure $routes)`})}),_jsx(_components.td,{children:`Routes, for the platform to mount`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`registerSchedule(Closure $schedule)`})}),_jsx(_components.td,{children:`Scheduled callbacks`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`registerMigrations(string $path)`})}),_jsx(_components.td,{children:`A migrations directory`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`An extension declares intent through the registrar. It must not call `,_jsx(_components.code,{children:`Route`}),`,\n`,_jsx(_components.code,{children:`Schedule`}),`, or the migrator directly — the platform decides when and how those\nare mounted.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`rules`,children:`Rules`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Depend on public contracts, not Core internals.`}),` Everything a Plugin needs is\nin `,_jsx(_components.code,{children:`fapost/foundation`}),`. A `,_jsx(_components.code,{children:`use App\\\\…`}),` statement in a Plugin will break on a Core\nrefactor, and nothing in the stability promise covers it.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Do not inject Vue components into the running builder.`}),` The builder front end\nis compiled before your Plugin is enabled. Make a node configurable by describing\nit with a configuration schema — see `,_jsx(_components.a,{href:`/extending/builder-ui`,children:`Builder UI extensions`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Follow migration isolation.`}),` A Plugin migration is a DDL operation like any\nother: no `,_jsx(_components.code,{children:`app()`}),`, no `,_jsx(_components.code,{children:`config()`}),`, no tenant-aware services, no reads of another\nmodule’s tables. See `,_jsx(_components.a,{href:`/contributing/migration-isolation`,children:`Migration isolation`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":"one-dark-pro"},"config":{},"pageMetadata":{"title":"Building a Plugin","description":"Extensions installed and enabled at runtime.","href":"/extending/plugins"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The service provider","slug":"the-service-provider","depth":2,"children":[]},{"title":"Identity","slug":"identity","depth":2,"children":[]},{"title":"What you may register","slug":"what-you-may-register","depth":2,"children":[]},{"title":"Rules","slug":"rules","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"fapost","siteName":"FaPost","title":"Building a Plugin - FaPost","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-16T14:00:25.769Z","originalFileLocation":"extending/plugins.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Extensions installed and enabled at runtime.\">\u003cmeta data-mint-head name=\"application-name\" content=\"FaPost\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Building a Plugin - FaPost\">\u003cmeta data-mint-head property=\"og:description\" content=\"Extensions installed and enabled at runtime.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FaPost\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.fapost.in/extending/plugins\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fapost.mintlify.site/_mintlify/api/og/v2?division=Building+extensions\u0026amp;title=Building+a+Plugin\u0026amp;description=Extensions+installed+and+enabled+at+runtime.\u0026amp;theme=baf5a1f6c1a967e68ab29869\u0026amp;signature=f67c43f3855129d3c25abcb364852459df3afecb691199d7c6e26bbe4918ddce\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Building a Plugin - FaPost\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Extensions installed and enabled at runtime.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fapost.mintlify.site/_mintlify/api/og/v2?division=Building+extensions\u0026amp;title=Building+a+Plugin\u0026amp;description=Extensions+installed+and+enabled+at+runtime.\u0026amp;theme=baf5a1f6c1a967e68ab29869\u0026amp;signature=f67c43f3855129d3c25abcb364852459df3afecb691199d7c6e26bbe4918ddce\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/fapost/2DoYb1P3wGVpeaWw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FaPost\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5a6e58\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.fapost.in/extending/plugins\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/extending/plugins.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.fapost.in/#organization\",\"name\":\"FaPost\",\"url\":\"https://docs.fapost.in\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.fapost.in#website\",\"name\":\"FaPost\",\"url\":\"https://docs.fapost.in\",\"publisher\":{\"@id\":\"https://docs.fapost.in/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.fapost.in/extending/plugins#webpage\",\"url\":\"https://docs.fapost.in/extending/plugins\",\"name\":\"Building a Plugin\",\"description\":\"Extensions installed and enabled at runtime.\",\"dateModified\":\"2026-10-16T14:00:25.769Z\",\"isPartOf\":{\"@id\":\"https://docs.fapost.in#website\"},\"breadcrumb\":{\"@id\":\"https://docs.fapost.in/extending/plugins#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.fapost.in/extending/plugins#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Building extensions\",\"item\":\"https://docs.fapost.in/extending/development-setup\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Building a Plugin\",\"item\":\"https://docs.fapost.in/extending/plugins\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.fapost.in/extending/plugins#article\",\"headline\":\"Building a Plugin\",\"name\":\"Building a Plugin\",\"description\":\"Extensions installed and enabled at runtime.\",\"url\":\"https://docs.fapost.in/extending/plugins\",\"mainEntityOfPage\":{\"@id\":\"https://docs.fapost.in/extending/plugins#webpage\"},\"dateModified\":\"2026-10-16T14:00:25.769Z\",\"publisher\":{\"@id\":\"https://docs.fapost.in/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.fapost.in#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FaPost\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FaPost\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/extending/plugins.md","siteName":"FaPost","nav":{"global":null,"tabs":[{"tab":"User guide","pages":[{"title":"User guide","href":""}]},{"tab":"Self-hosting","pages":[{"title":"Self-hosting","href":"/self-hosting/overview"}]},{"tab":"Developers","groups":[{"group":"Overview","pages":[{"title":"For developers","href":"/contributing/overview"},{"title":"Technology stack","href":"/contributing/stack"}]},{"group":"Development environment","pages":[{"title":"Local setup","href":"/contributing/local-setup"},{"title":"Receiving webhooks locally","href":"/contributing/local-webhooks"},{"title":"Repository layout","href":"/contributing/repo-layout"},{"title":"Coding conventions","href":"/contributing/conventions"},{"title":"Coding agents and Jig","href":"/contributing/coding-agents"}]},{"group":"Extension model","pages":[{"title":"Extension model","href":"/extending/extension-model"},{"title":"Choosing an extension type","href":"/extending/choosing-an-extension-type"}]},{"group":"Building extensions","pages":[{"title":"Development setup","href":"/extending/development-setup"},{"title":"Building a Solution","href":"/extending/solutions"},{"title":"Connectors","description":"Packages that bring a messaging channel to an installation.","href":"/extending/connectors"},{"title":"Building a Plugin","href":"/extending/plugins"}]},{"group":"Flow nodes","pages":[{"title":"Handler contract","description":"What a node handler receives and what it must return.","href":"/extending/flow-nodes/handler-contract"},{"title":"Versioning and compatibility","href":"/extending/flow-nodes/versioning"},{"title":"State namespaces","href":"/extending/flow-nodes/state-namespaces"},{"title":"Idempotency and retries","href":"/extending/flow-nodes/idempotency"}]},{"group":"Extension surfaces","pages":[{"title":"Builder UI extensions","href":"/extending/builder-ui"},{"title":"Console UI","href":"/extending/console-ui"},{"title":"Channel contracts","href":"/extending/channel-drivers"},{"title":"Data accessors","href":"/extending/data-accessors"},{"title":"Multilingual extensions","href":"/extending/multilingual"}]},{"group":"Shipping an extension","pages":[{"title":"Testing your extension","href":"/extending/testing"},{"title":"Stability policy","href":"/extending/stability-policy"}]},{"group":"Core internals","pages":[{"title":"Runtime architecture","href":"/contributing/runtime"},{"title":"Tenant-aware execution","href":"/contributing/tenant-aware-execution"},{"title":"Migration isolation","href":"/contributing/migration-isolation"},{"title":"Long-lived worker safety","href":"/contributing/worker-safety"},{"title":"ID strategy","href":"/contributing/id-strategy"},{"title":"Dependency direction","href":"/contributing/dependency-direction"}]},{"group":"Contributing to Core","pages":[{"title":"Testing and architecture checks","href":"/contributing/testing"},{"title":"Commit messages","href":"/contributing/commits"},{"title":"Pull requests","href":"/contributing/pull-requests"},{"title":"Releases and versioning","href":"/contributing/releases"},{"title":"Licence, CLA and trademark","href":"/contributing/legal"}]}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference/foundation-contracts"}]}]},"basePath":"","title":"Building a Plugin - FaPost","deploymentId":"dpl_GvkCDNzSMF8rzjWibcqz4RHGyof6","buildId":"dpl_GvkCDNzSMF8rzjWibcqz4RHGyof6","dynamics":[],"chunks":[]}