This project is not covered by Drupal’s security advisory policy.

Gadget - The Drupal Inspector

Gadget is a comprehensive development toolkit that provides 80+ powerful Drush commands for site analysis, debugging, and management. It's like having a Swiss Army knife for Drupal developers and site builders.

Features

Gadget transforms your Drupal development workflow with organized command groups covering every aspect of your site:

Content & Entity Management

  • List, analyze, and manage content types, entities, and fields
  • Create, delete, and bulk operations on content
  • Interactive entity selection and detailed reporting
  • Dependency analysis and relationship mapping

Configuration Management

  • Advanced config validation, comparison, and repair tools
  • UUID mismatch detection and fixing
  • Orphaned configuration cleanup
  • Config split management and synchronization
  • Environment comparison tools

Block & Layout Analysis

  • Comprehensive block listing and analysis
  • Region mapping and theme integration
  • Block type management and reporting
  • Issue detection and resolution

Field & Widget Tools

  • Field creation, deletion, and management
  • Widget and formatter analysis
  • Field type exploration with colorful output
  • Base field override management

Views & Display Management

  • View cloning, renaming, and organization
  • Performance analysis and optimization
  • Dependency tracking and validation
  • Import/export capabilities

Menu & Navigation

  • Menu structure analysis and repair
  • Link validation and broken link detection
  • Comprehensive menu reporting
  • Tree visualization

Paragraphs Integration

  • Paragraph type management and analysis
  • Nesting depth analysis
  • Orphaned paragraph detection
  • Usage statistics and validation

CKEditor & Text Formats

  • CKEditor 5 plugin analysis and reporting
  • Toolbar configuration inspection
  • Text format validation
  • Plugin dependency trees

Performance & Security

  • Memory usage analysis
  • Security role auditing
  • OWASP Top 10 compliance checking
  • WCAG 2.1 accessibility validation

Developer Tools

  • Service container analysis and dependency mapping
  • Namespace conflict detection
  • JS/CSS library management and validation
  • Code quality and best practice validation

Post-Installation

After installation, Gadget works entirely through Drush commands - no configuration pages needed! Simply run:

drush gadget

This displays all available commands organized by category. Each command includes:

  • Colorful, organized output for better readability
  • Interactive selection menus where appropriate
  • Comprehensive filtering and search options
  • Detailed help with examples

Key commands to get started:

  • drush gadget:info - Site overview and statistics
  • drush gadget:entity:list - Browse all content
  • drush gadget:config:validate - Check configuration health
  • drush gadget:help - Detailed help with examples

All commands support standard Drush options like --format, --fields, and output redirection.

Additional Requirements

Required:

  • Drupal 11+
  • Drush 11+ (for command functionality)
  • PHP 8.1+

Optional but Recommended:

  • Config Split module (for advanced config management features)
  • Paragraphs module (for paragraph-specific commands)
  • CKEditor 5 (for editor analysis tools)

Gadget works great alongside:

  • Devel - Complementary development tools
  • Config Split - Enhanced by Gadget's split management commands
  • Admin Toolbar - UI complement to Gadget's CLI tools
  • Paragraphs - Unlocks paragraph-specific analysis commands
  • Webform - Additional entity types for analysis

Similar projects

While tools like Devel, Drush core commands, and Console provide development utilities, Gadget differentiates itself by:

  • Comprehensive Coverage: 80+ commands covering every Drupal subsystem
  • Enhanced Output: Colorful, organized displays with emojis and formatting
  • Interactive Features: Menu-driven selection and guided workflows
  • Deep Analysis: Goes beyond basic listing to provide insights and issue detection
  • Unified Interface: Consistent command structure and output formatting
  • Production-Safe: Read-only analysis commands safe for live sites

Gadget doesn't replace these tools - it enhances your toolkit with specialized, developer-focused commands that provide deeper insights into your Drupal site.

Supporting this Module

Gadget is actively developed and maintained. You can support development by:

  • Reporting issues and feature requests on the project page
  • Contributing patches and improvements
  • Sharing your use cases and feedback
  • Starring the project to show appreciation

Community Documentation

  • Built-in Help: Run drush gadget:help for comprehensive documentation with examples
  • Command Reference: Each command includes detailed help via drush help gadget:command:name
  • Interactive Discovery: Use drush gadget to explore available commands by category

Perfect for:

  • Drupal developers debugging complex sites
  • Site builders analyzing content structure
  • DevOps teams validating configurations
  • Agencies managing multiple Drupal projects
  • Anyone who prefers powerful CLI tools over clicking through admin interfaces

Project information

Releases