<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: LEONARDO DE SOUZA JUNIOR</title>
    <description>The latest articles on DEV Community by LEONARDO DE SOUZA JUNIOR (@leonardo_desouzajunior_).</description>
    <link>https://dev.to/leonardo_desouzajunior_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3828335%2F72802c9d-dc59-461f-9df9-fb49ffdcfbd4.jpg</url>
      <title>DEV Community: LEONARDO DE SOUZA JUNIOR</title>
      <link>https://dev.to/leonardo_desouzajunior_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/leonardo_desouzajunior_"/>
    <language>en</language>
    <item>
      <title>I Built an Open Source LGPD Compliance Tool with Local AI</title>
      <dc:creator>LEONARDO DE SOUZA JUNIOR</dc:creator>
      <pubDate>Sat, 28 Mar 2026 01:04:36 +0000</pubDate>
      <link>https://dev.to/leonardo_desouzajunior_/i-built-an-open-source-lgpd-compliance-tooopensource-python-ai-privacyl-with-local-ai-1h77</link>
      <guid>https://dev.to/leonardo_desouzajunior_/i-built-an-open-source-lgpd-compliance-tooopensource-python-ai-privacyl-with-local-ai-1h77</guid>
      <description>&lt;p&gt;Brazil's data protection law (LGPD) requires companies to map personal data, generate impact reports, and respond to data subject rights — but compliance tools are expensive (R$10k+ for consulting, R$500-2000/month for SaaS).&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;LGPD Sentinel AI&lt;/strong&gt;, an open source tool that automates LGPD compliance audits using local AI (llama3.1 via Ollama). No cloud dependency, no monthly fees — your data never leaves your server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Personal data mapping&lt;/strong&gt;: AI-powered identification and classification&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DPIA generation&lt;/strong&gt;: Automated Data Protection Impact Assessment reports&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data subject rights (Art. 18)&lt;/strong&gt;: Analysis and recommendations for all 8 rights&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PDF export&lt;/strong&gt;: Professional audit-ready reports&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audit history&lt;/strong&gt;: Complete record of all compliance checks&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: FastAPI + LangChain + Ollama (llama3.1:8b)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: Streamlit&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database&lt;/strong&gt;: SQLite&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy&lt;/strong&gt;: Docker Compose&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License&lt;/strong&gt;: Apache 2.0&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ldsjunior-ui.github.io/lgpd-sentinel-landing/" rel="noopener noreferrer"&gt;Landing Page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/ldsjunior-ui/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;GitHub Repository&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://youtube.com/@lgpdsentinelai" rel="noopener noreferrer"&gt;YouTube Channel&lt;/a&gt;Feedback and contributions are welcome!&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>opensourcepythonaiprivacy</category>
    </item>
    <item>
      <title>I built an open-source LGPD audit tool with local AI (no cloud, no data leaks)</title>
      <dc:creator>LEONARDO DE SOUZA JUNIOR</dc:creator>
      <pubDate>Fri, 20 Mar 2026 03:50:59 +0000</pubDate>
      <link>https://dev.to/leonardo_desouzajunior_/i-built-an-open-source-lgpd-audit-tool-with-local-ai-no-cloud-no-data-leaks-c8b</link>
      <guid>https://dev.to/leonardo_desouzajunior_/i-built-an-open-source-lgpd-audit-tool-with-local-ai-no-cloud-no-data-leaks-c8b</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;LGPD Sentinel AI&lt;/strong&gt; — a 100% open-source tool that runs automated LGPD compliance audits using a &lt;strong&gt;local AI model&lt;/strong&gt; (Ollama + llama3.1). Zero data sent to the cloud. Zero PII exposure.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/ldsjunior-ui/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;https://github.com/ldsjunior-ui/lgpd-sentinel-ai&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Brazil's LGPD (Lei Geral de Proteção de Dados) has been in full effect since 2021, with fines up to 2% of revenue (capped at R$50 million per incident). Yet most small and mid-size Brazilian companies still handle compliance manually — spreadsheets, legal consultants, quarterly reviews.&lt;/p&gt;

