Summary
A demonstration analytics product for exploring revenue, targets, time-based changes, and revenue composition through an executive interface.
Project case study
A demonstration web analytics product for exploring synthetic revenue, targets, time-based changes, and revenue composition through an executive interface.

A demonstration analytics product for exploring revenue, targets, time-based changes, and revenue composition through an executive interface.
Fiscal datasets can be extensive and fragmented, making it difficult to identify trends, deviations, and relevant revenue sources.
Indicator structuring, analytical scenario modeling, visualization development, and executive narrative design.
The data is entirely synthetic and reproducible. A deterministic TypeScript generator creates monthly records with seasonality, trend, and controlled anomalies; the current source has no database, CSV ingestion, official API, or personal information.
An independent demonstration project with no institutional affiliation, developed to show how revenue indicators can support fiscal analysis and decision-making.
The project was inspired by knowledge gained from professional public-data analysis workflows without using internal systems, confidential data, or institutional materials.
The flow separates data generation, access contract, calculations, APIs, and visualization to keep rules reproducible and allow a future real source without rewriting the interface.
Calendar, tax, seasonality, and seeded-noise inputs produce 600 TypeScript records identified as simulated-model-v1.
Domain types and RevenueDataProvider accept filters and return records and aggregates; the current implementation is exclusively an in-memory mock.
Pure functions calculate totals, gap, attainment, changes, shares, accumulated values, forecast, score, and explainable insights.
Next.js APIs apply Zod-validated filters and return JSON in a consistent envelope.
Server Components load the dataset, while client islands implement filters, the simulator, and Recharts visualizations in the responsive interface.
The definitions below map to the application's TypeScript functions and methodology. Every result is calculated from synthetic data.
| Definition | Unit | Calculation rule | Use | Limitation |
|---|---|---|---|---|
| Estimated revenueSum of the reference values in the selected slice. | BRL | Sum of estimatedAmount. | Establish the comparison base for targets and projections. | The estimate is generated by the synthetic model, not by an actual budget law. |
| Collected revenueSum of the values simulated as collected in the selected slice. | BRL | Sum of collectedAmount. | Compare performance, composition, and time-based development. | The values do not represent official revenue or a real fiscal outcome. |
| Financial gapDifference between collected and estimated revenue. | BRL | Collected revenue − estimated revenue. | Identify positive or negative deviations from the reference. | The sign depends on two synthetic measures and does not express real budget impact. |
| Target attainmentPercentage collected relative to the estimated amount. | % | Collected revenue ÷ estimated revenue × 100. | Monitor adherence to the target in the filtered period. | It returns zero when the estimated base is zero and uses demonstration targets only. |
| Monthly changePercentage change in collected revenue between consecutive months. | % | (Current month − previous month) ÷ previous month × 100. | Observe acceleration, decline, and short-term seasonality. | The first point has no prior comparison and receives a zero change value. |
| Annual changePercentage change in aggregate collected revenue between consecutive years. | % | (Current year − previous year) ÷ previous year × 100. | Compare the growth trend across the five-year horizon. | The series includes the artificial trend defined by the generator. |
| Tax shareEach tax's share of total collected revenue in the selected slice. | % | Tax revenue ÷ total collected revenue × 100. | Analyze concentration and dependency in the simulated fiscal composition. | The weight of each tax was defined for the demonstration scenario. |
| Annual forecastClosing estimate based on the collection pace through the cutoff month. | BRL and % | Observed monthly average × 12, compared with the annual target. | Signal healthy, attention, or risk closing scenarios. | Heuristic forecast with a default cutoff at month 9 and no statistical model. |
| Revenue Health ScoreComposite score summarizing the health of the demonstration revenue slice. | 0 to 100 | Combines attainment, trend, concentration, below-target months, and anomalies with fixed weights. | Provide a consolidated executive reading of the selected slice. | Weights and bands are heuristic and were not calibrated with real fiscal data. |
Sum of the reference values in the selected slice.
Sum of the values simulated as collected in the selected slice.
Difference between collected and estimated revenue.
Percentage collected relative to the estimated amount.
Percentage change in collected revenue between consecutive months.
Percentage change in aggregate collected revenue between consecutive years.
Each tax's share of total collected revenue in the selected slice.
Closing estimate based on the collection pace through the cutoff month.
Composite score summarizing the health of the demonstration revenue slice.
The application, endpoints, methodology, and local references are presented according to their actual access level.
Public application
Public landing page with a demonstration-project statement, synthetic KPIs, and access to the dashboard.
Open evidencePublic application
Public interface with filters, KPIs, score, forecast, charts, table, insights, and CSV export.
Open evidencePublic endpoint
Public endpoint with synthetic records, totals, ranking, categories, score, and forecast for the 2026 slice.
Open evidencePublic endpoint
Public endpoint with projected closing, gap, attainment, annual target, and scenario status.
Open evidencePublic documentation
Public page documenting fictional data, formulas, score, insights, and simulation.
Open evidenceCode reference
Deterministic series from 2022 through 2026 with ten taxes, seasonality, and controlled anomalies.
Code referencesrc/data/mock-revenue.ts · src/data/dictionary.ts
Code reference
Pure functions for totals, changes, shares, accumulation, forecast, and Revenue Health Score.
Code referencesrc/lib/calculations.ts · src/lib/forecast.ts
Private source code
The source code is private; the published application and its APIs are the verifiable evidence.
Indicators calculated for the default 2026 slice from 120 synthetic records. They do not represent official revenue, a real fiscal outcome, or institutional performance.
Values reproduced by the published application and the /api/revenue?year=2026 and /api/forecast?year=2026 endpoints.
The images are product concepts and visual mockups. They do not represent a government platform or reproduce the values currently calculated by the published application.

Next project
Workspace controlled by hand gestures on the camera, with an adaptive frame pipeline and a custom gesture engine.
View full case