Full Stack DeveloperAI Engineer

Savio Fontana

Two years building tax-compliance SaaS for companies in Brazil and Paraguay, from NF-e e-invoices to SIFEN and Brazil's tax reform. Today I build complete products, from the database to artificial intelligence.

Tax SaaS
2 years
Tax reform
IBS · CBS
Coruja, my own product
15k lines
Tax documents
Brazil · Paraguay

About

For two years I have been writing the software that calculates taxes, transmits electronic invoices and keeps inventory compliant for companies in Brazil and Paraguay. When the rules change, the system has to change with them, without stopping anyone's business. Today I bring that discipline to whole products, from the database to artificial intelligence.

Experience · Tax SaaS

Two years inside tax compliance, in Brazil and Paraguay

I build modules that turn tax rules into reliable code: tax calculation, issuing and transmitting electronic tax documents in both countries, and the changes required by Brazil's tax reform.

Tax modules

  • ICMS, ICMS-ST, DIFAL, IPI, PIS and Cofins calculation
  • Classification by NCM, CFOP and CST/CSOSN
  • Electronic documents: NF-e, NFC-e and NFS-e
  • Rule validation before sending to SEFAZ
  • Ancillary obligations and SPED

Tax reform

  • IBS, CBS and Selective Tax (EC 132/2023 and LC 214/2025)
  • New IBS and CBS groups in the document XML
  • Tax classification by cClassTrib
  • Running both systems side by side during the transition
  • Configurable rates for values that will still change

Paraguay · SIFEN

Shipped
  • Transmission of electronic documents to SIFEN
  • Digitally signed XML and 44-digit CDC
  • Response handling: approved or rejected
  • RUC lookup on the DNIT web service
  • VAT at 10%, 5% and exempt
nfe-item-1.xml 2026 · test
R$
<det nItem="1">
  <prod><vProd>1000.00</vProd></prod>
  <imposto>
    <IBSCBS>
      <CST>000</CST>
      <cClassTrib>000001</cClassTrib>
      <gIBSCBS>
        <vBC>1000.00</vBC>
        <gIBSUF><pIBSUF>0.1000</pIBSUF><vIBSUF>1.00</vIBSUF></gIBSUF>
        <gIBSMun><pIBSMun>0.0000</pIBSMun><vIBSMun>0.00</vIBSMun></gIBSMun>
        <vIBS>1.00</vIBS>
        <gCBS><pCBS>0.9000</pCBS><vCBS>9.00</vCBS></gCBS>
      </gIBSCBS>
    </IBSCBS>
  </imposto>
</det>
CBS · 0.9%
R$9.00
IBS · 0.1%
R$1.00
Total shown
R$10.00

Simplified example of the NT 2025.002 layout, using the 2026 test rates. Change the value to recalculate.

Tax reform

The transition, year by year

From 2026 to 2033, two tax systems run side by side. Every year changes what the software has to calculate, show on the invoice and settle.

Current taxesIBS and CBS

2026

Test year

CBS at 0.9% and IBS at 0.1% shown on tax documents. The amount can be offset against PIS and Cofins.

Federal
States and cities

2027

CBS takes effect

PIS and Cofins are abolished. The Selective Tax starts and IPI drops to zero, except in the Manaus Free Trade Zone. IBS stays at 0.1%.

Federal
States and cities

2028

Same model as 2027

CBS stays at full rate and IBS remains in its test phase while states and cities prepare for the switch.

Federal
States and cities

2029

ICMS and ISS start phasing out

ICMS and ISS drop to 90% of current rates and IBS covers the difference. Every invoice now carries both calculations.

Federal
States and cities

2030

ICMS and ISS at 80%

IBS rises by the same proportion. Credits and settlement still run in two parallel systems.

Federal
States and cities

2031

ICMS and ISS at 70%

Another step in the gradual switch, with transition rules adjusting tax incentives.

Federal
States and cities

2032

ICMS and ISS at 60%

The last year the two models coexist.

Federal
States and cities

2033

Full dual VAT

ICMS and ISS are abolished. What remains is the federal CBS and the state and municipal IBS.

Federal
States and cities

Domain · Inventory

Inventory that matches the tax books

I know the path of every item, from the purchase invoice to the stock count. Inventory and tax go together, because every movement affects both cost and tax.

  • MovementsReceipts, issues and transfers between warehouses
  • CostWeighted average cost and inventory valuation
  • TraceabilityBatches, expiry dates and the origin of every unit
  • Stock countCounting, discrepancies and adjustments
  • AvailableReserved for orders and free to sell
  • SPEDImpact on the inventory blocks, such as Block H

