Skip to content
OpenForgeProjectPublic

Repository files navigation

MageForge for Magento 2

Mageforge Hero

Release License Downloads PHP

PHPUnit Coverage Mutation Score Functional Tests Magento Compatibility

PHPCS Static Analysis Lint

MageForge is a powerful CLI toolkit for Magento 2 front-end development. It simplifies theme building workflows, supports multiple theme types (Magento Standard, Hyvä, TailwindCSS, custom), and includes developer tools like the Frontend Inspector.

Table of Contents

Contributor? Jump to the Development Guide.

Requirements

  • Magento 2.4.7+ (tested on 2.4.7-p10, 2.4.8-p5, 2.4.9)
  • PHP 8.3+
  • Node.js (LTS recommended)
  • Composer

Supported Theme Types

Mageforge Hero

Theme Type Support Status
Magento Standard ✅ Supported
Hyvä (TailwindCSS 3.x / 4.x) ✅ Supported
Hyvä Checkout ✅ Supported
Hyvä Fallback ✅ Supported
Custom TailwindCSS (no Hyvä) ✅ Supported
Avanta B2B ✅ Supported
Your Custom Theme Create your own Builder

Installation

  1. Install via Composer:

    composer require openforgeproject/mageforge
  2. Enable the module:

    bin/magento module:enable OpenForgeProject_MageForge
    bin/magento setup:upgrade

Quick Start

# 1. List available themes
bin/magento mageforge:theme:list

# 2. Build a theme
bin/magento mageforge:theme:build Magento/luma

# 3. Watch for changes (development mode)
bin/magento mageforge:theme:watch Magento/luma

See Commands Reference for the full command list with options and examples.

Frontend Inspector

MageForge includes a unified in-browser DevTools dock and panel (strictly CSS-isolated from storefront styles across Luma, Hyvä, and custom themes) for auditing pages and inspecting Magento blocks, templates, cache telemetry, and Web Vitals.

Features:

  • Unified DevTools Dock & Panel — Switch between a floating popover and a docked right-hand sidebar drawer in Dark, Light, or Auto colour schemes
  • Interactive Element Inspector — Compact non-intrusive Hover-HUD on storefront elements, interactive layout/DOM breadcrumbs, and ↑ / ↓ parent/child stepping
  • Page Block & Template Explorer — Searchable, filterable tree of every rendered Magento block on the page (All, Overrides, No Cache, Slow >50ms) with live hover highlighting
  • Main-Thread & Core Web Vitals Profiler — Live browser PerformanceObserver telemetry for TTFB & Server-Timing waterfalls, Google 4-phase LCP breakdown, CLS layout-shift culprits mapped to Magento .phtml blocks, runtime Magento AJAX/GraphQL/customer-data requests, Long Tasks (>50 ms) & TBT, Chromium long-animation-frame (LoAF) script/reflow attribution, render-blocking resources, and INP interactions
  • 27 Automated Storefront Audits — Accessibility (WCAG), SEO, Performance (including Main-Thread Blockers), HTML Quality, and Schema/JSON-LD checks with 1-click Inspect handoff from any finding straight to its .phtml template
  • 1-Click Open in IDE & Template Override — Open templates in PhpStorm, VS Code, Cursor, Zed, Sublime Text, or custom URLs (with automatic zero-config DDEV bind-mount / Mutagen host-path detection) or copy overrides into editable app/design/frontend themes
  • Unified Settings Hub — Browser-persisted preferences for dock corner, panel layout, dock labels, default override target theme, and IDE path mappings

Screenshot

Mageforge Toolbar

Enable:

bin/magento mageforge:theme:inspector enable

The Inspector can also be enabled in Admin: Stores > Configuration > MageForge > Frontend Inspector

Use in Browser:

  • Toggle: Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (macOS)
  • Hover over elements to inspect; click to lock on a specific block

Note: Requires Developer Mode. If not already active, run bin/magento deploy:mode:set developer.

Commands Reference

See the dedicated Commands Reference for complete documentation of all MageForge commands, including:

  • Theme commands (list, build, watch, clean, inspector)
  • Hyvä commands (tokens, compatibility:check including the Tailwind CSS v4 readiness check)
  • System commands (version, check)
  • Options, arguments, and usage examples

Documentation

Get your Merch

Mageforge Hero

Support

Credits

MageForge uses the following third-party libraries:

Library Author License
Tabler Icons codecalm MIT

Special Thanks

A big thank you to e3n-team for their continuous support and collaboration in the further development of MageForge.

Your contributions have been invaluable!


Thank you for using MageForge!

Releases

Sponsor this project

Packages

Used by

Contributors

Languages