Open Source · Apache-2.0 · 218 Countries

Global workforce compliance
infrastructure for developers.

One TypeScript SDK for tax IDs, payroll rules, banking formats, labor law, and immigration metadata — covering every country in the world.

app.ts
import { createRegium } from "@regium/core";
import { allCountries } from "@regium/data";

const regium = createRegium({ plugins: allCountries });

regium.getCountryConfig("IN");
// → { name: "India", currency: { code: "INR", symbol: "₹" }, ... }

regium.validate({ country: "IN", field: "PAN", value: "ABCPL1234C" });
// → { ok: true, normalized: "ABCPL1234C" }
218Countries
40+Validators
23npm Packages
0Runtime Deps
<30KBBundle (2 countries)

Everything you need for global compliance

One SDK replaces thousands of lines of country-specific logic.

🌍

Country metadata

ISO codes, currencies, timezones, languages, legal systems, tax authorities for 218 jurisdictions.

ID validators

PAN, Aadhaar, SSN, NINO, NRIC, CPF, IBAN, SWIFT — with real checksum algorithms (mod-97, Verhoeff, Luhn).

💰

Payroll engine

Gross→net with country-specific slabs, statutory contributions (EPF, CPP, NI, Super), and deductions.

📋

Dynamic forms

Auto-generate localized employee/company forms from metadata. Validation wired in. Framework-agnostic.

🏦

Banking validation

IBAN (ISO 13616), SWIFT (ISO 9362), IFSC, BSB, ABA routing, sort codes — validated and formatted.

📅

Time-travel

Pass an effectiveDate and get rules valid on that date. Historical payroll runs stay reproducible forever.

🔌

Plugin system

Register custom country packs, validators, or payroll providers. No fork required.

Tree-shakable

Import only the countries you need. Each pack is 7–12 KB. Zero runtime dependencies.

🛡️

Source-cited

Every rule links to a government gazette or statute. Auditable, diff-able, version-controlled.

Install in seconds

Two packages. Works with every JavaScript package manager.

$
npm install @regium/core @regium/data

Production-grade validators

Real checksum algorithms. Not just regex. Pure, deterministic, individually tree-shakable.

🇮🇳 PAN ABCPL1234C Regex
🇮🇳 Aadhaar 2341 2341 2346 Verhoeff
🇮🇳 GSTIN 29ABCDE1234F1Z5 GSTN check digit
🌐 IBAN DE89 3704 0044 0532 0130 00 ISO 13616 mod-97
🇺🇸 SSN 123-45-6789 Format + exclusion
🇧🇷 CPF 390.533.447-05 Dual mod-11
🇸🇬 NRIC S1234567D Weighted checksum
🇬🇧 NINO AB123456C Prefix exclusion
🇦🇺 ABN 53 004 085 616 Weighted mod-89
🇫🇷 SIREN 732 829 320 Luhn
🇨🇦 SIN 046 454 286 Luhn
🇦🇪 Emirates ID 784-1985-1234567-1 Format

218 countries. Every continent.

10 with full payroll & tax data (T1). All others with country profile, currency, and authority metadata.

🇮🇳 India
🇺🇸 United States
🇬🇧 United Kingdom
🇩🇪 Germany
🇫🇷 France
🇸🇬 Singapore
🇦🇪 UAE
🇧🇷 Brazil
🇦🇺 Australia
🇨🇦 Canada

+ 208 more countries and territories including Hong Kong, Macau, Puerto Rico, Jersey, Cayman Islands, Greenland, and more.

Built for teams shipping globally

If your product touches employees, contractors, payroll, or banking in more than one country — Regium is for you.

HRMS & HRIS

Employee onboarding forms that adapt per country. ID validation. Statutory leave tracking.

Global payroll

One engine with country-specific rules — slabs, contributions, deductions, 13th month.

EOR / Contractor SaaS

Per-jurisdiction validation, work authorization metadata, termination rules.

Fintech & banking

Validate IBAN, SWIFT, IFSC, BSB, routing numbers worldwide before processing payments.

ERP suites

Multi-country invoicing, expense management, time tracking with local rules.

Government tech

Auditable, source-cited compliance metadata with version history and effective dates.

Start building with Regium

Open source. Apache-2.0. Free forever.