Skip to content

Extension Structure

Capell extensions are Laravel packages that add one focused capability through public Capell extension points. Keep extension code outside the core packages unless the feature belongs to the platform foundation.

Use this page as the routing guide before creating a package, adding a provider, or changing package docs.

NeedUseStart with
Add a first-party optional featureAdd-on package in capell-app/packagesPackage Authoring
Add fields, actions, tools, pages, resources, or dashboard widgets to the adminAdmin extension points and tagged extendersAdmin Extensions
Add frontend output, render hooks, theme assets, Blade components, Livewire components, or route behaviourFrontend extension pointsFrontend Extensions
Add a package that ships migrations, settings, actions, routes, translations, and testsStandard package anatomyPackage Anatomy
Register a core CMS type, schema, event subscriber, render hook, or model bindingCore extension pointExtending Capell

Prefer the narrowest extension point that owns the behaviour. A tagged extender is usually safer than replacing a resource. A render hook is usually safer than overriding a theme view. Publishing core schemas should be the last option because published files stop receiving upstream changes.

An extension package should have one clear runtime shape:

  • runtime providers (surface shared) for package registration, config, translations, and container bindings used in more than one runtime.
  • admin providers for Filament pages, resources, widgets, settings contributors, admin extenders, and Extensions page actions.
  • frontend providers for render hooks, Blade components, Livewire components, routes, themes, and frontend assets.
  • install providers (surface console) for install commands, import/export commands, scheduled work, and developer tooling.

Declare the same boundary in capell.json through surfaces, dependencies.requires and the providers buckets (metadata, install, runtime, admin and frontend). Do not boot admin-only classes on frontend requests.

Every documented package should have:

  • README.md as the package landing page.
  • capell.json (manifest v3) with manifest-version, name, slug, displayName, kind, capellApiVersion, version, product.group, product.tier, surfaces, dependencies, providers, contributes, performance, healthChecks, commercial and marketplace.
  • docs/** for deeper install, admin, frontend, database, testing, or integration guides.
  • Public screenshots or diagrams only when they help someone configure, extend, or verify the package.

This capell.json passes Capell’s manifest v3 validation. Replace the vendor, name and namespace with your own, then list real provider classes in the providers buckets and real entries in contributes as the package grows. Capell rejects any root key that is not part of manifest v3, so check new keys against the manifest schema before adding them.

{
"manifest-version": 3,
"name": "acme/capell-notices",
"slug": "capell-notices",
"displayName": "Notices",
"kind": "package",
"capellApiVersion": "^1.0",
"version": "1.0.0",
"description": "Site-wide notices for editors to schedule.",
"product": {
"group": "Community",
"tier": "free"
},
"namespace": "Acme\\Notices\\",
"surfaces": ["admin", "frontend"],
"dependencies": {
"requires": ["capell-app/core"],
"supports": [],
"conflicts": []
},
"providers": {
"metadata": [],
"install": [],
"runtime": [],
"admin": [],
"frontend": []
},
"contributes": [],
"performance": {
"frontendRenderBudgetMs": 10,
"adminQueryBudget": 20,
"cacheTags": ["notices"],
"cacheSafety": {
"cacheable": false,
"variesBy": ["site", "locale"],
"sensitiveOutput": false,
"invalidationSources": [],
"queueInvalidation": false
}
},
"healthChecks": [],
"commercial": {
"proposedLicense": "free",
"requestedCertification": "community",
"supportPolicy": "community",
"privateDocsRequested": false
},
"marketplace": {
"summary": "Schedule site-wide notices from the admin.",
"screenshots": [],
"categories": ["frontend"]
}
}

The Capell Extensions explorer is generated from those files. If an extension is missing or grouped incorrectly, fix capell.json before changing this docs site.

  • Business logic lives in Actions or services, not Filament resources or page classes.
  • User-facing strings are translated by the package.
  • Runtime providers match the manifest contexts.
  • Destructive or data-changing behaviour has direct Action tests.
  • Admin/editor behaviour is not leaked into public frontend output.
  • Public docs explain install, configuration, extension points, and failure modes the package actually has.