Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

here is Idiva!

Description and use

The @shivn7h/idiva npm package validates and parses Indian identity and business identifiers using official checksum algorithms, replacing scattered regex snippets and catching malformed data early.

Problem

Most Indian document validation libraries rely on guesswork, leading to scattered regex snippets for PAN, GSTIN, Aadhaar, IFSC, etc., which only check format but not correctness.

Outcome

The package achieved 424 downloads in less than a week, indicating strong early adoption and addressing the gap of checksum‑based validation for Indian identifiers.

Workflow

  • Install @shivn7h/idiva via npm
  • Import the package in the codebase
  • Use provided functions to validate Aadhaar, GSTIN, PAN, IFSC, UPI VPAs, and vehicle numbers
  • Handle validation results before sending data to downstream services

Evidence

Most Indian document validation libraries rely on guesswork. If you’ve built fintech apps, onboarding flows, or checkout systems handling Indian user data, you’ve probably seen custom regex snippets scattered across codebases for checking PAN, GSTIN, Aadhaar, or IFSC numbers.

Source

That’s why I created @shivn7h/idiva — a lightweight, zero-dependency npm package designed to validate and parse Indian identity and business identifiers using official checksum algorithms where they exist:

Source

Aadhaar verified against the Verhoeff checksum algorithm.

Source

GSTIN verified against the official Mod-36 checksum

Source

It doesnt replace live government API verification (like UIDAI or GSTN), but it catches malformed or mistyped data immediately at the client or API boundary before hitting downstream services.

Source

  • Record date: 2026-10-04T13:10:44.577Z