payroll-rules-india
A professional, modular, and extensible
Payroll Rules Engine designed for
India-specific salary calculations.
Supports
custom rules, statutory components (PF, ESI, PT, Bonus Act), rule evaluation, financial yearโbased logic, and customizable conditions.
> โ Ideal for HRMS, Payroll Systems, SaaS Platforms, Staffing Companies, FinTech Apps
> โ Built with TypeScript + Rollup
> โ Includes production-ready JS +
.d.ts types
---
๐ Features
- ๐งฎ Custom Rule Engine for payroll formula evaluation
- ๐ฎ๐ณ India Statutory Payroll Support (PF, ESI, PT, Bonus, LWF etc.)
- ๐
FY-based rule structures (FY 2024โ25, FY 2025โ26...)
- ๐งฉ Modular structure:
rules,
utils,
fy2024_2025
- ๐ง Expression evaluator using
expr-eval
- ๐ Extend or override rules per client/PO/employee
- ๐ Easily integratable with Node, TypeScript, or React backend
- ๐ฆ Lightweight & optimized bundle
---
๐ฆ Installation
```bash
npm install payroll-rules-india