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

latinfo

v0.12.2

Published

Tax registry & procurement API for Latin America. Query RUC, DNI, NIT, licitaciones from Peru & Colombia. Offline MPHF search, full OCDS data, updated daily.

Readme

Install

npm install -g 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 ruc 20100047218           # Lookup by RUC
latinfo dni 12345678              # Lookup by DNI (converts to RUC automatically)
latinfo search "banco de credito" # Search by company name
latinfo ruc 20100047218 --json    # JSON output (for scripts and AI agents)

No login needed for demo data (~95 embedded records). Run latinfo login for 18M+ records.

SDK

npm install latinfo
import { Latinfo } from '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

// Lookup by DNI
const person = await client.pe.dni('12345678');

// 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 latinfo && latinfo login

API

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

GET /pe/ruc/:ruc       → Lookup by RUC (11 digits)
GET /pe/dni/:dni       → Lookup by DNI (8 digits)
GET /pe/search?q=...   → Search by company name
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

Response fields

| Field | Description | Example | |-------|-------------|---------| | ruc | RUC number (11 digits) | 20100047218 | | razon_social | Business name | BANCO DE CREDITO DEL PERU | | estado | Tax status | ACTIVO | | condicion | Domicile condition | HABIDO | | ubigeo | Location code (6 digits) | 150114 | | tipo_via | Street type | JR. | | nombre_via | Street name | CENTENARIO | | codigo_zona | Zone code | URB. | | tipo_zona | Zone name | BALCONCILLO | | numero | Street number | 156 | | interior | Interior / apt | - | | lote | Lot | - | | departamento | Dept (within building) | - | | manzana | Block | - | | kilometro | Kilometer marker | - |

What you don't have to do

You don't download 364MB from SUNAT. You don't parse Latin1 with escaped pipe delimiters. You don't write a check digit algorithm. You don't build a search index that handles S.A.C. and E.I.R.L. You don't set up a daily import pipeline. You don't manage servers.

We do all of that. Daily.

Pricing

  • Free: 100,000 requests/day — no credit card
  • Pro: 10M requests/month — $1/month

Countries

| Country | Data | Status | |---------|------|--------| | Peru | SUNAT padrón — RUC, DNI, company search | Active | | Brazil, Mexico, Colombia, Argentina, Chile | — | In development |

Links