System
Technical Architecture
Cidadão.AI is built with a modern, scalable architecture designed to handle millions of requests while maintaining security and performance.
Backend
- FastAPI (Python)
- PostgreSQL Database
- Redis Cache
- JWT Authentication
- RESTful API
Frontend
- Next.js 15
- React 18
- TypeScript
- Tailwind CSS
- PWA Support
AI Agents System
Our multi-agent system consists of 17 specialized AIs, each with specific responsibilities in the transparency ecosystem:
Core Agents
Zumbi, Anita, and Tiradentes lead anomaly detection, analysis, and reporting.
Support Agents
14 specialized agents handle specific domains like health, education, and infrastructure.
Coordination
Agents communicate through an event-driven architecture for real-time collaboration.
Data Sources
We integrate with multiple government transparency portals and APIs:
- Federal Transparency Portal
- States' transparency systems
- Municipal open data
- Federal Revenue Service data
- Electoral Court information
- Public bidding platforms
Security & Privacy
Data Protection
All data is encrypted in transit and at rest. We follow LGPD guidelines strictly.
Authentication
JWT-based authentication with refresh tokens and secure session management.
Monitoring
24/7 monitoring with Prometheus, Grafana, and automated alerting systems.
Performance & Scalability
< 200ms
Average response time
99.9%
Uptime SLA
10k+
Concurrent users
API Access
Our RESTful API is publicly available for developers and researchers:
# Get system health
GET https://cidadao-api-production.up.railway.app/health
# Access API documentation
GET https://cidadao-api-production.up.railway.app/docs
Open Source
All our code is open source under the MIT license. Explore our repositories: