Flarum extension development reference
flarum_devProvides a development reference for Flarum 2.0 extensions, covering scaffolding, architecture, backend, frontend, scaling, testing, and porting. Consult it when building or reviewing extension code.
Instructions
A development reference for building or reviewing a Flarum 2.0 extension: scaffolding and architecture, composer.json, the TypeScript frontend, backend (API resources/models/migrations), scaling (queue-driver portability, Redis, multi-server file storage), optional ecosystem integrations (realtime, audit, fof widgets, fof sitemap), i18n, testing, static analysis & CI, releasing, and porting a 1.x extension to 2.0. Combines the conventions the official docs establish, the de-facto FriendsOfFlarum standard, and patterns that prevent real production bugs (fail-closed API fields, lazy-chunk-safe extends, atomic creation, the PHPStan/testing setup). Consult it before scaffolding, when adding a feature, or when reviewing extension code. Pair with flarum_docs_search/flarum_docs_get for the authoritative API reference. Omit topic for the full reference, or pass one to narrow it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "flarum_dev"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | Section to return: scaffold, composer, frontend, backend, scaling, integrations, i18n, testing, quality-ci, release, porting (or 'all' / omit for the full reference). |