Blockstudio - The WordPress block framework for developersBuild custom WordPress blocks, file-backed pages, reusable patterns, and extensions with JSON and PHP, Twig, or Blade.Blockstudio - The WordPress block framework for developers Skip to content Build with AIFeaturesBlocksBlocks in PHP, Twig or BladePagesFile-backed WordPress pagesPatternsPatterns from template filesEditorClient editing, set in JSONExtensionsFields on any blockTailwindTailwind v4 compiled in PHPProductionStatic pages, set in JSONFull-StackDatabase, cron and CLICompareOverviewHow Blockstudio comparesACF BlocksFields and assets in filesPage buildersFiles in git, not builder dataElementorTemplates, not JSON in post metaHeadless WordPressOne WordPress, not two systemsResourcesDocsReference and configurationComponentsEvery bundled UI blockGuidesTutorials and how-tosRegistryInstall blocks like shadcnBlogRelease notes and newsPlusENالعربيةБългарскиČeštinaDanskDeutschΕλληνικάEnglishEspañolEestiSuomiFrançaisMagyarBahasa IndonesiaItaliano日本語한국어LietuviųLatviešuNederlandsPolskiPortuguêsRomânăРусскийSlovenčinaSlovenščinaSvenskaTürkçeУкраїнська中文SystemLightDarkGitHubMenuBuild with AIFeaturesBlocksPagesPatternsEditorExtensionsTailwindProductionFull-StackCompareOverviewACF BlocksPage buildersElementorHeadless WordPressResourcesDocsComponentsGuidesRegistryBlogPlusColor themeSystemLightDarkGitHub NewBlockstudio 7.7The block frameworkfor WordPressCustom blocks from plain files. Define fields in JSON, write templates in PHP, Twig, or Blade. No build step required.Terminal Copycomposer require blockstudio/blockstudioGet StartedDownload v7.7.15 (opens in a new tab) BlocksCreate custom blocks with JSON and PHP, Twig, or Blade templates. 27 field types, no build step. PagesWrite full WordPress pages as template files and sync them into native blocks with one command. PatternsDefine reusable block patterns as template files, registered automatically in the inserter. ExtensionsAdd custom fields to any block, core, third-party, or your own, with a single JSON file. Field Types27 built-in types including repeaters, color pickers, code editors, and media, plus field types you register. Asset ProcessingSCSS compilation, ES modules, scoped styles, and optional minification, all by naming convention. JSON SchemaFull IDE autocomplete and validation for block, extension, and settings configurations. TemplatingWrite templates in PHP, Twig, or Blade with scoped assets, nested InnerBlocks, and template variables.Blockstudio deeply extends the core way of building blocks. JSON definitions, PHP templates, scoped assets. Nothing more than files, ready for the agents that will build what’s next.Custom blocks in 3 filesDefine fields in block.json, render them in a template, style with CSS or SCSS. No JavaScript, no build step, no boilerplate.Get startedblock.json Copy{ "name": "starter/hero", "title": "Hero", "blockstudio": { "attributes": [ { "id": "heading", "type": "text" }, { "id": "showCta", "type": "toggle" }, { "id": "background", "type": "color" } ] } }index.php Copy
= esc_html($a['heading']) ?>
Get Startedstyle.scss Copy.hero { padding: 4rem 2rem; h1 { font-size: 3rem; font-weight: 700; } a { padding: 0.75rem 1.5rem; color: #fff; background: #18181b; } }React features, PHP templatesNative WordPress editor components like RichText and InnerBlocks, accessible directly in your PHP templates. No JavaScript, no build step.All inside the same fileUse for inline editing in the block editor and static HTML on the frontend. handles nested child blocks, while useBlockProps marks the block wrapper.Blockstudio handles the editor integration automatically. In the editor, these become real React components. On the frontend, they render as plain server-side HTML.Explore componentsindex.php Copy
Write templates in PHP, Twig, or BladeUse the templating language you already know. All three share the same variables, components, and features. No JavaScript required.Same variables, any languageAccess attributes via $a, block data via $b, and parent context via $c. Use flags such as $isEditor to tailor output per environment.Use , , and directly in templates without writing JavaScript.Learn more about templatingPHP Twig Blade PHP Copy
@if($a['showCta']) {{ $a['ctaLabel'] }} @endif Full pages, defined in codeCreate complete WordPress pages from template files. HTML maps to core blocks, and one command syncs them into the editor.Write HTML, get blocksStandard elements such as
,
, and
map to core blocks automatically. Use for everything else.Define complete layouts in your codebase. When you run wp bs pages sync, Blockstudio parses the templates into real WordPress pages with real blocks, fully editable in the block editor.Learn more about pagesindex.php Copy
About Us
We build tools for WordPress developers.
Our Mission
Making block development fast and simple.
Our Stack
Explicit syncRun wp bs pages sync to apply template changes. Unchanged pages cost zero writes. Template lockingLock structure while clients edit content. Ideal for landing pages and marketing sites. Keyed blocksAssign keys so user edits persist across template updates. Sync structure, keep content. Version controlledPages live in files. Track changes in Git, deploy environments, and review them in PRs.Reusable patterns from template filesDefine block patterns as template files. Same HTML syntax as pages, registered automatically in the block inserter.Template files, not registration codeCreate a folder with pattern.json and a template file. Blockstudio registers the pattern automatically, with no register_block_pattern() boilerplate.Patterns are inserted as real, editable blocks. Users get a starting layout they can customize while you maintain templates in version control.Learn more about patternsindex.php Copy
Pricing
Simple, transparent pricing.
Starter
For small teams getting started.
Pro
Priority support
Custom integrations
Same syntax as pagesStandard HTML maps to core blocks; the block tag handles everything else. Auto-registeredDrop in a template and pattern.json. Blockstudio registers it automatically. Fully editablePatterns are inserted as editable block content and customized per instance. Categorized and searchableCategories and keywords make patterns easy to find in the inserter.Customizable element mappingOverride which block any HTML element maps to. Point standard tags like h1, p, and img to your own block types.Remap HTML to custom blocksBy default, standard HTML maps to core WordPress blocks. Use the element_mapping filter to point any element at another block type. Every
can produce your custom block instead of core/heading.Learn more about element mappingfunctions.php Copyadd_filter( 'blockstudio/parser/element_mapping', function ($mapping) { $mapping['h1'] = 'custom/heading'; $mapping['h2'] = 'custom/heading'; $mapping['p'] = 'custom/paragraph'; $mapping['img'] = 'custom/image'; return $mapping; } );Add fields to any blockExtend core blocks, third-party blocks, or your own with custom fields. Pure JSON, no templates, no code.Custom fields, zero templatesCreate a JSON file, target a block with name, and define fields. The set property maps field values directly to classes, styles, data attributes, or anything else.No templates and no render callbacks. Blockstudio handles output automatically using the WordPress HTML Tag Processor.Learn more about extensionsextend-animation.json Copy{ "name": "core/*", "blockstudio": { "extend": { "priority": 10 }, "attributes": [ { "id": "animation", "type": "select", "allowNull": "None", "options": [ { "value": "fade", "label": "Fade" }, { "value": "slide", "label": "Slide" } ], "set": [{ "attribute": "class", "value": "animate-{attributes.animation}" }] } ] } } Target any blockExtend one block, a list, or an entire namespace with wildcards such as core/*. The set propertyMap field values directly to classes, styles, data attributes, or any HTML attribute. Conditional fieldsShow and hide fields based on other values with the same operators blocks use. Full feature setAll field types, conditional logic, populated sources, and reusable properties.27 field types at your disposalFrom basic text fields to repeaters and tabs, plus DOM-focused fields such as classes and data attributes. Register your own types on top.Explore field typesattributesblockcheckboxclassescodecolordatedatetimefilesgradientgrouphtml-tagiconlinkmessagenumberradiorangeselecttabstexttextareatogglerepeaterrichtextunitwysiwygattributesblockcheckboxclassescodecolordatedatetimefilesgradientgrouphtml-tagiconlinkmessagenumberradiorangeselecttabstexttextareatogglerepeaterrichtextunitwysiwygcolordatedatetimefilesgradientgrouphtml-tagiconlinkmessagenumberradiorangeselecttabstexttextareatogglerepeaterrichtextunitwysiwygattributesblockcheckboxclassescodecolordatedatetimefilesgradientgrouphtml-tagiconlinkmessagenumberradiorangeselecttabstexttextareatogglerepeaterrichtextunitwysiwygattributesblockcheckboxclassescodegrouphtml-tagiconlinkmessagenumberradiorangeselecttabstexttextareatogglerepeaterrichtextunitwysiwygattributesblockcheckboxclassescodecolordatedatetimefilesgradientgrouphtml-tagiconlinkmessagenumberradiorangeselecttabstexttextareatogglerepeaterrichtextunitwysiwygattributesblockcheckboxclassescodecolordatedatetimefilesgradient Pause animationZero-config asset pipelineSCSS compilation, ES module imports, and optional minification, all by naming convention. No webpack, no Vite.Name your files, Blockstudio handles the restDrop style.scss next to a block and it gets compiled and enqueued automatically. The same is true for script.js, with ES module support and direct npm imports. Minification is one setting away.Assets are scoped per block and loaded only when needed. Use editor.* for editor-only assets or *.inline.* to inline them in the page.Learn more about assetsSCSS ES Modules SCSS Copy$accent: var(--wp--preset--color--primary); .hero { padding: 4rem 2rem; h1 { color: $accent; font-size: clamp(2rem, 5vw, 4rem); } &--dark { background: #0a0a0a; } }ES Modules Copyimport gsap from "npm:gsap@3.12.5"; if (!matchMedia("(prefers-reduced-motion: reduce)").matches) { for (const hero of document.querySelectorAll(".hero")) { gsap.from(hero.querySelector("h1"), { opacity: 0, y: 20 }); gsap.from(hero.querySelectorAll(".card"), { opacity: 0, stagger: 0.1 }); } } SCSS compilationWrite nesting, variables, and mixins. Blockstudio compiles it for you. ES module importsImport npm packages directly. Blockstudio downloads and serves them locally. Naming conventionstyle.scss, script.js, editor.css. Name the file and you are done. Scoped and inlinedAssets load only when the block is present; inline them with the filename convention.Tailwind v4, compiled in PHPWrite utility classes in templates. Blockstudio compiles them server-side via TailwindPHP with automatic file caching.One setting, zero toolingSet tailwind.enabled to true in blockstudio.json and write utility classes. Blockstudio compiles CSS server-side, caches it, and injects it without Node.js.Use blockstudio/tailwind/css to define themes, utilities, and variants with Tailwind v4 CSS-first syntax. The classes field provides editor autocomplete.Learn more about Tailwindfunctions.php Template functions.php Copyadd_filter('blockstudio/tailwind/css', function ($css) { return $css . ' @theme { --color-accent: #4f46e5; } @utility container-narrow { max-width: 48rem; margin-inline: auto; } '; });Template Copy