joaompfp/prumo
Socio-economic data platform -with AI assistance layer: indicators, comparisons, data explorer, embeddable charts (FastAPI + DuckDB + ECharts) and LLM integration for content generation according to different biases.
What's novel
Socio-economic data platform -with AI assistance layer: indicators, comparisons, data explorer, embeddable charts (FastAPI + DuckDB + ECharts) and LLM integration for content generation according to different biases.
Code Analysis
12 files read · 3 roundsA FastAPI + DuckDB economic indicators dashboard for Portugal that aggregates data from 9 official statistical sources (INE, Eurostat, FRED, OECD, Banco de Portugal, REN, E-REDES, DGEG, World Bank), serves 11 interactive sections with KPI cards, multi-country comparisons, and AI-powered analysis wit
Strengths
Genuinely deep domain logic — the YoY computation handles mixed annual/monthly periods with multiple fallback strategies, the composite indicator system blends Eurostat and WorldBank data intelligently, and the citizen-facing explanations (EXPLAIN dict) plus contextual annotations show real economic domain expertise. The AI analysis pipeline includes thoughtful security measures (prompt injection defense, URL validation to drop hallucinated links, sports URL filtering) that go well beyond typica
Weaknesses
The codebase shows signs of iterative development with version comments (V5, V8, V9, B5 FIX) scattered throughout, and some services like painel.py (32KB) are becoming monolithic. The test suite exists (20 files) but the core complex logic — YoY edge cases, composite blending, prompt injection defense — likely has limited test coverage given the project's focus on the dashboard itself.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
80
Contributors
1
Files
226
Active weeks
3
Repository
Language
Python
Stars
1
Forks
0
License
—