Frappe Erd

Lightweight ERD Viewer for Frappe/ERPNext and custom apps with LLM friendly schema exports

Install Frappe Erd

bench get-app https://github.com/RanaOsamaAsif/frappe_erd

Add the Frappe Gems badge to your README

Maintain Frappe Erd? Paste this into your README:

[![Listed on Frappe Gems](https://frappegems.com/api/method/frappe_gems.seo.badge?app=RanaOsamaAsif%2Ffrappe_erd)](https://frappegems.com/gems/apps/RanaOsamaAsif/frappe_erd)

About Frappe Erd

# Frappe ERD [![release](https://img.shields.io/github/v/release/RanaOsamaAsif/frappe_erd?label=release)](https://github.com/RanaOsamaAsif/frappe_erd/releases) [![license](https://img.shields.io/badge/license-AGPL--3.0-orange)](./LICENSE) ![status](https://img.shields.io/badge/status-actively%20maintained-brightgreen) ## Feature Preview

ERD graph view
ERD graph

Impact report view
Impact report

DocType detail drawer view
DocType details

A focused ERD Viewer app for the Frappe Framework. ## What it does - Build an ERD from selected Frappe DocTypes - Visualize table relationships and field structures - Inspect DocType metadata in a side drawer - Review a focused impact report for a DocType, including reverse links, child-table usage, customizations, automations, and direct runtime hooks - Export the ERD view as an image - Export selected DocType schemas as a Markdown guide for SQL and LLM prompts ## Tech - Backend: Frappe + Python - Frontend: React + Vite + `frappe-react-sdk` + React Flow ## Install ```bash bench get-app https://github.com/RanaOsamaAsif/frappe_erd.git bench --site your-site install-app frappe_erd ``` ## Route - App: `/erd-viewer` ## Access Control - `frappe-erd` uses a dedicated role named `ERD Viewer`. - Assign this role to users who should access the ERD UI and APIs. - Users without `ERD Viewer` (or `System Manager`) cannot access ERD, and do not need direct `DocType` permission. ## API methods kept - `frappe_erd.api.erd_viewer.get_meta_erd_schema_for_doctypes` - `frappe_erd.api.erd_viewer.get_meta_for_doctype` - `frappe_erd.api.erd_viewer.get_doctype_impact_report` - `frappe_erd.api.erd_viewer.export_markdown_schema_for_doctypes` ## Credits and Attribution This project is forked from [The Commit Company - Commit](https://github.com/The-commit-company/commit). Credit and thanks to The Commit Company and the original Commit contributors for building and open-sourcing the upstream project. `frappe-erd` was extracted and adapted from that codebase to provide a standalone ERD Viewer focused specifically on schema visualization for the Frappe/ERPNext ecosystem. The goal of this fork is to keep the ERD functionality lightweight, easier to adopt, and simpler to maintain as an independent app. ## License This project is released under AGPL-3.0. Please also review and respect the upstream project's license and credits. ## Contributing Suggestions, feature requests, and pull requests are welcome.

Related Other apps for Frappe & ERPNext

  • Erpnext — Free and Open Source Enterprise Resource Planning (ERP)
  • Helpdesk — Modern, Streamlined, Free and Open Source Customer Service Software
  • Print Designer — Visual print designer for Frappe / ERPNext
  • Ctr — CTR模型代码和学习笔记总结
  • Whitelabel — Whitelabel ERPNext
  • Fossunited — fossunited.org
  • Helm — Helm Chart Repository for Frappe/ERPNext
  • Frappe Attachments S3 — A frappe app to upload file attachments in doctypes to s3.