[Go to site: main page, start]

100% Client-Side Rust + WebAssembly · Your SQL plans never leave your browser

SQL Deadlock Graph & Root-Cause Analyzer

Drop a SQL Server .xel or .xdl/.xml deadlock report, PostgreSQL error log, or SHOW ENGINE INNODB STATUS dump for an interactive lock-cycle diagram and fix steps.

SQL Server .xel & XML · PostgreSQL Log · MySQL InnoDB Status
Drop .xel, .xdl, .xml, or server .log excerpts
Try an interactive example in one click

How to capture a deadlock dump

Run the statement below in your SQL client and paste or drop the output above.

SQL Server Extended Events (.xel & XML)

-- Drop any binary system_health*.xel or Azure SQL Blob .xel file directly above (no SSMS needed),
-- or query XML from Extended Events:
SELECT CAST(event_data AS XML) FROM sys.fn_xe_telemetry_blob_target_read_file('system_health*.xel', NULL, NULL, NULL)
WHERE object_name IN ('xml_deadlock_report', 'error_reported', 'attention');

Drop a binary .xel capture, an .xdl / .xml deadlock report, or exported <events> XML.

PostgreSQL Log Excerpt

-- Copy from postgresql.log starting at:
-- ERROR:  deadlock detected
-- DETAIL: Process ... waits for ShareLock on transaction ...

Include the ERROR, DETAIL, HINT, and STATEMENT lines from your PostgreSQL server log.

MySQL / MariaDB InnoDB Status

SHOW ENGINE INNODB STATUS;

Paste either the full InnoDB monitor output or the LATEST DETECTED DEADLOCK section.

Frequently Asked Questions

Are my SQL execution plans or queries uploaded to a server?

No. Culprit Explain runs 100% locally in your browser using Rust compiled to WebAssembly (@culpritsql/plans). Your execution plans, SQL statements, and deadlock logs never leave your device.

Open-Source Culprit SQL Ecosystem

Every parser, React component, CI gate, and editor extension is open source under MIT.

Culprit SQL Studio

Desktop app, CLI, and 27-tool MCP server for automatic database tuning.

Culprit FleetNEW

Self-hosted multi-region database fleet command center, archive time-machine, and remote MCP server.

Culprit SQL for VS CodeNEW

VS Code, Cursor, and Windsurf custom .sqlplan / .xdl viewer, Plan Diff Studio, and SQL CodeLens.

@culpritsql/devtoolsNEW

Floating React & Node.js SQL HUD, automatic N+1 burst detector, and live EXPLAIN inspector.

@culpritsql/ciNEW

SQL migration lock linter, execution plan regression gate, SARIF 2.1.0 emitter, and PR diff bot.

@culpritsql/testNEW

Vitest, Jest, and node:test execution plan matchers for index usage, spills, and regressions.

@culpritsql/plans

Portable Rust + WebAssembly SQL plan parser, differ, deadlock parser, and exporter.

@culpritsql/plan-viewer

Interactive React flow diagrams, structural plan diffs, and deadlock cycle graphs.