-
Overdrawn reads a city's water like a bank statement and shows the date it runs out.
-
How it works: pick a city, look up rainfall with fallbacks, run the water ledger model, then act on the result.
-
Search any city, or open one of six benchmark cities. Tehran's modelled Day Zero is 16 Nov 2027.
-
The city's water account as a balance chart, with rain as income and demand as spending.
-
I replay the real cuts to check the model against history. The dams bottomed out at 18.1%.
-
Change pumping, demand cuts and losses, and watch the Day Zero date move.
-
When the taps go off, one person gets 25 litres a day. This shows what that has to cover.
-
Typed questions are answered from the active city's own model figures.
-
A topic guard refuses questions that aren't about water instead of inventing an answer.
-
Live rainfall from Open-Meteo with NASA POWER as the fallback. Every input is tagged Sourced,Model estimate or Yours, and groundwater is 70%
Inspiration
In January 2026 the UN said much of the world has entered "water bankruptcy". People are taking more water out of rivers, reservoirs and aquifers than rain puts back, and some of that damage can't be reversed. I kept reading that and thinking the idea was too abstract to act on. A bank statement, though, is something everyone understands. So I decided to build the water version: rain is income, demand is spending, and an aquifer is a savings account you can overdraw.
I live in Dhaka, where roughly 70% of the city's supply is pumped from groundwater. That made this feel close to home, and it's why Dhaka is one of the six cities in the app.
What it does
Overdrawn turns a city's water into an account statement and shows the date the balance hits zero, the Day Zero date.
- Benchmark cities: Tehran, Cape Town, Mexico City, Bengaluru, São Paulo and Dhaka each have their own water balance model, run month by month under dry, middle and wet rain futures.
- Any other city: search for it and the app looks up 10 years of rainfall from Open-Meteo, falling back to NASA POWER if that fails. Every input is tagged Sourced, Model estimate or Yours, so you can see what is real data and what is a guess.
- Policy restructuring: change pumping, demand cuts and losses and watch the balance and the Day Zero date move.
- 25 L Day Zero allocator: if the taps go off, the allocator shows what one person's 25 litres a day (what one jerrycan holds) has to cover, and why a two-minute shower doesn't fit.
- Policy Advisor: writes a short brief and a ranked list of priorities for the active city from its own numbers. You can also type your own question. A topic guard checks it is about water and gives a clear message if it isn't, in English, Bangla, Spanish and French.
- Daily ticker: scrolls today's forecast for each city next to key model figures, with a UN Water Conference countdown and a pause/play button.
- SDG 6: the whole project is about clean water and sustainable management of water resources.
These are scenario models, not forecasts. Tehran's Day Zero of 16 Nov 2027 is what the model gives if nothing changes and the drought deepens, and the page says that.
How I built it
I built Overdrawn as one index.html file with HTML5, CSS3 and vanilla JavaScript. Tailwind, Chart.js and Lucide load from CDNs for styling, charts and icons. There is no backend, no login and no API key anywhere.
- The model: each city has inputs for reservoir storage, demand, aquifer draw, inflow and losses. The simulation steps month by month and finds the date storage runs out.
- Rainfall lookup: Open-Meteo Geocoding finds the place, then the Open-Meteo Archive API returns the rainfall. If it fails, the app tries NASA POWER daily data, then NASA climatology, then a clearly labelled model estimate.
- Advisor: it runs on fixed rules over the same model, so it works offline. The topic guard scores keywords in all four languages.
- Ticker: one multi-city Open-Meteo forecast request a day, cached. If it fails, the ticker falls back to model notes only.
- Languages and layout: English, Bangla, Spanish and French, tested from 320 px to 1440 px wide.
Challenges we ran into
- Being honest with the numbers. A Day Zero date looks very certain, so I tagged every input with its source and kept the wording to "model projection" rather than "prediction".
- Free data that fails. Public APIs rate-limit, time out or block requests. I built the fallback chain and tested each failure on its own, because a live demo shouldn't depend on one API being up.
- Questions that aren't about water. I needed typed questions to work without inventing answers, so the guard refuses off-topic questions and every real answer comes from the city's own figures.
- Four languages on small screens. Every string needed all four translations, and the layout, including the collapsible sidebar and the ticker, had to hold at 320 px.
Accomplishments that we're proud of
- The whole app is one file that opens anywhere with no setup.
- The Cape Town 2018 replay, Tehran's Day Zero and Dhaka's 70% groundwater reproduce from sourced inputs.
- Search keeps working when a data source is down, and says which source it used.
- Bangla, Spanish and French are full versions, not just English with a translation bolted on.
- Anyone—from students and journalists to local planners—can test real policy trade-offs (like demand cuts vs. groundwater over-pumping) and see how many days they actually buy before Day Zero.
- It turns abstract UN SDG 6 numbers into a practical crisis-planning tool, including a 25-litre daily jerrycan rationing planner for emergency shortages.
What we learned
- Describing water as a balance sheet makes the problem easier to talk about, because debt, overdraft and restructuring are words people already know.
- Showing uncertainty builds more trust than a precise-looking date.
- When an app depends on free public APIs, the fallback paths matter as much as the happy path.
What's next for Overdrawn
Overdrawn is a scenario tool, and I know where it is still rough. This is what I want to build next, and how I plan to fix its limits.
New features
- Aquifer Debt Repayment mode. Show how many wet years or managed recharge cycles it takes to pay back past groundwater overdraft, not just push Day Zero later on paper.
- Household vs. City toggle. Translate city-level deficit numbers into what they mean for a single household or ward.
- Sharing and audits. Let people share a plan as a link, compare two cities side by side, and export a clean visual water audit snapshot.
- More historical crisis replays. Go beyond Cape Town 2018, with monsoon shortfalls and rapid urban groundwater drops in South Asian cities.
- More languages and a lighter mode for slow connections.
Making the numbers stronger
- Real records. Check more cities against reservoir and groundwater records, starting with Dhaka, and add utility reports and well-level records where they exist. I will show how far the model is from the record.
- Dhaka calibration. Its groundwater share is sourced, but its balance is not replayed against history the way Cape Town's is. I plan to calibrate it against DWASA reporting.
- Better searched cities. Cities found through search use rough estimates, tagged Model estimate. I want people to enter their own utility figures and save them, so an account improves the more it is used.
- Ranges, not single dates. Show a best case, a worst case and the spread for each city's Day Zero, since the date moves with the assumptions.
- Older data, clearly marked. Cache the last good rainfall for each city, and show when the app is using older data because a source failed.
Making it more reliable
- A better question guard. It matches keywords today, so an unusual wording can be read as off-topic. I will build a larger set of real water questions in all four languages, test the guard against it, and add the phrasings it misses.
- A better ticker. It shows today's forecast and model notes, not news, because no free, dependable water-news feed exists. If one appears, I will add it as a labelled source.
- More cities. Add cities facing real water stress once their inputs can be sourced.
Built With
- chart.js
- css3
- google-fonts
- html5
- i18n
- javascript
- localstorage
- lucide
- nasa-power
- open-meteo
- open-meteo-geocoding
- responsive-design
- svg
- tailwind-css
- web-apis