Chargement

Recherche

https://blockstudio.dev

Blockstudio - The WordPress block framework for developers
Build 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

Get Started
style.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 CopyWrite 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

Twig Copy

{{ a.heading|esc_html }}

{{ a.description|esc_html }}

{% if a.showCta %} {{ a.ctaLabel|esc_html }} {% endif %}
Blade Copy

{{ $a['heading'] }}

{{ $a['description'] }}

@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 team

    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

    Server-side compilationTailwindPHP compiles the classes each page uses. No Node or build step. Automatic cachingCompiled CSS is cached to disk by class set for fast repeat requests. CSS-first configDefine themes, utilities, and variants directly with Tailwind v4 CSS. Live editor previewInstant editor preview while the frontend uses server-compiled CSS.Components included59 UI components ship with Blockstudio, ready to compose in your templates.Interactive parts as block tagsTurn on ui.enabled and Blockstudio registers 59 headless components under the bsui namespace: dialogs, menus, tabs, comboboxes, date and file inputs, toasts, and more, driven by the WordPress Interactivity API.Write them as block tags in any template, page, or pattern, render them from PHP, or allow bsui/* under blockTags to use them in post content. Each one is a regular block with its own block.json that works in the editor canvas as well as on the page, and a page loads the CSS and JS of only the components it renders.Give a form control a name and it renders a hidden input, so a surrounding form posts plain values without JavaScript of your own. Selects, menus, and dialogs use the real ARIA patterns, with arrow keys, type-ahead, and focus that stays inside an open modal.Styling runs on --bs-ui-* tokens with a complete dark scheme behind a .dark class, all inside the bsui cascade layer, so plain theme CSS wins without important flags or specificity games. Add your own variant to a component through a filter, and read the bundled app/* demo apps to see the components composed into larger interfaces.Browse the componentsindex.php blockstudio.json style.css functions.php index.php Copy blockstudio.json Copy{ "ui": { "enabled": true }, "blockTags": { "enabled": true, "allow": ["bsui/*"] } }style.css Copybody { --bs-ui-primary: oklch(0.45 0.18 260); --bs-ui-primary-foreground: oklch(0.985 0 0); --bs-ui-ring: oklch(0.45 0.18 260); --bs-ui-radius: 0.75rem; } [data-bsui-button][data-variant="default"] { border-radius: 0; }functions.php Copyadd_filter('blockstudio/blocks/attributes', function ($attribute, $block) { if (($block['name'] ?? '') === 'bsui/button' && ($attribute['id'] ?? '') === 'variant') { $attribute['options'][] = ['label' => 'Brand', 'value' => 'brand']; } return $attribute; }, 10, 2); add_filter('blockstudio/ui/button/variants-style', function ($css) { return $css . ' [data-bsui-button][data-variant="brand"] { background: var(--brand-primary); color: white; }'; });Built for developersPower features that make complex blocks simple to build and maintain. Flexible StorageStore values in post meta, options, or both. Query blocks by meta and expose data through REST. Conditional LogicShow fields based on values with comparison operators, nested conditions, and global rules. Over 130 PHP & JS HooksFilters and actions for registration, fields, assets, settings, and output. JSON SchemaAutocomplete, inline docs, and validation in VS Code and JetBrains. Context APIShare declared data between parent and nested child blocks. AI IntegrationA documentation index for coding agents and a generated AGENTS.md for your project. SEO IntegrationAutomatic content injection for Yoast, Rank Math, and SEOPress. Programmatic RenderingRender blocks from PHP and use them as components outside the editor. Custom FieldsDefine reusable field sets once and reference them across blocks. Block TransformsTransform blocks and add enter or prefix insertion shortcuts. Dynamic OptionsPopulate choices from posts, terms, users, functions, or APIs. HTML UtilitiesRender data attributes or CSS variables on the block wrapper. Plugin, MU Plugin, or ComposerInstall the plugin zip, load it as a must-use plugin, or require it with Composer inside a theme or plugin. Bedrock can include it early, and BLOCKSTUDIO_URL covers custom package URLs. Updates Without ClashesBundled libraries such as TailwindPHP, ScssPhp, and Minify are namespaced private copies, so they never replace another plugin’s versions. Zip installs update from GitHub releases, with an optional access token. Upgrading from v6 to v7Blocks written for v6 keep working: the old blockstudio/ import prefix, camelCase hook names, and dash asset suffixes are still supported. The migration guide covers what changed.Dev toolsBuilt-in tooling for inspecting, debugging, and building with AI. CanvasA Figma-like overview of all your managed pages. Pan, zoom, and inspect your site in a single view.admin.php?page=blockstudio-canvas Element GrabberHold Cmd+C on any element to copy its markup and block template path. Paste that context into your AI editor.?blockstudio-devtoolsBuilt for agentsDocumentation an agent can index, a contract for your project, and analysis that rejects what does not fit.An index, a contract, and a gateBlockstudio ships blockstudio-llm.txt, an index of every document with its route, purpose, and the identifiers it owns, plus blockstudio-llm-full.txt with the full text. An agent reads the index, then opens only the page it needs.In your project, blockstudio-agents writes an AGENTS.md from your own files and settings, and blockstudio-phpstan runs the preset you choose, from a managed commit hook if you want one.Build with AIblockstudio-llm.txt Terminal blockstudio-llm.txt Copy## Docs / Blocks / Attributes ### Registering Attributes route: /docs/blocks/attributes/registering file: docs/docs/blocks/attributes/registering.md purpose: Learn how to register custom attributes for your blocks. php: $a ### Field Types route: /docs/blocks/attributes/field-types file: docs/docs/blocks/attributes/field-types.md purpose: All available field types and their properties in Blockstudio. hooks: blockstudio/field_typesTerminal Copy# Write AGENTS.md from this project's files and settings vendor/bin/blockstudio-agents # Analyse with the preset set in blockstudio.json vendor/bin/blockstudio-phpstan -- --no-progress # Install the managed pre-commit hook vendor/bin/blockstudio-githooks sync An index firstEvery document with its route, purpose, and identifiers, in about 11k tokens. Full text on demandAll documentation and JSON schemas in one file, about 169k tokens. A generated AGENTS.mdblockstudio-agents describes what your project authors, enables, and rejects. Analysis presetsbase, theme, and extreme-theme hold templates to block.json and more.Full-stack blocksBuild complete applications inside a block folder. Database, server logic, scheduled tasks, and CLI, all from files.Drop a file, get an APIAdd db.php to define a data model. Blockstudio creates REST endpoints, validates input, manages storage, and provides JavaScript and PHP APIs.Add rpc.php for server functions and cron.php for scheduled tasks. Each file does one thing, without controllers or build tooling.Full-Stack Blocks guidedb.php Copy 'sqlite', 'userScoped' => true, 'capability' => [ 'create' => true, 'read' => true, 'update' => true, 'delete' => true, ], 'fields' => [ 'text' => ['type' => 'string', 'required' => true], 'done' => ['type' => 'boolean', 'default' => false], ], ];Server functions in one lineDefine PHP functions in rpc.php and call them with bs.fn(). Blockstudio handles routing, authentication, CSRF protection, and JSON serialization.rpc.php Copy function (array $params): array { $db = Db::get('my-theme/todo'); $id = (int) ($params['id'] ?? 0); $todo = $db->get_record($id); if ($todo) { $db->update($id, ['done' => !$todo['done']]); } return ['success' => (bool) $todo]; }, ]; DatabaseSchema-defined CRUD in 6 storage modes: table, sqlite, jsonc, storh, meta, post_type. RPCServer functions callable from the frontend with bs.fn(). CronScheduled tasks in cron.php, registered with WP-Cron. CLIManage blocks, pages, records, RPC, cron jobs, and settings with wp bs. CSRF ProtectionPublic endpoints are protected automatically with an explicit open mode. User ScopingAutomatically isolate data per user with no manual ownership filters. PortabilityWith SQLite or JSONC, code and data travel together as one folder. ComponentsProgrammatic UI components use the complete Blockstudio pipeline.Static when it can beTurn on static prerendering and anonymous visitors get stored HTML, while everything personal stays live.Static prerendering Off until you say soperformance.staticPrerender in blockstudio.json turns it on. Before WordPress bootsWith earlyServe on, a drop-in sends stored pages before WordPress loads. Fresh on saveSaving a post purges or re-renders its stored page and the front page. Live where it must beLogged-in requests, search, and dynamicPaths render live by default.Questions & AnswersEverything you need to know about Blockstudio. Missing an answer? Ask on GitHub.Open an issueWhat is Blockstudio?+A WordPress plugin that lets you build custom blocks with JSON and a template file. Define fields and write markup without React tooling.Do I need to know JavaScript?+No. If you can write HTML and basic PHP, you can build blocks. Blockstudio handles editor internals.Does it work with my theme?+Yes. Blocks use the native WordPress block API and work with any block-compatible theme.How is this different from ACF blocks?+ACF PRO also registers blocks through block.json and renders PHP templates with InnerBlocks, and since ACF PRO 6.8.1 it can declare a block’s fields there too. Blockstudio discovers block folders without a register_block_type() call, renders PHP, Twig, or Blade, compiles each block’s styles and scripts, adds RichText in templates, file-based pages, patterns, and extensions, and is free under the GPL rather than part of a paid licence.What template languages are supported?+PHP out of the box, Twig once timber/timber is installed, and Blade through illuminate/view 8 to 12 and a short render filter that calls Blockstudio\Blade_Renderer. All three get the same variables and components, and Blade can also render pages, patterns, and Site Editor templates.Can I extend existing blocks?+Yes. Extensions add fields to core, third-party, or custom blocks, including whole namespaces through wildcards.How does the asset pipeline work?+Use naming conventions such as style.scss, script.js, and editor.css. Blockstudio compiles, scopes, and enqueues them, and minifies them when you turn minification on.Is there IDE support?+Yes. JSON Schema provides autocomplete, inline documentation, and validation in compatible editors.What are the requirements?+WordPress 6.7 or later and PHP 8.2 or later.Is Blockstudio free?+Yes. Blockstudio is free and open source, with extensions, all field types, assets, pages, and patterns included.PlusThe official extension kitPremium site templates, AI system instructions, and a private Discord community. One-time purchase, lifetime updates. 500+ site templates AI system instructions Lifetime updates Private Discord communityGet Plusblock.json{  “name”: “starter/hero”,  “title”: “Hero”,  “blockstudio”: { … }}index.phpstyle.css500+ templates includedPlus ProductsMultitaskAISleekWPOneClick ProKickstartUIOpen sourceBlockstudioGlazeGrephMerqlOnedocsPhasisPitmasterQueuetyRudelShikiPHPStorhTailwindPHPTermbridgeFree toolsData Storage ConverterData Transfer Rate ConverterDays Since CounterDays Until CounterDNS Record CheckerDomain Availability CheckerHeading ExtractorHTML Entity ConverterJSON RepairJSON Schema ValidatorLength ConverterPHP SerializerReadability Score CheckerRotation ConverterScreen Unit ConverterSSL Certificate CheckerText ComparisonUnique ID GeneratorWHOIS LookupWord Deduper© 2026 Blockstudio·Made by dennn.isImprintPrivacyTerms
    en
    en
    1796151006
    https://blockstudio.dev

    Modifier votre site ?

    Que fais-tu?

0.006227970123291


Annuaire Web
Annuaire Web

Annuaire Web
Build custom WordPress blocks, file-backed pages, reusable patterns, and extensions with JSON and PHP, Twig, or Blade.
Annuaire Web