&lt;p&gt;The problems with that approach:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Expensive&lt;/strong&gt;: DPO consultants charge R$3,000–15,000/month&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slow&lt;/strong&gt;: Manual audits take weeks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Risky&lt;/strong&gt;: You're sending your sensitive data descriptions to third-party cloud AI tools&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted to fix all three.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;LGPD Sentinel AI&lt;/strong&gt; automates the entire compliance audit pipeline:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Input: describe your data flows / upload documents
  → AI analysis (local, private)
  → Risk classification (high/medium/low)
  → DPIA report
  → DSR management
  → Compliance dashboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: FastAPI (Python)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: Streamlit&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI&lt;/strong&gt;: Ollama + llama3.1 (runs 100% locally — no API keys, no cloud)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DB&lt;/strong&gt;: SQLite (zero config) or Supabase (optional)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License&lt;/strong&gt;: Apache 2.0&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Key Features
&lt;/h2&gt;

&lt;h3&gt;
  
  
  📊 Data Mapping
&lt;/h3&gt;

&lt;p&gt;Automatically identifies and classifies personal data in your systems. The AI tags each field by LGPD category (sensitive, non-sensitive), legal basis, and data controller/processor relationship.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔍 DPIA (Data Protection Impact Assessment)
&lt;/h3&gt;

&lt;p&gt;Generates a full DPIA report with risk scoring. Each identified risk gets a mitigation recommendation — all driven by the local LLM.&lt;/p&gt;

&lt;h3&gt;
  
  
  📝 DSR Management
&lt;/h3&gt;

&lt;p&gt;Handles Data Subject Requests (access, deletion, correction, portability) with automated tracking and response templates.&lt;/p&gt;

&lt;h3&gt;
  
  
  🛡️ Risk Assessment
&lt;/h3&gt;

&lt;p&gt;Every audit produces a risk matrix: high / medium / low, with article-level LGPD references (e.g., "Art. 7 — legal basis missing").&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Local AI Matters for Compliance
&lt;/h2&gt;

&lt;p&gt;Here's the irony most people miss: &lt;strong&gt;using a cloud AI tool to analyze your LGPD compliance is itself an LGPD risk&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;When you paste your data flow descriptions into ChatGPT or Claude, you're potentially sending personal data or sensitive business information to a third-party processor without proper DPA (Data Processing Agreement) in place.&lt;/p&gt;

&lt;p&gt;LGPD Sentinel AI solves this by running the entire inference pipeline locally via Ollama. Your data never leaves your machine.&lt;/p&gt;




&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Clone the repo&lt;/span&gt;
git clone https://github.com/ldsjunior-ui/lgpd-sentinel-ai
&lt;span class="nb"&gt;cd &lt;/span&gt;lgpd-sentinel-ai

&lt;span class="c"&gt;# Install Ollama and pull the model&lt;/span&gt;
ollama pull llama3.1

&lt;span class="c"&gt;# Install dependencies&lt;/span&gt;
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt

&lt;span class="c"&gt;# Run&lt;/span&gt;
python &lt;span class="nt"&gt;-m&lt;/span&gt; uvicorn src.main:app &lt;span class="nt"&gt;--reload&lt;/span&gt; &lt;span class="nt"&gt;--port&lt;/span&gt; 8000
&lt;span class="c"&gt;# In another terminal:&lt;/span&gt;
streamlit run frontend/app.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. No paid API keys. No Docker required for basic usage. Works on any machine that can run Ollama.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] PDF/DOCX document ingestion for automated mapping&lt;/li&gt;
&lt;li&gt;[ ] Multi-user support with role-based access&lt;/li&gt;
&lt;li&gt;[ ] ANPD notification templates&lt;/li&gt;
&lt;li&gt;[ ] Portuguese + English UI&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Support the Project
&lt;/h2&gt;

