>
HARDIL SINGH
← All work
AI-first SaaS · HRMS/ERP / 06

DecentroHR

Multi-tenant, AI-first HRMS/ERP — payroll, compliance and billing, built to scale.

RoleArchitect & Lead
OwnershipEnd to end — design to deploy
WhereBitDecentro · 2026
Livedecentrohr.com ↗
Overview

A multi-tenant HRMS/ERP SaaS designed to scale to millions of records, with an AI copilot at its centre. Strict PostgreSQL row-level-security isolates every tenant; a rule-configurable payroll and statutory-compliance engine drives the numbers.

What I built
  • Multi-tenant core with PostgreSQL row-level-security; auth, server actions and billing.
  • Rule-configurable payroll & statutory compliance engine (India-first: YTD, projections, component flags).
  • Sana, the AI agent inside the product: it can run 350+ typed business actions through the Claude API and asks a person to approve anything sensitive; deterministic evals are part of the test suite.
  • Feature-sliced architecture — route plugins + services — kept small and modular.
Architecture
  • RLS multi-tenancy in PostgreSQL
  • Route-plugin + service feature slices (Turborepo)
  • AI copilot layered over the domain
Stack
TypeScriptNext.jsDrizzlePostgreSQLAnthropicTurborepo