I've been working on a new ERP framework that's written in Rust, runs on PostgreSQL 18, and is fully self-hosted, with no vendor in the middle.

The code is available at:

The main properties:

  • The core stays small. Every business domain (sales, purchase, inventory, accounting, point of sale, HR, projects) is an addon.
  • Addons extend each other: models, fields, views, menus, access rules and data.
  • One typed ORM over PostgreSQL. Models and fields are declared in Rust.
  • Addons can be native Rust crates, data-only packages, or WebAssembly components.
  • Administrators can script small automations in sandboxed Luau, with time, step and memory limits.
  • One program, erp, initializes the database, serves the HTTP API and the web client, and runs background jobs.
  • MIT or Apache-2.0, at your choice.

Why

A business keeps its most important records in its ERP: what it sold, what it owes, what is in the warehouse. Too often those records sit behind someone else's server, licence terms and release schedule. I wanted a system a small company can run on its own machine, read end to end, and extend without asking anyone.

Rust was the practical choice, not the fashionable one. An ERP is a large program that many people extend for many years, and most of its bugs are the kind a type system and a strict compiler catch early.

Where it stands

It is early. It is not ready to run a real business, and I would not move anyone's books to it today.

What exists is the framework, around ninety addons at different levels of maturity, and a demo you can install with one script:

git clone https://github.com/IndoERP/ERPForAll.git cd ERPForAll scripts/install.sh 

It supports Linux x86_64 and macOS on Apple Silicon. Documentation: Redirecting to: /ERPForAll/en/

What I'd like from this forum

Review from people who have built large Rust systems, in particular on:

  1. The ORM (crates/erp-orm): the model and field declarations, and how records are cached and flushed.
  2. The layering. The workspace is split into crates where a lower layer never depends on a higher one, and a script checks it. I'd like to know where that split is wrong.
  3. The WebAssembly addon interface (wit/): whether it is the right boundary for third-party code.

Criticism is more useful to me than encouragement.

1 post - 1 participant

Read full topic