A portfolio project · still collecting 597 SPSE portals
Every tender in Indonesia, one question away.
1,785,304 government tenders since 2008, crawled from 597 portals into one table. Ask Nusa, a text-to-SQL analyst, in your own words: it answers with the figures, and every answer can be checked.
70,918 of 552,379 tenders from 2020 to 2026 have full details
Budget year 2025: 78.6% done (38,363 of 48,838). All 1,785,304 tenders since 2008 are listed; winners, bids and schedules fill in for 2020–2026, newest year first, one page a second.
687 tenders moved to their next stage in last night's crawl. Orange provinces are where they did; the more moved, the faster they pulse.
When tenders are announced, whole country
Tenders announced per week, from the official schedule
In 2025 the busiest week was 2 Jul – 8 Jul 2025 with 2,253 tenders; the quietest outside the turn of the year was 26 Mar – 1 Apr 2025 with 120.
Pick a province on the map
Its tenders per year, the owners that tender most and the integrity indicators it lights most often, with the tenders that moved stage there last night.
Moved stage last night
687 in allThe product in about two minutes, narrated
From public pages to one question.
One window that becomes each part of the product in turn: the map, the assistant and its report, integrity signals, company profiles and the nightly rebuild. Real figures. Sound on for the voice; pause or scrub any time.
Voice by ElevenLabs. Music generated for the film.
Why this exists
Public, but not usable.
Indonesia publishes every government tender. Answering a simple question with it, such as which kabupaten re-tenders most, still takes weeks of manual work.
597
portals, and no API.
Every LPSE runs its own SPSE site, behind session tokens.
2,752
ways to write an owner.
One column mixes kabupaten, kota, provinces and ministries.
“1.000 Jt”
is a label, not a number.
Estimates are published as text; some contracts carry extra zeros.
11,247
stage changes SPSE did not keep.
Its list shows today's stage and overwrites yesterday's. The nightly crawl here records each move to the next stage.
What it took
Three parts, each done properly.
The pipeline that gathers it, the analyst that answers from it, and the analysis that reads it. Each with the figure that holds it up.
Data engineering
597 portals, one table.
A resumable crawler within SPSE's robots.txt, dlt into DuckDB, dbt with tests for every model, and Dagster rebuilding and republishing every night.
AI engineering
Answers you can check.
Nusa writes one guarded SQL query per question, checks every number against its rows and shows the query. Scored by comparing results on questions it never saw.
Analysis
Leads, not accusations.
Integrity indicators mapped to the Open Contracting red flags and cross-checked against Cardinal, its own tool; company networks; and plans read before they are bought.
Workflow or agent? Measured.
The same 117 questions and the same model, answered three ways: a fixed workflow, an agent that picks its own tools, and the router the site runs, which sends complex questions to the agent and the rest to the workflow.
- Fixed workflow
- 98.8%9,530 tok · 2.7s
- Tool-using agent
- 98.8%10,429 tok · 3.0s
- Router (live)
- 99.1%26,429 tok · 3.7s
Try it
A question in, a checked answer out.
Text-to-SQL: the agent turns it into one SQL query, a guard checks it, DuckDB runs it on a read-only snapshot, and the answer cites the rows it came from. Under every answer, Check shows what was counted in plain words, the rows, the tenders behind it (each linked to SPSE) and the query to run yourself.
Ask it yourselfKutai Kartanegara (Kalimantan Timur) ran the most tenders in 2025: 821.
- Kutai Kartanegara821
- Muara Enim659
- Paser634
- Barito Utara588
- Berau571
Show the SQLHide the SQL
select region_name, n_tenders from marts.mart_procurement_region_yearly where region_level = 'kabupaten' and year = 2025 order by n_tenders desc limit 5
Built on the same data
More to explore.
The same warehouse, read other ways. Each page stands on its own; none is needed to follow the project.
- 2025 in reviewThe year in tenders, from the data
- This weekTenders that newly show indicators
- Company networkWho keeps bidding with whom
- Package splittingPurchases planned just under the limit
- Peluang UMKMSiRUP plans matched to a small business, before they are bought
- MCP serverThe data and the analyst as tools for AI assistants
How it fits together
Five layers, one direction.
Data flows one way: only the platform writes, the agent reads a published copy. Each step is documented with diagrams on the architecture page.
- IngestA resumable crawler reads every LPSE portal; dlt merges the rows into DuckDB.requests · dlt
- OrchestrateDagster schedules both crawls and rebuilds after each run.Dagster
- Modeldbt types the pages, resolves owners and keeps stage history.dbt · SQL
- ServeEach build becomes a read-only snapshot; readers never block a refresh.DuckDB
- AnswerA LangGraph agent writes one guarded query, checks its numbers and answers from its rows.LangGraph · FastAPI
55 dbt models and 149 tests, rebuilt every day. Read the architecture