← Back to work

Payroll SaaS · 2026

Sakti 21

A multi-tenant PPh 21 payroll tax calculator serving 64 companies from one shared instance — Indonesian income-tax rules, bulk payroll imports, and PDF payslips in one system.

companies served in production
64
tax methods — TER and Pasal 17
2
employee- or company-borne tax
Gross / Up

Architecture

Select a stage to explore it.

01 · CSV import

Employees and monthly payroll inputs arrive in bulk as CSV. Each file is validated against a schema and checked for referential integrity before anything is written.

NextAuth with company-scoped rolesaudit trail tied to the tax-rate version usedarchitecture decisions recorded as ADRs

01 · Problem

Indonesian payroll providers calculate monthly PPh 21 withholding for many client companies under regulations that keep changing. Doing it in spreadsheets is slow, error-prone, and impossible to audit once the rates change.

02 · What I built

A multi-tenant web application covering the whole monthly cycle: employee master data, payroll inputs by CSV or by hand, automatic PPh 21 calculation, reports, and payslips. It started as a Glide app and was rebuilt for production with proper authentication, row-level multi-tenancy, and server-side PDF generation.

03 · Engineering decisions

Tax rules live in versioned, effective-dated reference tables, and every stored calculation records which version it used — so a payslip from March can be explained in December. Tenancy is isolated at the row level, not by filtering in the interface. CSV imports are validated end to end before they touch the database.

04 · Results

In production, serving 64 companies from one shared instance. The source repository is private while clients use it; the architecture and tax-engine design are documented publicly.