# frappe/erpnext

> ERPNext is an open-source enterprise resource planning (ERP) system that helps businesses run daily operations such as invoicing, stock tracking, personnel management and accounting. Instead of buying separate software for each task, it covers accounting, order management, manufacturing, asset management and projects in one centralized system. It is written mainly in Python, with JavaScript and TypeScript for the user interface, and is built on the Frappe Framework.

Source: https://github.com/frappe/erpnext
Indexed: commit 6c5aca0 on 2026-08-11 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Command-line tool
- Language: Python
- Stars: 41,319 at index time
- License: GPL-3.0
- Code health: 5.3/10, Needs_work
- Last commit: 2026-08-11
- Contributors: 997

## Install

From the README: https://github.com/frappe/erpnext

Start the demo environment with Docker Compose.
    docker compose -f pwd.yml up -d

## How to use

Start the bench server.
    bench start

Create a new site named erpnext.localhost.
    bench new-site erpnext.localhost

Install the ERPNext app on that site.
    bench --site erpnext.localhost install-app erpnext

## How it works

The erpnext directory holds the main application, about 4626 files organized into folders for each business area. Business records are defined as doctypes, so erpnext/accounts/doctype/journal_entry/journal_entry.py defines the journal entry document and erpnext/stock/doctype/stock_entry/stock_entry.py defines stock entries. erpnext/controllers/accounts_controller.py is a shared controller file in the accounting code that these documents build on. The Frappe Framework supplies the database layer, user authentication and REST API that these parts run on. The banking directory is a separate TypeScript front end whose entry point is banking/src/main.tsx. erpnext/www/book_appointment/index.html is a public web page served by the application.

- banking/index.html: entry point
- banking/src/App.tsx: entry point
- banking/src/lib/namespace/index.js: entry point
- banking/src/main.tsx: entry point
- erpnext/www/book_appointment/index.html: entry point
Modules: erpnext, banking, .github, root, .greptile, semgrep. 4,833 files, 735,483 lines, 17,556 symbols.

## Code health

- Score: 5.3/10 (Needs_work)
- Rank: #237 of 4,000+ indexed repos
- Hotspots: erpnext/tests/utils.py, erpnext/controllers/accounts_controller.py, erpnext/stock/doctype/stock_entry/stock_entry.py, erpnext/manufacturing/doctype/work_order/test_work_order.py, erpnext/accounts/doctype/journal_entry/journal_entry.py
- Lowest file: erpnext/stock/serial_batch_bundle.py
- Dead code: 1,029 findings

## Maintenance

- Last commit 2026-08-11, first commit 2011-06-08, 60,786 commits
- 997 contributors, bus factor 5

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/frappe/erpnext/security

## More

- Page: https://repowise.dev/repo/frappe/erpnext
- Ask this codebase: https://repowise.dev/repo/frappe/erpnext/chat
- Docs: https://repowise.dev/repo/frappe/erpnext/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/frappe/erpnext
