Developers
Site Code, the CLI, the database and JavaScript plugins
Site Code
Site Code — your site's server-side codeWrite TypeScript/JavaScript that runs on your site's server (like WordPress's functions.php) — routes, events, your own database, data for the designer — with drafts, testing and safe publishinganasaki-code CLIPull Site Code into VS Code with full types, then push, watch and publish from the terminal — from creating a token to resolving conflictsThe Site Code databaseYour site's own MySQL tables — a separate database that cannot touch the CMS tables, migrations, the query builder, db.docs, core_* views and the database admin pageBinding data to the designerSend data from code to the designer with collections, take input from buttons and forms with actions, page data, formatters, conditions and window.anasakiHooks, content types and background jobsFilters and events, your own content types and fields, site members, sending email, calling outside APIs, secrets, cron jobs, webhooks and admin pages
Plugins
JavaScript pluginsA JavaScript plugin is Site Code packaged as a plugin — the manifest, code scopes, settings, migrations, dependencies, packing the .zip and testingPlugin example — a guestbookBuild a complete JavaScript plugin step by step — a data table, a public page inside the site's header and footer, a message form, email notifications, an admin page and settingsPackage and WebAssembly pluginsStatic plugins with templates, blocks and settings (no server-side code), and plugins with Go code compiled to WebAssembly or run as a separate servicePlugin capabilities — let administrators choose which role can do whatDeclare a plugin's own permissions in the manifest, and administrators tick them per role under Users → Permissions — used by routes, admin pages, actions, content types and user.can() in code
Reference
Plugin API (reference summary)A summary of every public API a plugin can use — the versions that added them, minCore and feature detection, site.*, db.*, http/mail/jobs/plugins, public page hooks, admin pages and the admin UI kitDesigner API — build and edit pages with scriptsEndpoints for pages, components, menus and media, the designer's node structure, the rendered classes, code names (data-ref) and what to watch for when calling through Cloudflare
