Full-stack at the Observatory · in production since 2025
Observatory platform
The site where business owners and managers explore the Observatory's data. Dashboards on Acre's jobs, wages, exports and companies, reports and AI summaries, without downloading a spreadsheet. I'm the lead developer, working with the Observatory team.
- Role
- Lead developer
- Stack
- Next.js, React, TypeScript, PostgreSQL, Drizzle ORM, Azure Data Explorer, Microsoft Entra ID, Vercel AI SDK, Vitest, Playwright.


Context
The platform has a public portal, a signed-in area with dashboards, reports and presentations, and an admin panel. Every dashboard number comes from the lake, queried live in Azure Data Explorer1. There are dashboards for formal employment, hiring, foreign trade, companies, workplace accidents and municipal finances, among others.
1 Microsoft's database built to query a lot of data fast. It's where the ready-to-use data lives.Decisions
- Copying the lake into the app database would double the cost and leave stale numbers on screen.
- Queries go in KQL2 straight to Azure Data Explorer, with filters applied there. The app only receives the result.2 Azure Data Explorer's query language. It looks like SQL, but it was made for large volumes.
- Not every user can see everything, and some access has an end date.
- Microsoft Entra ID3 sign-in and permissions by user or group, resource and action, with validity windows and an audit trail4.3 Microsoft's work sign-in: people log in with the same account they use at work.4 The record of who accessed or changed what, and when.
- Using AI on the data without the bill getting out of hand.
- Vercel AI SDK with Anthropic, OpenAI and Google behind a usage cap.
- With dozens of modules, one change breaks another and nobody notices.
- Tests in Vitest and Playwright, and CI/CD5 on GitHub Actions and Azure DevOps with separate dev, staging6 and production.5 Automatic tests and deployment on every code change, before it reaches the people using it.6 A copy of the system where a change gets checked before it goes live.
Results
- Live at observatorio.fieac.org.br.
- Beyond dashboards: a newsletter, a news CMS, presentations shared by signed link and a request hub.