New: IT hardware procurement catalogue for offices & institutions. Get a free quote. Learn more →
-

Identik — Go Toolkit & API for Indonesian Data

An open-source Go library and public API to validate and process NIK, NPWP, phone numbers, region codes, number-to-words and Rupiah.

Client-
IndustryDevelopers
ServiceWeb Application Development
Year2026
38 · 514 · 7.285Provinces, regencies/cities and districts (Kepmendagri 2025)
0External dependencies in the core library
MITOpen-source licence
01

Challenge

Almost every Indonesian application needs to check a NIK, NPWP, phone number or region code, and ends up rewriting that logic from scratch. The result is inconsistent rules across projects, region data that quickly goes stale, and the same small bugs again and again.

02

Solution

We built Identik, a Go toolkit that works both as a library and as an HTTP API.

  1. NIK: structural validation, plus parsing of province, regency, district, birth date, gender and age.
  2. NPWP: validation of the 15- and 16-digit formats, conversion between them, and reading the KPP/branch code.
  3. Phone numbers: normalisation to E.164 and WhatsApp format, and operator detection from the prefix.
  4. Regions: 38 provinces, 514 regencies/cities and 7,285 districts embedded in the binary, with search and hierarchy lookup.
  5. Terbilang and Rupiah: numbers to words, plus Rupiah formatting and parsing.
  6. The core library has no dependencies and makes no network calls. A separate API module uses Fiber v3 with interactive docs, an OpenAPI spec, rate limiting and Docker support.
03

Result

Identik is openly available on GitHub under the MIT licence and installs with go get github.com/therohim/identik. Validation is structural: it checks that the format and contents of a number make sense, but it does not verify that a NIK or NPWP is actually registered.

Tech Stack

GoFiber v3OpenAPIDocker

Ready to start your next project?

A free 30-minute consultation with our team — no strings attached.