&lt;p&gt;If this is useful to you, there are a few ways to help:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;⭐ &lt;strong&gt;Star the repo&lt;/strong&gt;: &lt;a href="https://github.com/ldsjunior-ui/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;https://github.com/ldsjunior-ui/lgpd-sentinel-ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;💬 &lt;strong&gt;Open issues / discussions&lt;/strong&gt; — feature requests, bug reports, use cases&lt;/li&gt;
&lt;li&gt;💙 &lt;strong&gt;GitHub Sponsors&lt;/strong&gt; — tiers from $5/month to support continued development&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is a solo open-source project built to make LGPD compliance accessible to every Brazilian company, not just those who can afford a DPO consultant.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built with FastAPI, Streamlit, Ollama, and a genuine frustration with expensive compliance tooling.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>security</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Como construí uma ferramenta open source de auditoria LGPD com IA local (sem enviar dados para a nuvem)</title>
      <dc:creator>LEONARDO DE SOUZA JUNIOR</dc:creator>
      <pubDate>Thu, 19 Mar 2026 02:02:51 +0000</pubDate>
      <link>https://dev.to/leonardo_desouzajunior_/como-construi-uma-ferramenta-open-source-de-auditoria-lgpd-com-ia-local-sem-enviar-dados-para-a-3fa9</link>
      <guid>https://dev.to/leonardo_desouzajunior_/como-construi-uma-ferramenta-open-source-de-auditoria-lgpd-com-ia-local-sem-enviar-dados-para-a-3fa9</guid>
      <description>&lt;h2&gt;
  
  
  O problema: conformidade LGPD é cara e expõe dados sensíveis
&lt;/h2&gt;

&lt;p&gt;A Lei Geral de Proteção de Dados (LGPD) entrou em vigor em 2020 e exige que empresas brasileiras mapeiem fluxos de dados pessoais, nomeiem um DPO, documentem atividades de tratamento e respondam a solicitações de titulares em até 15 dias.&lt;/p&gt;

&lt;p&gt;O problema? Consultorias cobram de R$ 25.000 a R$ 250.000 por projeto. E a ironia: para auditar dados pessoais, a maioria das ferramentas envia esses dados para servidores em nuvem — potencialmente violando o Art. 33 da própria LGPD (transferência internacional de dados).&lt;/p&gt;

&lt;p&gt;Decidi construir algo diferente: &lt;strong&gt;LGPD Sentinel AI&lt;/strong&gt;, uma ferramenta open source que roda inteiramente na sua máquina.&lt;/p&gt;

&lt;h2&gt;
  
  
  A arquitetura: local-first do início ao fim
&lt;/h2&gt;

&lt;p&gt;Nenhum dado sai da sua máquina. O modelo de linguagem roda via Ollama localmente. Stack: FastAPI + Streamlit + SQLite + Ollama/llama3.1.&lt;/p&gt;

&lt;h2&gt;
  
  
  Por que IA local e não GPT-4?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Compliance by design&lt;/strong&gt; — O Art. 33 da LGPD restringe transferências internacionais de dados. Enviar PII de clientes para a OpenAI para fazer auditoria LGPD é uma contradição legal explícita.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Custo zero de inferência&lt;/strong&gt; — llama3.1 8B roda em qualquer máquina com 8GB de RAM. Zero custo por token.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Reproducibilidade&lt;/strong&gt; — Auditorias precisam de resultados determinísticos. Modelos de produção na nuvem mudam sem aviso.&lt;/p&gt;

&lt;h2&gt;
  
  
  Como o scanner de PII funciona
&lt;/h2&gt;

&lt;p&gt;O scanner usa uma abordagem em camadas com padrões regex para CPF, CNPJ, e-mail, telefone, RG — seguidos de análise semântica via LLM para reduzir falsos positivos e gerar justificativa de risco em português.&lt;/p&gt;

&lt;h2&gt;
  
  
  O pipeline de auditoria completo
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ingestão&lt;/strong&gt; — Aceita código-fonte, dumps de banco, logs, documentos&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scan&lt;/strong&gt; — Detecta PII por padrão + contexto semântico via LLM&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Classificação&lt;/strong&gt; — Categoriza por base legal (Art. 7 LGPD): consentimento, legítimo interesse, obrigação legal&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mapeamento&lt;/strong&gt; — Gera o Registro de Operações de Tratamento (ROPA)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Relatório&lt;/strong&gt; — PDF/HTML com linguagem jurídica pronta para DPO&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Deploy e automação sem custo
&lt;/h2&gt;

