Download the PHP package modracx/mage-frontend-dev-tools without Composer

On this page you can find all versions of the php package modracx/mage-frontend-dev-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mage-frontend-dev-tools

Modracx Frontend Dev Tools

Packagist version License

Overview

A storefront developer toolbar and profiler for Magento 2 that lives on the top‑center of every storefront page. Compatible out-of-the-box with Luma, Hyvä, and Breeze themes, it delivers real-time visibility into database query counts, N+1 query patterns, block rendering hierarchies, layout handles, Full Page Cache (FPC) state, theme file fallback resolution, event observer overhead, client-side JavaScript errors, Core Web Vitals, and frontend state (Alpine, Breeze, RequireJS/Knockout) – all without slowing down the page or interfering with your site's design.

The toolbar features a 3-layer security gate (module switch/mode, IP CIDR whitelist, and signed crypt-key access tokens) to ensure zero impact on regular shoppers and zero exposure of sensitive store telemetry in production environments.


Features

Feature What it does Key UI cue
Overview & Headline Profiling Displays total request duration, peak memory, query count/time, block count/time, event count, and Full Page Cache (FPC) status (HIT, MISS, UNCACHEABLE, OFF). Includes comparison against the previous run of the same action. Overview tab
Issue Detector & Guidance Automatically turns timing data into actionable findings split into userland vs core. Identifies N+1 query loops, duplicate statements, slow block renders, slow observers, and heavy modules with estimated time savings and fix recommendations. Issues tab
Core Web Vitals Measures real browser performance metrics directly in the client: Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), Interaction to Next Paint (INP), Time to First Byte (TTFB), First Contentful Paint (FCP), and DOM Interactive timing. Vitals tab
Query Profiler & N+1 Detector Captures every SQL query executed during the request. Groups identical statements, flags duplicate executions and N+1 loop patterns, and provides full call stack traces down to the originating file and line number. SQL tab
Block Render Hierarchy Renders a tree of layout blocks with exclusive vs inclusive render times. Highlights slow block rendering, template paths, block classes, cache keys, and cache lifetimes. Blocks tab
Layout & FPC Diagnostics Inspects loaded layout handles, merged layout XML updates, and identifies non-cacheable blocks (cacheable="false") that break Full Page Caching for the page. Layout tab
Theme Stack & Fallback Resolver Detects the active frontend stack (Hyvä, Breeze, Luma), displays the complete theme inheritance chain, and records template and asset resolution paths to show which module or theme file won. Theme tab
Cache & Private Content Shows Full Page Cache status, assigned cache tags, and monitors customer section data (private content) loading state and cache TTL. Cache tab
Events & Observer Inspector Profiles every dispatched Magento event and observer execution time. Identifies slow observers that block request dispatch. Events tab
Module Performance Breakdown Aggregates execution time, query count, block count, and observer count attributed to each active Magento or third-party module. Modules tab
Client-Side Error Beaconing Intercepts frontend JS errors, failed AJAX/fetch requests, Content Security Policy (CSP) violations, and 404 missing assets, reporting them directly into the toolbar. Client tab
Frontend Stack Inspector Inspects active frontend state and context for Alpine.js (Hyvä), Breeze runtime, or RequireJS/Knockout (Luma). Stack tab
Environment & Indexer Audit Reports PHP version, OPcache, Xdebug, Magento mode, database settings, and runs background indexer health checks safely without affecting profiled timings. Env tab
Run History & AJAX Profiler Logs recent storefront requests including background AJAX calls and GraphQL queries with full profile inspection. History tab
On-Demand Template & Block Hints Toggles storefront template hints and block name hints for your browser only via signed cookie without turning on global store-wide configuration hints. Toolbar header (Hints toggle)
CLI Access Token Generator Command bin/magento modracx:frontend:token generates secure opt-in links for developer browsers. Terminal CLI

UI Design & Architecture


Installation


Storefront Access (Opt-in Workflow)

Because the storefront is public, access requires explicit opt-in so shoppers never see profiling data:

  1. Generate your developer access link via CLI:

  2. Open the generated link in the browser where you want the toolbar enabled:

    This sets a signed mdx_fdt cookie valid for 30 days.

  3. Ensure your IP address is allowed in Stores → Configuration → Advanced → Modracx Frontend Dev Tools → Allowed IP Addresses.
  4. To disable access for your browser, click Disable Toolbar in the toolbar drawer footer or navigate to /modracx_fdt/access/disable.

