Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: Layout Paragraphs 3.0.0-beta5 — New beta version released for module layout_paragraphs (3.0.0-beta5). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

AI Schema

11 sites Security covered

Part of the AI ecosystem · 339 projects

View on drupal.org

AI Schema transforms Drupal's data model into structured, LLM-friendly JSON formats. It includes a compact schema for AI tools, an entity relationship graph, and generated SQL queries, making Drupal data more accessible for AI integration and external applications.

AI Schema exports Drupal’s complex data model into clean, structured, and LLM-friendly JSON. It helps developers and AI tools understand entities, fields, relationships, and database structure without deep Drupal knowledge.

Features

AI Schema transforms Drupal’s internal data model into multiple machine-readable formats designed for developers, data tools, and AI systems.

Key capabilities include:

  • LLM-friendly schema export
    Generates a compact, token-efficient model (compact-model.json) optimized for AI tools like ChatGPT and Claude.
  • Entity relationship graph
    Outputs a full relationship graph (relation-graph.json) showing how entities and bundles are connected.
  • Automatic SQL query generation
    Creates ready-to-use SELECT queries with correct JOIN logic for Drupal field tables.
  • Full data model export
    Includes entity types, bundles, fields, storage tables, and column mappings.
  • Per-entity context files
    Combines schema, relations, and SQL into a single file per entity bundle.
  • AI semantic hints
    Fields are automatically classified (label, content, taxonomy, media, etc.) to improve machine understanding.

When should you use this module?

  • When you want to integrate Drupal with AI tools (LLMs)
  • When you need to generate SQL queries without dealing with Drupal’s schema complexity
  • When building data pipelines, BI tools, or external APIs
  • When documenting or analyzing a Drupal data model

Post-Installation

After enabling the module, no UI configuration is required.

All functionality is available via Drush commands.

To generate the full export:

drush aischema:export-all

This will create a ai-schema/ directory in your project root containing:

  • compact-model.json (LLM-optimized schema)
  • relation-graph.json (entity relationships)
  • sql-queries.json (generated SQL queries)
  • Additional advanced exports

Typical workflow

  1. Run the export command
  2. Use compact-model.json and relation-graph.json as input for LLM tools
  3. Use sql-queries.json for direct execution or integration

No configuration pages or UI setup are needed.

Additional Requirements

  • Drupal 10.x or 11.x
  • Drush 12.x or 13.x

No additional contributed modules or external libraries are required.

This module works standalone.

However, it pairs well with:

  • Headless Drupal setups (JSON:API, GraphQL)
  • BI and analytics tools
  • AI / LLM platforms (ChatGPT, Claude, etc.)

Similar projects

There are tools that export Drupal configuration or provide schema introspection, but AI Schema is different in key ways:

  • Designed specifically for AI/LLM consumption
  • Provides token-efficient compact schema representation
  • Includes automatic SQL query generation
  • Adds semantic meaning (AI hints) to fields
  • Outputs relationship graphs

This makes it more than a schema export tool it is an AI integration layer for Drupal.

Supporting this Module

This module is developed and maintained by OctoHaus.

If you are interested in contributing, feedback, or collaboration, feel free to get in touch.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Apr 2026
Latest release
5 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.0-rc2 Pre-release 10–11 Apr 9, 2026
1.0.0-rc1 Pre-release 10–11 Apr 7, 2026