npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pkenya

v1.0.0

Published

TypeScript SDK for Kenyan professional & identity data API

Readme

🇰🇪 PKenya SDK

npm downloads license build


Overview

A TypeScript SDK for verifying Kenyan professional and identity data via the PKenya API.

It allows developers to easily integrate trusted verification services for:

  • Professional licenses
  • Registration status
  • Facility records (coming soon)
  • Identity verification (coming soon)

Features

  • Secure API key authentication
  • Simple, developer-friendly API
  • Fully typed (TypeScript support)
  • Modular architecture (profession, identity, facility)
  • Works in Node.js environments
  • Lightweight and fast

Installation

npm:

npm install pkenya

pnpm:

pnpm add pkenya

yarn:

yarn add pkenya

API Key

To use this SDK, you must generate an API key.


Setup

Option 1: Direct

import { PKenyaClient } from "pkenya";

const client = new PKenyaClient({
  apiKey: "pk_live_your_api_key",
});

Option 2: Environment Variables

PKENYA_API_KEY=pk_live_your_api_key
PKENYA_BASE_URL=https://api.pkenya.com
import "dotenv/config";
import { PKenyaClient } from "pkenya";

const client = new PKenyaClient();

Usage

The PKenya SDK is fully TypeScript-powered and provides a clean, modular, dot-notation API for accessing verification services.

// Pharmacist verification example
const license = await client.profession.pharmacist({
  registration_number: "2378",
  license_number: "P2026D00592",
});

console.log(license);

API Structure

Profession Verification

client.profession.doctor(...)
client.profession.engineer(...)
client.profession.advocate(...)
client.profession.accountant(...)
client.profession.pharmacist(...)
client.profession.pharmacyTechnician(...)
client.profession.clinicalOfficer(...)

Coming Soon

client.identity.verify()
client.facility.lookup()

Error Handling

The SDK may throw errors for:

  • Missing API key
  • Invalid configuration
  • API request failures
  • Not found (404) responses
  • Unauthorized access (401)

Example:

try {
  await client.profession.doctor({
    license_no: "12345",
  });
} catch (error) {
  console.log(error.status);
  console.log(error.message);
  console.log(error.data);
}

Design Philosophy

  • Explicit over implicit
  • Strong TypeScript safety
  • Modular architecture
  • Enterprise-ready SDK design

Security

  • API keys are never logged
  • Secure request headers only
  • No environment mutation
  • Safe-by-default configuration

Roadmap

  • Identity verification module
  • Facility lookup system
  • Retry + exponential backoff system
  • Webhooks support
  • Request logging hooks
  • Rate limiting handling

Documentation

Full SDK documentation, examples, and API reference:


Get API Key

Create and manage your API keys here:


License

MIT © PKenya