Skip to main content
The WordPress Block Editor framework provides a comprehensive set of packages for building custom blocks and extending the editor. These packages are published to npm under the @wordpress namespace and are also available as WordPress script handles.

Main Package Categories

Block Development

Editor Applications

Data Layer

UI Components

Utilities

Installation

All packages are available via npm:
npm install @wordpress/blocks --save

Environment Requirements

These packages assume your code will run in an ES2015+ environment. If you need support for older browsers, include the polyfill from @wordpress/babel-preset-default.

Package Architecture

The editor follows a layered architecture:
  1. block-editor - Generic, WordPress-agnostic editor
  2. editor - WordPress post-type-aware functionality
  3. edit-post/edit-site - Complete editor screens
Lower layers must not depend on higher ones, ensuring modularity and reusability.

Build docs developers (and LLMs) love