Documentation sections
HOBA
How to build a HOBA plugin
Build a Notice block with text editable in Composer. This example needs no network, dependencies or extra permissions.
1. Choose an extension type
A page-block plugin adds a new component to Composer. An automation responds to an event, such as a form submission, and need not add a block. An external HTTP adapter runs separately and is not installed as a Core plugin. This local block example uses two files: example.notice/plugin.json and example.notice/index.mjs.
2. Define the block in plugin.json
id and version identify the package; block_type identifies the node, not its UI label. schema validates block instance data and editable_properties lists the fields Composer exposes. configuration_schema applies to the deployment. The text default allows Composer to insert the block without collecting required data first.
{ "id": "example.notice", "name": "Notice", "version": "0.1.0", "author": "Example", "api_version": "v1", "capabilities": [], "permissions": [], "dependencies": {}, "configuration_schema": { "type": "object", "additionalProperties": false }, "blocks": [ { "block_type": "example.notice", "schema": { "type": "object", "properties": { "text": { "type": "string", "default": "Hello from HOBA" } }, "required": [ "text" ], "additionalProperties": false }, "editable_properties": [ "text" ], "render_metadata": { "label": "Notice" }, "validation_rules": [] } ], "integrations": [], "assets": [], "core_requirement": "^0.2.14"}
3. Write index.mjs
Core calls register(context) when loading the module. Use its createElement; do not import React. Pass text as a child, not as raw HTML. Register both the bare block type and the plugin-prefixed key. This example needs no browser script.
export function register(context) { const { createElement: h, id, blocks } = context; function Notice({ data }) { return h("aside", null, String(data?.text ?? "")); } context.registerPlugin({ type: blocks[0], component: Notice }); context.registerPlugin({ type: id + ":" + blocks[0], component: Notice });}
4. Build and install on a test Core
From the plugin directory, create install.json. On a test Core that supports filesystem renderers, place the matching-version plugin.json and index.mjs under HOBA_PLUGINS_DIR and restart Core. A system operator sends install.json to POST /api/v1/plugins/install; the version starts disabled. Enable that exact version in Admin. A deployment that requires signed server packages needs its supported package format and an approved signer, not this filesystem workflow.
node --input-type=module -e ' import { readFileSync } from "node:fs"; const pkg = JSON.parse(readFileSync("plugin.json", "utf8")); console.log(JSON.stringify({ package: pkg, granted_permissions: [] }, null, 2));' > install.json
5. Verify the result
Add Notice in Composer, edit its text, save and generate a test release. Preview the new text and try two instances with different values. If the block is missing, check the enabled version and permissions. If it appears but does not render, check index.mjs loading, version and block_type. Also check the activated test page without an Admin session.
6. Add capabilities one at a time
Declare browser CSS or JS in assets and put the bytes in package.asset_files as Base64. Keep a useful fallback without JavaScript. Test automations with synthetic data and request only the permissions the workflow uses. Never put private keys or tokens in the package, block data or browser code.
7. Release a new version
Bump the version, retain the old package and generate a release on a test site. Preserve field names and types used by existing pages or document the transition. A theme that uses the block should pin the exact version in required_plugins. Rolling back the active site release does not roll back the plugin registry.
A website you can manage yourself.
Hi, I’m Hobbit! I can show you what HOBA can do. Where shall we start?