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

enrichrapi

v0.1.0

Published

Official Node.js SDK for enrichrapi.dev — micro-toll utility API warehouse

Readme

enrichrapi

Official Node.js SDK for Enrichr — a micro-toll utility API warehouse. One API key. 40 endpoints. Fractions of a cent per call.

Install

npm install enrichrapi

Requires Node 18+ (uses native fetch). For older Node, pass a custom fetch function.

Quick start

const { Enrichr } = require('enrichrapi');
// or: import { Enrichr } from 'enrichrapi';

const client = new Enrichr('enr_your_api_key');

// Validate an email
const email = await client.enrich.email('[email protected]');
console.log(email.data.valid);          // true
console.log(email.data.disposable);    // false
console.log(email.cost_usd);           // 0.0001

// Generate a slug
const slug = await client.generate.slug('Hello World! Café & More');
console.log(slug.data.slug);           // hello-world-cafe-more

// Validate a credit card (Luhn + network, number never stored)
const card = await client.validate.creditCard('4111 1111 1111 1111');
console.log(card.data.network);        // Visa

// Look up a MIME type
const mime = await client.lookup.mimeType('pdf');
console.log(mime.data.mime_type);      // application/pdf

All 40 endpoints

client.enrich

| Method | Description | |---|---| | .email(email) | Validate email (format, MX, disposable) | | .phone(phone, countryHint?) | Parse phone to E.164, detect line type | | .address(street, city, options?) | Normalize postal address | | .ip(ip) | Geolocate IP (country, city, ISP, timezone) | | .classify(text) | Sentiment, toxicity, spam, language |

client.convert

| Method | Description | |---|---| | .currency(amount, fromCurrency, toCurrency) | ECB rates, updated daily | | .timezone(datetime, fromTz, toTz) | DST-aware IANA timezone conversion | | .units(value, fromUnit, toUnit, category?) | Length, weight, temperature, area, volume | | .number(value, fromBase) | decimal ↔ binary ↔ octal ↔ hex ↔ Roman | | .case(text) | camelCase, snake_case, PascalCase + 6 more | | .htmlToText(html) | Strip HTML tags | | .markdown(markdown) | Markdown → HTML | | .encoding(text, codec?, operation?) | base64, hex, url, html, rot13 |

client.validate

| Method | Description | |---|---| | .vat(vatNumber) | EU VAT — format + VIES check | | .password(password) | HIBP breach check + strength score | | .creditCard(number) | Luhn + network (Visa, MC, Amex, …) | | .iban(iban) | MOD-97 checksum, 77 countries | | .json(jsonString) | Validate + format + analyze JSON | | .color(color) | hex/rgb/hsl conversion | | .domain(domain) | Format + DNS A + MX check | | .regex(pattern, testString, options?) | Test regex, return all matches | | .uuid(uuid) | Validate + detect version (v1–v5) |

client.generate

| Method | Description | |---|---| | .qr(content, options?) | QR code → base64 PNG + data URI | | .uuid(version?, count?) | UUID v1 or v4, up to 100 | | .hash(text, algorithm?, encoding?) | MD5/SHA-1/SHA-256/SHA-512 | | .password(options?) | Secure random password + entropy | | .slug(text, options?) | URL-safe slug (Unicode-aware) | | .avatar(name, options?) | SVG initials avatar | | .lorem(options?) | Lorem ipsum text | | .token(options?) | hex / url_safe / alphanumeric / api_key |

client.analyze

| Method | Description | |---|---| | .text(text) | Word count, reading time, Flesch readability |

client.filter

| Method | Description | |---|---| | .profanity(text) | Detect + censor profanity |

client.lookup

| Method | Description | |---|---| | .postal(postalCode, country?) | City, state, coords (60+ countries) | | .country(query) | Country by ISO code or name | | .timezone(timezone) | IANA timezone info (offset, DST, abbr) | | .mimeType(query) | Extension → MIME or MIME → extensions |

client.parse

| Method | Description | |---|---| | .url(url) | Scheme, host, path, params, UTM tags | | .userAgent(userAgent) | Browser, OS, device, bot detection | | .csv(csvString, hasHeaders?) | CSV string → structured rows | | .date(dateString) | Parse any date string |

client.account

| Method | Description | |---|---| | .signup(email) | Create an API key | | .usage() | Monthly call count + estimated charge |

Error handling

const { Enrichr, EnrichrError } = require('enrichr');

const client = new Enrichr('enr_your_key');
try {
  const result = await client.enrich.email('[email protected]');
} catch (err) {
  if (err instanceof EnrichrError) {
    console.error(err.status, err.message);
  }
}

Older Node.js / custom fetch

const nodeFetch = require('node-fetch');
const client = new Enrichr('enr_...', { fetch: nodeFetch });

Pricing

First 1,000 calls/month are free. After that:

  • Most utility endpoints: $0.00001/call (one-hundredth of a cent)
  • Enrichment endpoints: $0.0001/call
  • VAT, address: $0.0005/call

Full pricing at enrichrapi.dev.

License

MIT