OSIA UIN Generator
Open-source. Free to use.
A Unique Identity Number generator, built on the OSIA standard — by the community that writes it.
The OSIA UIN Generator is a free, open-source, PostgreSQL-backed tool for generating Unique Identity Numbers (UINs), fully compliant with the Open Standards for Identity APIs (OSIA) specification. Developed by the OSIA community, it’s designed to drop straight into any OSIA-based digital identity architecture — no custom integration required.
Key Features
- OSIA-native design — Implements the POST /v1/uin endpoint model
- Four generation modes — Basic, Random, Structured, and Sectoral Token
- PostgreSQL pool management — Pre-generation, reservation, and allocation workflows
- Cryptographic security — CSPRNG, HMAC-SHA256, RIPEMD-160 hashing
- HSM TRNG support — Hardware-based random number generation with provenance tracking
- Full audit trail — Immutable logging of every event in the UIN lifecycle
- Sectoral tokenization — Unlinkable, sector-derived identifiers
- Multiple output formats — JSON, JWT (RFC 7519), and JSON-LD (W3C Linked Data)
- Entropy provenance — Tracks whether each UIN was generated via HSM TRNG or software CSPRNG
Sectors Supported
Health · Taxation · Finance · Telecommunications · Statistics · Education · Social Services · Government
Technology Stack
| Layer | Technology |
| Runtime | Node.js 20+ |
| Server | Express.js 4.x |
| Database | PostgreSQL 15+ |
| Query Builder | Knex.js 3.x |
| Frontend | React 18 + Vite |
Why OSIA UIN Generator
Open source, no strings attached No licensing fees, no vendor lock-in. Free for any government, integrator, or implementer to use, inspect, and adapt.
Built on OSIA, by the people behind it Developed by the OSIA community and designed from the ground up around the OSIA specification, so it works natively with the broader ecosystem of OSIA-compliant identity components.
Security and provenance by design Cryptographically strong generation with full entropy provenance tracking and an immutable audit trail — built for the integrity requirements of national identity systems.
Who it’s for
Governments and implementers building or modernizing national ID systems who want an OSIA-compliant UID component — without reinventing it in-house or paying for a proprietary alternative.
Get Started
The OSIA UIN Generator is available now, free and open source.