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

pimkit

v0.1.0

Published

A reusable React component that performs an NPI (National Provider Identifier) lookup and automatically maps the returned provider data to your application's states, enabling seamless autofill of related form fields such as name, address, phone number, an

Readme

Pimkit (Provider Identifier Mapper Kit)

A reusable React component that performs an NPI (National Provider Identifier) lookup and automatically maps the returned provider data to your application's states, enabling seamless autofill of related form fields such as name, address, phone number, and organization details.

The component validates and resolves an NPI, retrieves provider information, and updates supplied state setters so forms can populate instantly without manual data entry. Designed to be lightweight and flexible, it allows developers to connect only the fields they need, making it easy to integrate into existing form workflows or larger data-entry systems.

Screenshot

npi

Usage

Quick Start

import React, { useState } from "react";
import { Pimkit } from "pimkit";

export const QuickStart = () => {
  const [org, setOrg] = useState("");
  const [phone, setPhone] = useState("");

  return (
    <Pimkit api="/npi/" setOrg={setOrg} setPhone={setPhone}>
      <input type="text" placeholder="Enter NPI Number" name="npi" />
    </Pimkit>
  );
};

Install

npm install pimkit

Basic Setup

  1. Create an API endpoint that returns NPI provider data.
  2. Wrap a text input with Pimkit and pass the endpoint URL in api.
  3. Provide any state setters you want Pimkit to populate.

Example

This is based on example/components/form.tsx and shows a typical form integration:

import React, { useState } from "react";
import { Pimkit } from "pimkit";

export const Form = () => {
  const [firstName, setFirstName] = useState("");
  const [lastName, setLastName] = useState("");
  const [address, setAddress] = useState("");
  const [city, setCity] = useState("");
  const [state, setState] = useState("");
  const [zip, setZip] = useState("");
  const [country, setCountry] = useState("");
  const [countryName, setCountryName] = useState("");
  const [phone, setPhone] = useState("");
  const [npiNumber, setNPINumber] = useState("");
  const [org, setOrg] = useState("");

  return (
    <Pimkit
      api="/npi/"
      region="US"
      setFName={setFirstName}
      setLName={setLastName}
      setAddress={setAddress}
      setCity={setCity}
      setState={setState}
      setZip={setZip}
      setCountry={setCountry}
      setCountryName={setCountryName}
      setPhone={setPhone}
      setNPI={setNPINumber}
      setOrg={setOrg}
    >
      <input type="text" placeholder="Enter NPI Number" name="npi" />
    </Pimkit>
  );
};

API Response Shape

The component reads basic and the first entry in addresses from the response:

{
  "basic": {
    "organization_name": "101 DIABETIC SUPPLIES, LLC",
    "authorized_official_first_name": "DALE",
    "authorized_official_last_name": "GREYSLAK"
  },
  "addresses": [
    {
      "address_1": "1400 WHITE DR STE B",
      "city": "TITUSVILLE",
      "state": "FL",
      "postal_code": "327809657",
      "country_code": "US",
      "country_name": "United States",
      "telephone_number": "321-676-8989"
    }
  ]
}

Notes

  • The child element must be a single <input> element; Pimkit clones it to manage value, onChange, and disabled state.
  • Only pass the setters you want populated. Any omitted setters are ignored.
  • The NPI is validated with a Luhn check before the api request is made.

Todo

  • Ability to choose between mailing and location addresses.
  • Include other country identifiers. (Currently only US)

Example App

The Next.js example lives in example/ and includes a mock NPI API route at example/app/npi/route.ts.

  1. Install dependencies at the repo root: npm install
  2. Start the example app: cd example && npm run dev