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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@projetoacbr/acbrlib-reinf-node

v1.0.6

Published

[![License: LGPL-2.1](https://img.shields.io/badge/License-LGPL--2.1-blue.svg)](https://opensource.org/licenses/LGPL-2.1) [![Version](https://img.shields.io/badge/version-1.0.5-blue.svg)](https://www.npmjs.com/package/@projetoacbr/acbrlib-reinf-node)

Readme

ACBrLib REINF Node.js

License: LGPL-2.1 Version

Pacote Node.js para integração com a ACBrLibReinf, fornecendo uma interface de alto nível para envio e consulta de eventos do REINF (Retenções e Outras Informações Fiscais) da Receita Federal do Brasil.

📋 Sobre

O acbrlib-reinf-node permite que aplicações Node.js/TypeScript integrem facilmente com o sistema REINF da Receita Federal, facilitando:

  • Criação e envio de eventos REINF
  • Consulta de protocolos e recibos
  • Validação de eventos
  • Configuração de parâmetros do contribuinte

🏗️ Arquitetura

Este pacote estende a ACBrLibBaseMT, oferecendo métodos específicos para REINF:

ACBrLibBaseMT (do @projetoacbr/acbrlib-base-node)
    ↳ ACBrLibReinfMT

📦 Instalação

npm install @projetoacbr/acbrlib-reinf-node

🚀 Uso Básico

const ACBrLibReinfMT = require('@projetoacbr/acbrlib-reinf-node').default;

🔧 Principais Funcionalidades

Configuração do Contribuinte

  • setIDContribuinte(id) - Define ID do contribuinte
  • setIDTransmissor(id) - Define ID do transmissor
  • setTipoContribuinte(tipo) - Define tipo do contribuinte (1=PF, 2=PJ)
  • setVersaoDF(versao) - Define versão do layout DF

Gestão de Eventos

  • criarEventoReinf(arquivoIni) - Cria evento a partir de arquivo INI
  • validar() - Valida evento carregado
  • enviarReinf() - Envia evento para a Receita Federal

Consultas

  • consultarReinf(protocolo) - Consulta evento por protocolo
  • consultarReciboReinf(params...) - Consulta recibo detalhado

Utilitários

  • obterCertificados() - Lista certificados digitais disponíveis

📋 Pré-requisitos

Bibliotecas Nativas

  • Linux: libacbrreinf64.so
  • Windows: ACBrReinf64.dll

Observações Técnicas

  • Windows: Usar convenção de chamada cdecl
  • Ambos: Utilizar versão MT (Multi-Thread)

Como Obter as Bibliotecas

⚙️ Configuração

O pacote utiliza um arquivo de configuração acbrlib.ini para definir parâmetros da biblioteca.

📚 Dependências

  • @projetoacbr/acbrlib-base-node - Funcionalidades base
  • koffi - Interface FFI para bibliotecas nativas

📖 Documentação

Para documentação completa da ACBrLib, visite: Documentação Oficial ACBrLib

📄 Licença

Este projeto está licenciado sob LGPL-2.1 - veja o arquivo LICENSE para detalhes.

🤝 Contribuição

Contribuições são bem-vindas! Veja nosso repositório principal para mais informações.

⚠️ Status

Em Desenvolvimento - Este pacote está em fase de desenvolvimento e pode conter funcionalidades incompletas.