whatisgithub

What is acbr_ffi?

kassane/acbr_ffi — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2023-10-02

ZigAudience · developerComplexity · 3/5DormantSetup · hard

In one sentence

Thin C/Zig bindings for ACBrLib that let developers generate Brazilian electronic tax invoices (NF-e) without rewriting the compliance logic themselves.

Mindmap

mindmap
  root((repo))
    What it does
      Bridges to ACBrLib
      Generates NF-e invoices
      Handles tax compliance
    Tech stack
      Zig
      C
      ACBrLib
    Use cases
      Emit tax invoices from checkout
      Build ERP invoicing feature
      Bring ACBr to Zig or C
    Audience
      Brazilian market developers
      POS and ERP builders
    Notes
      Requires ACBrLib installed
      Minimal example docs

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Emit a Brazilian NF-e electronic invoice automatically every time a sale closes in a point-of-sale app.

USE CASE 2

Add fiscal document generation to an ERP system without reimplementing Brazilian tax rules.

USE CASE 3

Call ACBrLib's invoicing and digital signature features from a Zig or C service.

What is it built with?

ZigC

How does it compare?

kassane/acbr_ffialichraghi/mach-duskalichraghi/mach-glfw-vulkan-example
LanguageZigZigZig
Last pushed2023-10-022024-02-242023-08-11
MaintenanceDormantDormantDormant
Setup difficultyhardhardmoderate
Complexity3/54/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires ACBrLib to be installed separately, it does not work as a standalone download.

So what is it?

This project helps developers in Brazil generate and manage electronic invoices, known as NF-e (Nota Fiscal Eletrônica). Brazilian businesses are legally required to issue these digital tax documents for sales and services. The repo provides thin bindings so programs written in C or Zig can talk to ACBrLib, a widely used library that handles the complex rules and formatting that Brazilian tax authorities require. At its core, this is a bridge layer. ACBrLib itself does the heavy lifting, it knows how to build invoice XML files, apply digital signatures, and communicate with government web services. This repo simply wraps that functionality so you can call it from languages that aren't natively supported by the original ACBr Project, which was built primarily for Delphi. You initialize the library, call functions, and ACBr handles the tax compliance details. The target audience is a developer building invoicing, ERP, or point-of-sale software for the Brazilian market. If you're writing a checkout system in Zig, or a lightweight C service that needs to emit a fiscal document, this lets you tap into ACBr without rewriting the entire fiscal logic yourself. A concrete scenario: a small retail app needs to send an NF-e to the state tax authority every time a sale closes, this project is one piece of that pipeline. One thing to note: the project depends on ACBrLib being installed separately, so it won't work as a standalone download. It's also fairly minimal in scope, the README shows basic initialization and doesn't document the full range of invoice operations. The Zig implementation appears to be the main focus, with C as a secondary target, both demonstrated through simple example files.

Copy-paste prompts

Prompt 1
Show me how to install ACBrLib and use these bindings to generate a basic NF-e invoice in Zig.
Prompt 2
Explain how this project bridges Zig or C code to ACBrLib for Brazilian tax compliance.
Prompt 3
Help me wire up NF-e invoice generation into my point-of-sale checkout flow using this library.

Frequently asked questions

What is acbr_ffi?

Thin C/Zig bindings for ACBrLib that let developers generate Brazilian electronic tax invoices (NF-e) without rewriting the compliance logic themselves.

What language is acbr_ffi written in?

Mainly Zig. The stack also includes Zig, C.

Is acbr_ffi actively maintained?

Dormant — no commits in 2+ years (last push 2023-10-02).

How hard is acbr_ffi to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is acbr_ffi for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.