Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module transforms Drupal into an API backend, providing content and page metadata as JSON responses. It renders pages using custom elements, which can be delivered as serialized markup or a JSON data structure. This allows frontends to consume Drupal content via a simple API.

This module turns Drupal into an API backend that provides the main content and page metadata only.

The module renders pages into a tree of custom elements and provides JSON responses containing the page metadata and content. While the responses are always served in JSON, the page content may be delivered using custom elements serialized as markup or as a JSON data structure.

The module works by providing a new custom_elements format (e.g. enabled via appending ?_format=custom_elements to the URL) and integrates with Drupal's routing system - thus pages are processed as regular by Drupal, meaning all regular routing, authentication and request processing stays working. For rendering content as custom elements, the custom elements module is used and required.

Usage

  • The module is providing the API for Lupus Decoupled Drupal, which makes it possible to access it via a simple API-prefix /ce-api/<request-path>, but can be used on its own as well.
  • The module makes Drupal provide an API backend that may be used with varying frontend technologies that render the custom elements.

Dependencies:

Contribute

Activity

Total releases
5
First release
May 2025
Latest release
3 weeks ago
Releases (12 mo)
3 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.7.0 Stable Jun 24, 2026
2.6.1 Stable Mar 21, 2026
2.6.0 Stable Mar 20, 2026
2.5.0 Stable May 23, 2025
2.4.0 Stable May 21, 2025