Stock card

Cardboard box 40×30 · SKU 10293 · average cost

Kardex
DateMovementQtyUnit costBalanceAvg costValue
Nov 03Receipt · Inv. 1,204+10010.0010010.001,000.00
Nov 05Receipt · Inv. 1,311+5013.0015011.001,650.00
Nov 08Issue · order 552−8011.007011.00770.00
Nov 12Receipt · Inv. 1,398+3014.0010011.901,190.00
Nov 14Issue · order 571−4011.906011.90714.00

Issues leave at the current average cost. A more expensive receipt pulls the average up.

Own project · 2026

Coruja

Caring families, calm schools.

A SaaS for Brazilian schools that I built on my own, from product to infrastructure. Teachers take attendance and post homework. At 5 p.m., each family gets a single WhatsApp message with only what concerns their own child.

Role
Founder and sole developer
Stack
Astro, React, Node, PostgreSQL
Stage
Pre-launch
C
Coruja · Example Schoolbusiness account
TODAY
Daily summary · Ana · 3rd grade A
✅ Present today
📚 Homework: Portuguese, book p. 42, exercises 1 to 5
🎒 Tomorrow: bring 5 bottle caps
📅 Family meeting: Thu, Nov 21, 7 p.m. 17:00 ✓✓
👍 Seen📅 Save date

Daily Summary at 5 p.m.

The scheduler builds one message per family and queues it. If sending fails it retries, and it never sends twice.

scheduler.ts · messaging.ts

Field-level encryption

Phone numbers, e-mails, messages and health data are encrypted. A blind index finds a phone number without storing it in readable form.

AES-256-GCM · HMAC

Chained audit log

Each record carries the fingerprint of the previous one. If anyone tampers with the history, the chain breaks and gives it away.

hash chain

Billing with Pix

Tuition without duplicates, daily late fees and interest, overdue accounts by age bracket, and Pix payments reconciled automatically through AbacatePay.

finance.ts · abacate.ts · pdfmake

Conflict-free timetable

Pure, tested rules. Teacher conflicts are checked against real clock time, so they are caught even across different shifts.

timetable.ts · grade.test.ts

Fast and hardened

Server-rendered Astro with React islands, hash-based CSP, brotli assets, systemd, HTTPS with Caddy and daily backups.

Astro SSR · CSP · Caddy

AI Engineering

AI applied to real problems

I treat language models as an engineering component, with controlled input, validated output and measured cost. And I use AI in my own workflow to ship faster without losing quality.

In use

Agent-driven development

Coding agents that read the project, plan, write, test and review. That is how Coruja went from spec to 15,000 tested lines.

In use

Knowledge graphs

I turn documents and code into a queryable graph. I mapped Coruja's entire spec this way before writing the first line.

LLMs in production

Model integration

Structured prompts, schema-validated JSON output, tool use, caching, and per-request cost and latency control.

Tax + AI

Assisted tax classification

Suggesting NCM, CFOP and tax classification from the product description, always with human review and a deterministic rule behind it.

Stack

End-to-end tools

Front-end

  • TypeScript
  • Astro
  • React
  • Tailwind CSS
  • Three.js and WebGL
  • GSAP

Back-end

  • Java
  • PHP
  • Node.js
  • Hono
  • REST APIs and webhooks
  • Queues and schedulers
  • PDF generation

Data and reports

  • Oracle SQL
  • PostgreSQL
  • SQL and migrations
  • JSON
  • Eclipse BIRT
  • Multi-company data modeling
  • Backup and restore

Tax domain

  • NF-e, NFC-e and NFS-e
  • SIFEN and RUC lookup (Paraguay)
  • ICMS, ST, DIFAL, IPI
  • PIS and Cofins
  • IBS, CBS and IS
  • SPED
  • Inventory and average cost

Security and infra

  • AES-256-GCM and HMAC
  • scrypt and sessions
  • CSP and rate limiting
  • Linux, Docker, systemd
  • Caddy and Cloudflare

AI

  • Claude API
  • Agents and tools
  • Prompt engineering
  • Knowledge graphs
  • RAG

Contact

Let'stalk

Open to roles and projects in SaaS, tax systems, full product development and AI automation.