&lt;p&gt;Toda a infraestrutura de growth roda no &lt;strong&gt;GitHub Actions&lt;/strong&gt; (gratuito para repos públicos):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Drip de e-mail&lt;/strong&gt; — Sequência de boas-vindas via Brevo (6 templates, 21 dias)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Star milestone&lt;/strong&gt; — Tweet automático a cada marco de estrelas&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Métricas semanais&lt;/strong&gt; — Relatório de stars/forks/subscribers toda segunda-feira&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Os e-mails são capturados via formulário nativo do Brevo — nenhuma chave de API exposta no código público.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resultados
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ferramenta funcional em 3 semanas de desenvolvimento solo&lt;/li&gt;
&lt;li&gt;Pipeline de email marketing 100% automatizado&lt;/li&gt;
&lt;li&gt;Custo de infraestrutura: R$0/mês&lt;/li&gt;
&lt;li&gt;100% open source (MIT License)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/ldsjunior-ui/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;https://github.com/ldsjunior-ui/lgpd-sentinel-ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Landing page&lt;/strong&gt;: &lt;a href="https://ldsjunior-ui.github.io/lgpd-sentinel-ai/" rel="noopener noreferrer"&gt;https://ldsjunior-ui.github.io/lgpd-sentinel-ai/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Construído com Python, FastAPI, Streamlit, Ollama/llama3.1, SQLite e GitHub Actions. Feedback bem-vindo!&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>security</category>
      <category>ai</category>
    </item>
    <item>
      <title>I built an open-source LGPD compliance tool with local AI — no data ever leaves your server</title>
      <dc:creator>LEONARDO DE SOUZA JUNIOR</dc:creator>
      <pubDate>Wed, 18 Mar 2026 13:46:29 +0000</pubDate>
      <link>https://dev.to/leonardo_desouzajunior_/i-built-an-open-source-lgpd-compliance-tool-with-local-ai-no-data-ever-leaves-your-server-cn7</link>
      <guid>https://dev.to/leonardo_desouzajunior_/i-built-an-open-source-lgpd-compliance-tool-with-local-ai-no-data-ever-leaves-your-server-cn7</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Brazil's LGPD (Lei Geral de Proteção de Dados) came into force in 2020 with fines up to &lt;strong&gt;R$50 million per violation&lt;/strong&gt;. Yet 90% of small and medium businesses (PMEs) still have no data mapping, no DPIA, and no DSR process in place.&lt;/p&gt;

&lt;p&gt;Why? Because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hiring a consultant costs &lt;strong&gt;R$20–80k&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;SaaS compliance platforms cost &lt;strong&gt;R$2–5k/month&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Most tools require uploading your sensitive data to external servers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I built an alternative.&lt;/p&gt;




&lt;h2&gt;
  
  
  Introducing LGPD Sentinel AI
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;LGPD Sentinel AI&lt;/strong&gt; is a fully open-source compliance audit tool that runs 100% locally using Ollama + llama3.1. Your data never leaves your server.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/ldsjunior-ui/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;https://github.com/ldsjunior-ui/lgpd-sentinel-ai&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;✅ &lt;strong&gt;Automatic data mapping&lt;/strong&gt; — scans your systems and catalogs personal data assets&lt;br&gt;&lt;br&gt;
✅ &lt;strong&gt;DPIA/RIPD generation&lt;/strong&gt; — creates Data Protection Impact Assessments with risk scores&lt;br&gt;&lt;br&gt;
✅ &lt;strong&gt;DSR automation&lt;/strong&gt; — handles Data Subject Requests (access, deletion, correction)&lt;br&gt;&lt;br&gt;
✅ &lt;strong&gt;100% local AI&lt;/strong&gt; — llama3.1 via Ollama, zero external API calls&lt;br&gt;&lt;br&gt;
✅ &lt;strong&gt;REST API + Streamlit UI&lt;/strong&gt; — integrate or use the visual dashboard&lt;br&gt;&lt;br&gt;
✅ &lt;strong&gt;29 automated tests&lt;/strong&gt; — coverage for core compliance flows&lt;br&gt;&lt;br&gt;
✅ &lt;strong&gt;Apache 2.0 license&lt;/strong&gt; — free for commercial use  &lt;/p&gt;




