Plugin SDK
Write a plugin: package layout, module.json, register() with hooks and filters, admin pages, settings, jobs, API routes, data and security, then test and pack it.
اسباق
ڈویلپر اسباق انگریزی میں لکھے گئے ہیں: کوڈ، API کے نام اور فائلوں کے نام ہر جگہ انگریزی میں ہوتے ہیں۔
- Plugin package layout and lifecycleThe folder a plugin lives in, what each file does, and what happens on preview, install, enable/disable and uninstall.تقریباً 8 منٹ
- module.json referenceEvery manifest field: identity, permissions, sidebar entries, settings, jobs, hooks, filters, widgets, routes, schema, messages, tests and checksum.تقریباً 10 منٹ
- register(): hooks and filtersHooks react after the fact and never break the caller; filters run before the fact and may change a value or veto an action.تقریباً 10 منٹ
- Admin pages, permissions and settingsServer-component pages with permission guards, server actions that validate and log, and settings fields stored for you.تقریباً 9 منٹ
- Scheduled jobs and plugin API routesJobs run from the maintenance tick; API routes are published under /api/plugins/<id> and must authenticate every call.تقریباً 8 منٹ
- Data access and security rulespluginStore or an additive schema fragment, Prisma only, minor-unit money, and the nine security rules every plugin follows.تقریباً 9 منٹ
- Create, test and pack a pluginScaffold with the create-module wizard, iterate in Module Studio, write check.ts, then validate, pack with a checksum and install.تقریباً 9 منٹ