Skip to main content
All Projects
Loading preview…
Rahkar ERP — Operations Overview
Open Source · Live Interactive Demo2026

Rahkar ERP

An open-source, self-hostable ERP system engineered around a shared double-entry accounting core, connecting sales, procurement, inventory, manufacturing, payroll, treasury, and BI reporting.

Integrated Modules
16 + Live Overview
Backend Surface
78 Routes · 10 Engines
Data & Quality
31 PG Tables · 29 Unit + E2E Tests

Key Capabilities

  • 16 integrated modules: Identity, Organization, Workflow, Integration, Accounting, Treasury, Sales, Purchasing, Inventory, Payroll, HR, Fixed Assets, Manufacturing, Budget, CRM, and BI Reporting.
  • FIFO and Weighted Average Cost (WAC) inventory valuation plus Bill of Materials (BOM) production costing with scrap & variance tracking.
  • Iranian labor & tax law compliance: progressive payroll tax, 7%/23% social insurance, severance/bonus reserves, VAT reporting, and electronic invoice queue.
  • 5-step company onboarding wizard with 4 industry chart-of-accounts templates, UTF-8 BOM CSV/Excel import-export, print/PDF vouchers, and automated backups.
  • Browser-only serverless demo build (`npm run build:demo`) persisted in `localStorage` so reviewers can test all roles (`admin`, `hesabdari`, `foroosh`, `anbar`) immediately.

Technical Architecture

  • Frameworkless SPA frontend in TypeScript 5.9 + Vite 7 (~336 KB bundle / ~87 KB gzip) with custom hand-crafted SVG charts, bundled Vazirmatn font, and offline-capable PWA Service Worker.
  • Zero-framework Node.js HTTP server (`node:http` + `tsx`) exposing 78 REST API routes across 27 functional groups with rate limiting and security headers.
  • 10 isolated server-side domain & calculation engines (`accounting`, `payroll`, `assets`, `manufacturing`, `operations`, `budget`, `report`, `tax-gateway`, `workflow`, `auth`).
  • Dual persistence layer: zero-setup atomic JSON file store (`.data/store.json`) by default, plus optional PostgreSQL adapter with 31 relational tables and 50 foreign-key constraints.
  • Security & multi-tenancy: HS256 JWT with refresh-token rotation, `scrypt` password hashing, 5-role RBAC, server-enforced company isolation, and immutable before/after audit logs.

Technologies

TypeScriptNode.jsVitePostgreSQLREST APIJWT & RBACVitestPWADocker