&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Backend&lt;/td&gt;
&lt;td&gt;FastAPI (Python)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frontend&lt;/td&gt;
&lt;td&gt;Streamlit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;SQLite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI Engine&lt;/td&gt;
&lt;td&gt;Ollama + llama3.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auth&lt;/td&gt;
&lt;td&gt;API key system with billing tiers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tests&lt;/td&gt;
&lt;td&gt;pytest (29 tests)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Run with Docker (recommended)&lt;/span&gt;
docker run &lt;span class="nt"&gt;-p&lt;/span&gt; 8000:8000 &lt;span class="nt"&gt;-p&lt;/span&gt; 8501:8501 lgpd-sentinel-ai

&lt;span class="c"&gt;# Generate your API key&lt;/span&gt;
curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST http://localhost:8000/billing/keys
&lt;span class="c"&gt;# Returns a 7-day Pro trial key automatically&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. You now have a fully operational LGPD compliance audit environment running locally.&lt;/p&gt;




&lt;h2&gt;
  
  
  Architecture Overview
&lt;/h2&gt;

&lt;p&gt;The system is built around three core modules:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Scanner&lt;/strong&gt; — connects to your databases/APIs and identifies personal data fields using llama3.1 classification&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assessor&lt;/strong&gt; — generates DPIA reports with risk scoring based on LGPD Article 38&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DSR Handler&lt;/strong&gt; — automates subject access requests with configurable workflows&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All AI inference runs through Ollama's local runtime, so processing happens entirely on your infrastructure.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why local AI matters for compliance
&lt;/h2&gt;

&lt;p&gt;When you use a cloud-based compliance tool, you're sending your users' personal data to a third party to analyze it. That itself can be a LGPD violation if not properly documented.&lt;/p&gt;

&lt;p&gt;With local AI, the model runs on your hardware. Nothing leaves. You can even run it air-gapped.&lt;/p&gt;




&lt;h2&gt;
  
  
  Free to get started
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free tier&lt;/strong&gt;: core audit features, 30 scans/month&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro trial&lt;/strong&gt;: 7 days free, no credit card — just &lt;code&gt;POST /billing/keys&lt;/code&gt; after install&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/ldsjunior-ui/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;https://github.com/ldsjunior-ui/lgpd-sentinel-ai&lt;/a&gt;&lt;br&gt;&lt;br&gt;
Product Hunt: &lt;a href="https://producthunt.com/posts/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;https://producthunt.com/posts/lgpd-sentinel-ai&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Stars, issues, and PRs are very welcome. This is v0.1 and there's a lot of ground to cover.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>privacy</category>
    </item>
    <item>
      <title>LGPD Sentinel AI — Automated LGPD Compliance Audits with Local AI (Free + 7-Day Pro Trial)</title>
      <dc:creator>LEONARDO DE SOUZA JUNIOR</dc:creator>
      <pubDate>Wed, 18 Mar 2026 00:30:48 +0000</pubDate>
      <link>https://dev.to/leonardo_desouzajunior_/lgpd-sentinel-ai-open-source-tool-for-automated-lgpd-compliance-audits-with-local-ai-2li2</link>
      <guid>https://dev.to/leonardo_desouzajunior_/lgpd-sentinel-ai-open-source-tool-for-automated-lgpd-compliance-audits-with-local-ai-2li2</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Brazil's LGPD (Lei Geral de Proteção de Dados) is the Brazilian equivalent of GDPR. ANPD can fine companies up to &lt;strong&gt;R$50 million per violation&lt;/strong&gt;. Hiring consultants for a compliance audit costs &lt;strong&gt;R$8,000–R$30,000&lt;/strong&gt;. Most SMEs simply don't do it.&lt;/p&gt;

