scvalex/budget-explorer
Explorer for the Romanian state budget
https://bugetuldestat.ro/
- Rust 79.2%
- HTML 14.5%
- Nix 3.8%
- Just 1.1%
- Fluent 0.8%
- Other 0.6%
Budget Explorer
Visualization for Romania's state budget
Live version
Development
Make sure you have nix installed and run nix develop to get a development shell with all the deps.
See the ./Justfile for common tasks.
When developing the webapp, you only really need to run just serve in a checkout of the repo. Everything gets built/rebuild as needed. You might need to hard reload (Ctrl-Shift-R) the browser after every incremental build, though.
The rough process for building everything is:
# Build the cli
$ just build
# Download the XMLs from the Ministry of Finance
$ just download
# Pre-process the data for the web UI (the files are committed, so you only
# need to do this if the code or source files have changed).
$ just process
# Translate the pre-processed data into English. This requires being in a
# `nix develop` shell beforehand.
$ just translate
# Generate the CSV file dumps
$ just dump-csv
# Run the dev web server
$ just serve
# Deploy everything
$ just deploy
Data (RO)
Budget data
- 2019: https://mfinante.gov.ro/buget-2019
- 2020: https://mfinante.gov.ro/domenii/bugetul-de-stat/buget-2020
- 2021: https://mfinante.gov.ro/buget-2021
- 2022: https://mfinante.gov.ro/buget-20222
- 2023: https://mfinante.gov.ro/buget-2023
- 2024: https://mfinante.gov.ro/buget-2024
- 2025: https://mfinante.gov.ro/ro/buget-2025