Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/keen-search-terms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"naija-id": patch
---

Discoverability: expand `keywords` toward the terms people actually search.

Measured against npm's search API, the package already ranks **#1** for `naija-id` (score 678 vs 71 for the runner-up), **#1** for `vnin`, **#3** for `bvn` and **#8** for `nuban`. What it did *not* appear in the top 20 for was multi-word intent phrases — `nin nigeria`, `nigerian bank code`, `nigeria kyc`, `voters card nigeria`, `nigerian plate number`.

Part of that is unfixable by metadata: npm weights popularity heavily, so a days-old package cannot outrank `libphonenumber-js` on a generic phrase like "phone validation". But several of those phrases failed on words that simply were not in the keyword set — `nigerian` (only `nigeria` was there), `validator` (only `validation`), and the spelled-out identifier names.

Adds 15 keywords, keeping all 22 existing ones: `nigerian`, `validator`, `national-identity-number`, `bank-verification-number`, `virtual-nin`, `account-number`, `bank-account-validation`, `voters-card`, `vin`, `drivers-licence`, `fixed-line`, `landline`, `phone-validation`, `data-masking`, `log-redaction`.

The GitHub repository description, homepage and 19 topics were also set — they had been empty, which cost visibility in GitHub search and gave Google nothing to index. That change is outside the package and needs no release.
19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "naija-id",
"version": "0.5.1",
"description": "Zero-dependency validators, formatters and PII redaction for Nigerian identifiers phone (E.164), NIN, vNIN, BVN, Tax ID, TIN, CAC, NUBAN, plate, passport, driver's licence and RSA PIN.",
"description": "Zero-dependency validators, formatters and PII redaction for Nigerian identifiers \u2014 phone (E.164), NIN, vNIN, BVN, Tax ID, TIN, CAC, NUBAN, plate, passport, driver's licence and RSA PIN.",
"keywords": [
"nigeria",
"naija",
Expand All @@ -24,7 +24,22 @@
"identity",
"kyc",
"pii",
"redaction"
"redaction",
"nigerian",
"validator",
"national-identity-number",
"bank-verification-number",
"virtual-nin",
"account-number",
"bank-account-validation",
"voters-card",
"vin",
"drivers-licence",
"fixed-line",
"landline",
"phone-validation",
"data-masking",
"log-redaction"
],
"license": "MIT",
"author": "Musa Musa",
Expand Down
Loading