&lt;p&gt;What if you could automate LGPD compliance audits locally — with no data leaving your server, using open source AI?&lt;/p&gt;

&lt;p&gt;That's &lt;strong&gt;LGPD Sentinel AI&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What It Does
&lt;/h2&gt;

&lt;p&gt;LGPD Sentinel AI is an open source tool that automates the three pillars of LGPD compliance:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;What it delivers&lt;/th&gt;
&lt;th&gt;LGPD Article&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Data Mapping&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Classifies personal/sensitive data, suggests legal basis, scores compliance 0–100&lt;/td&gt;
&lt;td&gt;Art. 5, 7, 11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DPIA / RIPD&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Full impact report with risks, mitigations, and PDF ready for ANPD&lt;/td&gt;
&lt;td&gt;Art. 38&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;DSR (Direitos do Titular)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Analyzes all 8 data subject rights, generates official response letters&lt;/td&gt;
&lt;td&gt;Art. 18&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Everything runs 100% locally via Ollama — zero data sent to external APIs.&lt;/p&gt;




&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Python 3.11 + FastAPI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI:&lt;/strong&gt; LangChain + Ollama (llama3.1:8b or Mistral)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; Streamlit dashboard (5 tabs)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DB:&lt;/strong&gt; SQLite (zero config)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PDF:&lt;/strong&gt; ReportLab&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payments:&lt;/strong&gt; Stripe (freemium)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy:&lt;/strong&gt; Docker Compose&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Getting Started (3 commands)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/ldsjunior-ui/lgpd-sentinel-ai
&lt;span class="nb"&gt;cd &lt;/span&gt;lgpd-sentinel-ai
docker compose up
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Frontend: &lt;a href="http://localhost:8501" rel="noopener noreferrer"&gt;http://localhost:8501&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;API Docs: &lt;a href="http://localhost:8000/docs" rel="noopener noreferrer"&gt;http://localhost:8000/docs&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  API Example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Generate API key (includes 7-day Pro trial, no credit card)&lt;/span&gt;
curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST http://localhost:8000/api/v1/billing/keys &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"email": "you@company.com"}'&lt;/span&gt;

&lt;span class="c"&gt;# Run a data mapping audit&lt;/span&gt;
curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST http://localhost:8000/api/v1/map-data &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key: lgpd_your_key"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"data": [{"key": "cpf", "value": "123.456.789-00"}, {"key": "email", "value": "user@example.com"}]}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Freemium Model
&lt;/h2&gt;

&lt;p&gt;Every new API key gets a &lt;strong&gt;7-day Pro trial&lt;/strong&gt; (unlimited usage, no credit card required).&lt;/p&gt;

&lt;p&gt;After trial:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free:&lt;/strong&gt; 5 mappings, 2 DPIAs, 10 DSRs/month&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro:&lt;/strong&gt; R$97/month — unlimited everything&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Current Status
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;✅ 29 passing tests&lt;/li&gt;
&lt;li&gt;✅ Docker Compose ready&lt;/li&gt;
&lt;li&gt;✅ Streamlit dashboard (5 tabs)&lt;/li&gt;
&lt;li&gt;✅ Freemium with Stripe integration&lt;/li&gt;
&lt;li&gt;✅ API key management + quota enforcement&lt;/li&gt;
&lt;li&gt;✅ PDF export (DPIA/RIPD)&lt;/li&gt;
&lt;li&gt;✅ Audit history with charts&lt;/li&gt;
&lt;li&gt;🚀 Launched on Product Hunt today!&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why Local AI?
&lt;/h2&gt;

&lt;p&gt;Privacy-by-design is a core LGPD principle. It would be ironic to send sensitive business data to an external API just to check for privacy violations. With Ollama, inference happens entirely on your hardware.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/ldsjunior-ui/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;https://github.com/ldsjunior-ui/lgpd-sentinel-ai&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Product Hunt:&lt;/strong&gt; &lt;a href="https://www.producthunt.com/posts/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;https://www.producthunt.com/posts/lgpd-sentinel-ai&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback and contributions very welcome! Happy to answer questions about LGPD specifics or the local AI architecture.&lt;/p&gt;

