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

@tekhnoai/fides

v0.1.1

Published

SDK oficial da Fides — dados cadastrais e compliance de CNPJs brasileiros (QSA, sanções CEIS/CNEP dos sócios, score)

Readme

@tekhnoai/fides

SDK JavaScript/TypeScript oficial da Fides — dados cadastrais e sinais de compliance de qualquer CNPJ brasileiro em uma chamada.

Zero dependências. Usa fetch nativo (Node 18+, Deno, Bun, browsers).

npm install @tekhnoai/fides

Uso

import Fides from "@tekhnoai/fides";

const fides = new Fides("fds_sua_chave"); // pegue a sua em fides.api.br

// Ficha completa: cadastro, endereço, CNAEs, Simples/MEI, quadro societário
const ficha = await fides.cnpj("54977486000222");
console.log(ficha.razao_social);

// Sanções CEIS/CNEP da empresa E dos sócios
const sancoes = await fides.sancoes("54977486000222");
if (sancoes.alerta) console.log("⚠️ sanção vigente encontrada");

// Score de risco 0–100 com cada sinal explicado
const { score, risco, sinais } = await fides.score("54977486000222");

// Consumo do mês (não gasta franquia)
const uso = await fides.usage();
console.log(`${uso.usadas}/${uso.limite_mensal} consultas`);

Métodos

| Método | Endpoint | Plano | | -------------------------------- | ------------------------------- | ----- | | fides.cnpj(cnpj) | ficha completa | todos | | fides.sancoes(cnpj) | sanções da empresa e sócios | todos | | fides.score(cnpj) | score de risco explicado | todos | | fides.usage() | consumo do mês | todos | | fides.batch(cnpjs) | até 1.000 CNPJs por chamada | pro+ | | fides.buscaSocios(nome, limit) | busca reversa pessoa → empresas | scale |

Tratamento de erros

Erros da API viram FidesError com o status HTTP e helpers:

import Fides, { FidesError } from "@tekhnoai/fides";

try {
  await fides.cnpj("00000000000000");
} catch (e) {
  if (e instanceof FidesError) {
    if (e.isNotFound) console.log("CNPJ não encontrado");
    if (e.isRateLimited) console.log("limite do plano atingido");
    console.log(e.status, e.apiMessage);
  }
}

Opções

new Fides("fds_...", {
  baseUrl: "https://fides.api.br", // padrão
  fetch: customFetch, // injeta seu próprio fetch (proxy, testes)
});

Autenticação

Pegue sua chave gratuita (50 consultas/mês, só email) em fides.api.br — tem playground sem cadastro pra testar antes.

Links

Licença

MIT — uma API Tekhno.