Full-stack blocks
Blocks can define their own database, server functions, scheduled tasks, and CLI commands. Everything lives in one folder, works without a build step, and deploys by copying files.
db.php
Define schema, get CRUD endpoints
return [
'storage' => 'sqlite',
'userScoped' => true,
'capability' => [
'create' => true,
'read' => true,
'update' => true,
'delete' => true,
],
'fields' => [
'text' => [
'type' => 'string',
'required' => true,
],
'done' => [
'type' => 'boolean',
'default' => false,
],
],
];rpc.php
Custom server functions
return [
'toggle' => function (array $params): array {
$db = Db::get('my-theme/todo');
$todo = $db->get_record((int) $params['id']);
$db->update((int) $params['id'], [
'done' => !$todo['done'],
]);
return ['success' => true];
},
'clear_done' => function (array $params): array {
$db = Db::get('my-theme/todo');
$todos = $db->list();
foreach ($todos as $todo) {
if ($todo['done']) {
$db->delete((int) $todo['id']);
}
}
return ['cleared' => true];
},
];Every capability is a file
Each file adds a capability. No configuration, no registration code.
Database
Define schemas, get CRUD endpoints.
Four storage backends
MySQL tables, SQLite, JSONC files, and post meta. Choose based on portability and query needs.
User-scoped data
Set userScoped: true to auto-isolate records per user. No manual filtering needed.
Validation and hooks
Required, type, enum, format, length, and custom callbacks. Lifecycle hooks before and after every write.
RPC
Server functions callable from the frontend.
Infrastructure
Cron, CLI, portability, and security.
Scheduled tasks
Define cron jobs in cron.php. Auto-registered with WP Cron, auto-cleaned on deactivation.
CLI
wp bs commands for blocks, db, rpc, cron, and settings. Full --format=json support for scripting.
Portability
SQLite and JSONC storage travel with the code. Copy the folder to deploy the entire app with its data.
The official extension kit
Premium site templates, AI system instructions, and a private Discord community. One-time purchase, lifetime updates.
- 450+ site templates
- AI system instructions
- Lifetime updates
- Private Discord community