freenandes/actuallyexplain
freenandes/actuallyexplain has 94 GitHub stars and 13 forks. Star changes are not measured yet. Last checked 2026-11-11 08:07 UTC. Last push 2026-11-10.
actuallyEXPLAIN is a visualizer that helps you understand logical intent in complex PostgreSQL queries in a diagram and dictionarized form.
实测星标增长
- 24小时
- 更新延迟
- 7天
- 更新延迟
- 15天
- 更新延迟
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文actuallyEXPLAIN
actuallyEXPLAIN is a visualizer that helps you understand complex PostgreSQL queries in a diagram and dictionarized form.
Paste your code, and check the logic. No database connection required.
This may be useful for full-stack developers, indie hackers, and perhaps anyone using AI to write SQL who needs to verify what the code actually does before running it in production.
Right now, it just maps the logical intent. In the future, we want to help flag dangerous anti-patterns, warning you about potential database locks, and catching bad queries before they ever execute.
Open source under the MIT license. You're welcome to view the code, suggest stuff and contribute.
Contributing
- Fork the repo and clone it
npm installthennpm run devto start the local server- Make your changes, run
npm run buildto check for errors - Open a pull request
Tech
- React 19 + TypeScript, bundled with Vite
- Monaco Editor — the same editor that powers VS Code, used for SQL input
- React Flow — renders the node/edge diagram; layout is computed with dagre
- pgsql-ast-parser — parses raw SQL into an AST (no database needed)
- Lucide icons
- CSS Modules for styling (no UI framework)
Codebase
All source lives in src/. Key files:
| File | Role |
|---|---|
App.tsx |
Root component — wires together the editor, diagram, and panels |
buildFlowFromAST.ts |
Converts the parsed SQL AST into React Flow nodes and edges |
SqlNode.tsx |
Custom React Flow node component |
RecursiveEdge.tsx |
Custom edge for recursive/CTE references |
NodeDetailsPanel.tsx |
Side panel that shows details when a node is selected |
AboutModal.tsx |
About dialog |
NodeActionsContext.ts |
React context for node interaction callbacks |
To do
- Optimize code (remove redundancies, centralize styles, etc.)
Ideas
- Dictionary for maintenance commands with static heuristic warnings
- Export functionality
- BYOK AI chat for "further explain"
- Support other SQL flavors
- Digest execution plans and provide performance stats
Looking for something else?
actuallyEXPLAIN is built for logical intent (understanding what the code means). If that's not what you need right now, check out these great tools:
- Fix slow queries and visualize your actual Postgres execution plans with explain.dalibo.com or explain.depesz.com.
- Track data across 100s of tables with a tool like SQLFlow.
探索相关项目
Asabeneh/30-Days-Of-Python
30 Days of Python 编程挑战是一份循序渐进的指南,用于在 30 天内学习 Python 编程语言。这项挑战可能需要超过 100 天。请按自己的节奏进行。这些视频或许也有帮助:https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,560 星标grafana/grafana
开放且可组合的可观测性与数据可视化平台。可对来自 Prometheus、Loki、Elasticsearch、InfluxDB、Postgres 等众多数据源的指标、日志和追踪进行可视化。
77,830 星标redis/redis
对于正在构建实时数据驱动应用的开发者而言,Redis 是首选、速度最快且功能最丰富的缓存、数据结构服务器和文档与向量查询引擎。
77,395 星标apache/superset
Apache Superset 是一个数据可视化与数据探索平台
75,473 星标