</description>
      <category>lgpd</category>
      <category>python</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
    <item>
      <title>LGPD Sentinel AI — Open source LGPD compliance automation with local AI (FastAPI + LangChain + Ollama)</title>
      <dc:creator>LEONARDO DE SOUZA JUNIOR</dc:creator>
      <pubDate>Tue, 17 Mar 2026 02:11:47 +0000</pubDate>
      <link>https://dev.to/leonardo_desouzajunior_/lgpd-sentinel-ai-open-source-lgpd-compliance-automation-with-local-ai-fastapi-langchain--bm8</link>
      <guid>https://dev.to/leonardo_desouzajunior_/lgpd-sentinel-ai-open-source-lgpd-compliance-automation-with-local-ai-fastapi-langchain--bm8</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Brazilian companies are being fined by ANPD (Brazil's data protection authority) for LGPD non-compliance. LGPD is Brazil's GDPR equivalent — and it requires mandatory personal data mapping plus DPIA (Data Protection Impact Assessment) reports.&lt;/p&gt;

&lt;p&gt;The existing tools cost &lt;strong&gt;US$500+/month&lt;/strong&gt; (Osano, OneTrust, TrustArc). SMEs and startups simply can't afford that.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;LGPD Sentinel AI&lt;/strong&gt; is a 100% open source tool (Apache 2.0) that automates LGPD compliance audits using &lt;strong&gt;local AI&lt;/strong&gt; via Ollama (Mistral, Llama3, Gemma).&lt;/p&gt;

&lt;p&gt;Zero data leaves your server. Everything runs on your own infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's already built (v0.1.0-alpha)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;FastAPI endpoints for automated personal data mapping&lt;/li&gt;
&lt;li&gt;DPIA/RIPD generation with AI (LangChain + Ollama)&lt;/li&gt;
&lt;li&gt;Automatic risk scoring by LGPD category&lt;/li&gt;
&lt;li&gt;Specialized PT-BR prompts&lt;/li&gt;
&lt;li&gt;Docker + docker-compose (up in 2 commands)&lt;/li&gt;
&lt;li&gt;GitHub Actions CI/CD with tests + Trivy security scan&lt;/li&gt;
&lt;li&gt;Support for Mistral 7B, Llama3, Gemma via Ollama&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech Stack (all open source, all free)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Backend&lt;/td&gt;
&lt;td&gt;Python 3.11 + FastAPI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI Inference&lt;/td&gt;
&lt;td&gt;LangChain + Ollama (100% local)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Models&lt;/td&gt;
&lt;td&gt;Mistral 7B, Llama3, Gemma&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Config&lt;/td&gt;
&lt;td&gt;pydantic-settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tests&lt;/td&gt;
&lt;td&gt;pytest with LLM mocks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CI/CD&lt;/td&gt;
&lt;td&gt;GitHub Actions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;License&lt;/td&gt;
&lt;td&gt;Apache 2.0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Quick Start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/ldsjunior-ui/lgpd-sentinel-ai
&lt;span class="nb"&gt;cd &lt;/span&gt;lgpd-sentinel-ai &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env
docker-compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Total Cost
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;$0.00&lt;/strong&gt; — self-hosted free forever.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why local AI?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Personal data NEVER leaves your server&lt;/li&gt;
&lt;li&gt;Zero cost per token (Mistral via Ollama)&lt;/li&gt;
&lt;li&gt;Lower latency&lt;/li&gt;
&lt;li&gt;Easier LGPD Article 46 compliance (data security measures)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/ldsjunior-ui/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;https://github.com/ldsjunior-ui/lgpd-sentinel-ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Product Hunt: &lt;a href="https://www.producthunt.com/posts/lgpd-sentinel-ai" rel="noopener noreferrer"&gt;https://www.producthunt.com/posts/lgpd-sentinel-ai&lt;/a&gt; (launching today!)&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Looking for: developers to contribute, DPOs willing to test, feedback on real LGPD use cases.&lt;/p&gt;

&lt;p&gt;PRs and issues are very welcome!&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>python</category>
      <category>privacy</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
