Skip to content

Latest commit

 

History

History
 
 

README.md

🔍 Intelink Cortex

Status: Active Development | Demo Mode Available Role: Open-Source Public Data Intelligence Platform Stack: Next.js 15, Supabase, Tailwind, Shadcn/UI Origin: Police Intelligence System (DHPP) → Generalized Cortex Engine

🌐 Overview

Intelink is the intelligence engine of the EGOS ecosystem — an open-source platform that cross-references 79 Brazilian public databases to detect anomalies in government spending, corporate relationships, and electoral financing.

Originally built as a Police Intelligence System for DHPP (Homicide Department), it is now being generalized as Intelink Cortex — a platform that any citizen, journalist, or auditor can use to investigate public data.

🚀 Demo Mode

Try Intelink with synthetic data — no database or credentials required:

cd apps/intelink
bun dev
# Navigate to /demo

The demo showcases:

  • 📊 Overview — Case summary, entity cards, anomaly highlights
  • 🕸️ Interactive Graph — SVG relationship visualization with entity inspection
  • 🚨 Anomaly Cards — Severity scores, financial exposure, involved entities
  • 📅 Timeline — Chronological events from multiple public sources
  • 📎 Evidence Panel — Documents with source attribution and confidence scores

All demo data is completely synthetic and fictional.

🗄️ The 79 Public Data Sources

Intelink integrates with Brazilian government open data, organized by priority:

Tier Category Sources Priority
T1 Corporate & Transparency CNPJ/QSA, Portal da Transparência, TSE, ComprasNet, CEIS/CGU, DOU 🔴 Core
T2 Labor, Health & Sanctions RAIS, CAGED, DATASUS, CNEP, CEPIM, CEAF 🟡 High
T3 Financial & Markets CVM, BCB (Selic, Câmbio, PIX, Crédito), B3, PREVIC 🟢 Medium
T4 Environment & Infra IBAMA, INPE, ANEEL, ANP, DENATRAN, DNIT 🔵 Expand

🏗️ Architecture

apps/intelink/
├── app/           # Next.js App Router
│   ├── demo/      # 🆕 Demo Mode (synthetic data showcase)
│   ├── central/   # Investigation Central
│   ├── graph/     # Graph Explorer
│   └── ...
├── components/    # 23+ specialized UI components
├── lib/
│   ├── demo-data.ts    # 🆕 Synthetic data engine
│   ├── etl/            # 🆕 ETL normalizers & Base dos Dados client
│   └── detectors/      # 🆕 Anomaly detectors (ghost-employees, etc.)
└── ...

🛣️ Open Roadmap

Phase 1 — Foundation ✅

  • ETL skeleton (normalizer, Base dos Dados client)
  • Ghost Employees detector
  • Anomaly Exposure Widget
  • Demo mode with synthetic data

Phase 2 — Core Intelligence (In Progress)

  • TSE cross-reference engine (donations ↔ contracts)
  • Patrimônio Incompatível detector
  • Real-time DOU monitoring
  • Graph database integration (Neo4j adapter)

Phase 3 — Community Platform

  • Public investigation sharing
  • Collaborative entity resolution
  • API for third-party integrations
  • Export to PDF/Excel reports

Phase 4 — Advanced Analytics

  • ML-powered anomaly scoring
  • Network centrality analysis
  • Temporal pattern detection
  • Predictive risk modeling

🔐 Security

  • RLS Enabled: All tables protected by Row Level Security
  • RBAC: Strict role checks (admin, police, analyst, public)
  • Audit Logs: All actions recorded in telemetry_events
  • Data Privacy: LGPD-compliant, CPFs masked in demo mode

🤝 Contributing

Intelink is open for contributors and compatible with the broader EGOS orchestration direction. Key areas where help is needed:

  1. ETL Normalizers — Build adapters for the 79 public data sources
  2. Anomaly Detectors — Create new detection algorithms
  3. UI Components — Improve graph visualization and dashboards
  4. Documentation — Help document APIs and data schemas
# Clone and start
git clone https://github.com/enioxt/egos-lab.git
cd egos-lab/apps/intelink
bun install && bun dev

If you want to configure Intelink or adapt the investigation UX for another context, we can help you do that safely with synthetic/demo-first setup.


Part of the EGOS Lab Open-Source Ecosystem.


🍄 Mycelium Network

Auto-generated by scripts/mycelium/readme-linker.ts. Do not edit manually. The Mycelium connects every subsystem in EGOS like fungal networks connect forests.

  • Apps Hub — Runnable applications — Mission Control, Intelink, Eagle Eye, Telegram bot
  • EGOS Lab (Root) — Monorepo root — orchestration hub, 29 agents, 10 apps, shared packages
  • Shared Packages — Shared LLM provider, AI client, Mycelium event bus, Sacred Math, social APIs