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

@carrerahaus/latinfo

v0.21.4

Published

KYB API for Latin American legal entities. 20+ public registry sources for Peru — SUNAT, OSCE, OECE and more. Offline MPHF search, full OCDS data, updated daily.

Readme

Install

npm install -g @carrerahaus/latinfo
latinfo login

latinfo login opens GitHub OAuth in your browser and stores your API key in ~/.latinfo/config.json. Takes 30 seconds.

CLI

latinfo pe sunat padron 20100047218              # Lookup by RUC
latinfo pe sunat padron --search "banco credito" # Search by name
latinfo pe osce sanctioned 20100047218           # OSCE sanctions
latinfo sources                                   # List all available sources

SDK

npm install @carrerahaus/latinfo
import { Latinfo } from '@carrerahaus/latinfo';

const client = new Latinfo('YOUR_API_KEY');

// Lookup by RUC
const company = await client.pe.ruc('20100047218');
console.log(company.razon_social); // BANCO DE CREDITO DEL PERU

// Search by company name
const results = await client.pe.search('banco de credito');

// Rotate API key
const { api_key } = await client.rotate();

Get your API key: npm install -g @carrerahaus/latinfo && latinfo login

API

Base URL: https://api.latinfo.dev

GET /pe/ruc/:ruc              → Lookup by RUC (11 digits, legal entities only)
GET /pe/search?q=...          → Search by company name
GET /pe/:institution/:dataset/:id → Source-specific lookup
POST /auth/rotate             → Rotate API key
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.latinfo.dev/pe/ruc/20100047218

Full API reference: latinfo.dev/docs

What you don't have to do

You don't download hundreds of MB from SUNAT, OSCE, or OECE. You don't parse Latin1 with escaped pipe delimiters. You don't write check digit algorithms. You don't build a search index that handles S.A.C. and E.I.R.L. You don't set up daily import pipelines. You don't manage servers.

We do all of that. Daily.

Pricing

Billed in credits: a single-institution lookup or search costs 1 credit; a KYB costs 1 per government institution it cross-references.

  • Free: 1,000 credits/month — no credit card
  • Pro: 50,000 credits/month — $29/month

Live plan limits + your current usage: run latinfo plan, or GET https://api.latinfo.dev/plans (the single source of truth — these numbers are read from there, not hardcoded).

Links