Configuration

Configure options under Stores → Settings → Configuration → Advanced → Modracx Frontend Dev Tools:

Group Field Description Default
General enabled Master toolbar switch. When off, zero code executes on the storefront. Yes
allow_production Allow toolbar execution in Production mode. No
allowed_ips Comma/newline separated IP addresses or CIDR ranges (127.0.0.1,::1). 127.0.0.1,::1
require_cookie Also require signed access cookie derived from CLI token. Yes
Collectors db Collect database queries, execution time, and backtraces. Yes
blocks Collect block render tree and timing. Yes
events Collect dispatched event names. Yes
observers Collect observer class execution times. Yes
layout Collect layout handles and uncacheable block detection. Yes
fallback Collect theme file fallback resolution paths. Yes
cache Collect FPC status, cache tags, and customer section data state. Yes
client Collect client-side JS errors, failed network requests, and CSP violations. Yes
translations Collect translated phrases (Off by default due to high volume). No
Thresholds slow_query Query time threshold in ms to flag as slow. 50
slow_block Block render time threshold in ms to flag as slow. 50
slow_observer Observer execution time threshold in ms to flag as slow. 30
duplicate_limit Identical query count threshold before flagging duplicate queries. 3
nplus1_limit Iterated query count threshold before flagging N+1 loop patterns. 3
heavy_module Total module execution time threshold in ms to flag as heavy. 100
Storage persist Store profile runs in DB for History tab & AJAX request profiling. Yes
retention_hours Retention window in hours before profile history is pruned. 24
max_events Hard cap on max recorded entries per collector to protect memory. 5000

Permissions & ACL

Control access to profiler administration under System → Permissions → User Roles → Role Resources:

Resource Description
Modracx_FrontendDevTools::runs Access Storefront Profiler Runs history in Admin panel (System → Other Settings → Storefront Profiler Runs)
Modracx_FrontendDevTools::config Manage Modracx Frontend Dev Tools configuration section in System Configuration

Routes

Action URL / Path
Enable Access Cookie modracx_fdt/access/enable?token=<token>
Disable Access Cookie modracx_fdt/access/disable
View Panel Content modracx_fdt/panel/view?panel=<name>&token=<token>
Toggle Template Hints modracx_fdt/hints/toggle?mode=on\|blocks\|off
Collect Client Errors modracx_fdt/client/collect
Admin Profiler Runs List admin/modracx_fdt/runs/index

CLI Commands

Command Description
bin/magento modracx:frontend:token Displays the current crypt-key access token and auto-generated browser opt-in URLs.

Safety & Security


User Guide (full walkthrough)

Accessing the Toolbar

  1. Run bin/magento modracx:frontend:token on your server terminal.
  2. Copy the enablement URL and open it in your web browser.
  3. Visit any storefront page. Locate the dimmed "MODRACX" pill centered on the top edge of the browser viewport.
  4. Hover over the pill to see overall page status; click to slide down the developer toolbar.

Navigating the Drawer

Use mouse or keyboard navigation:

Key Action
Esc Close drawer
Tab Cycle focus within open drawer
Arrow left / right Switch between tabs
Home / End Jump to first / last tab

Panel Walkthrough

1. Overview Tab

2. Issues Tab

3. Vitals Tab

4. SQL Tab

5. Blocks Tab

6. Layout Tab

7. Theme Tab

8. Cache Tab

9. Events Tab

10. Modules Tab

11. Client Tab

12. Stack Tab

13. Environment Tab

14. History Tab


Toggling Template & Block Hints

Use the Hints toggle button in the top right of the toolbar drawer to switch template hints on demand:


Security & Best Practices

  1. Keep require_cookie Enabled: Ensures only authorized developers with valid tokens can view profiler output.
  2. Restrict IP Ranges: Limit allowed_ips to known office/VPN IP subnets.
  3. Production Mode Guard: Leave allow_production set to No unless actively debugging a staging/production issue under strict IP restrictions.

Uninstalling the Extension

Clear caches after disabling to remove toolbar assets from storefront pages.


Happy profiling!

Elevate your storefront performance analysis with Modracx Frontend Dev Tools. For updates, documentation, or support, visit the Modracx Portal or check the repository.


All versions of mage-frontend-dev-tools with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0
magento/framework Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package modracx/mage-frontend-dev-tools contains the following files

Loading the files please wait ...