One TypeScript SDK for tax IDs, payroll rules, banking formats, labor law, and immigration metadata — covering every country in the world.
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" }
One SDK replaces thousands of lines of country-specific logic.
ISO codes, currencies, timezones, languages, legal systems, tax authorities for 218 jurisdictions.
PAN, Aadhaar, SSN, NINO, NRIC, CPF, IBAN, SWIFT — with real checksum algorithms (mod-97, Verhoeff, Luhn).
Gross→net with country-specific slabs, statutory contributions (EPF, CPP, NI, Super), and deductions.
Auto-generate localized employee/company forms from metadata. Validation wired in. Framework-agnostic.
IBAN (ISO 13616), SWIFT (ISO 9362), IFSC, BSB, ABA routing, sort codes — validated and formatted.
Pass an effectiveDate and get rules valid on that date. Historical payroll runs stay reproducible forever.
Register custom country packs, validators, or payroll providers. No fork required.
Import only the countries you need. Each pack is 7–12 KB. Zero runtime dependencies.
Every rule links to a government gazette or statute. Auditable, diff-able, version-controlled.
Two packages. Works with every JavaScript package manager.
npm install @regium/core @regium/data
Real checksum algorithms. Not just regex. Pure, deterministic, individually tree-shakable.
ABCPL1234C
Regex
2341 2341 2346
Verhoeff
29ABCDE1234F1Z5
GSTN check digit
DE89 3704 0044 0532 0130 00
ISO 13616 mod-97
123-45-6789
Format + exclusion
390.533.447-05
Dual mod-11
S1234567D
Weighted checksum
AB123456C
Prefix exclusion
53 004 085 616
Weighted mod-89
732 829 320
Luhn
046 454 286
Luhn
784-1985-1234567-1
Format
10 with full payroll & tax data (T1). All others with country profile, currency, and authority metadata.
+ 208 more countries and territories including Hong Kong, Macau, Puerto Rico, Jersey, Cayman Islands, Greenland, and more.
If your product touches employees, contractors, payroll, or banking in more than one country — Regium is for you.
Employee onboarding forms that adapt per country. ID validation. Statutory leave tracking.
One engine with country-specific rules — slabs, contributions, deductions, 13th month.
Per-jurisdiction validation, work authorization metadata, termination rules.
Validate IBAN, SWIFT, IFSC, BSB, routing numbers worldwide before processing payments.
Multi-country invoicing, expense management, time tracking with local rules.
Auditable, source-cited compliance metadata with version history and effective dates.