-
A water-meter counter ticks up the litres Malaysia loses while you read
-
Each state as a pipe: billed water in blue, lost water in red
-
Test your own meter: litres, cubic metres and ringgit lost a month
-
A leak report in Malay and English, ready to send with a photo
-
Checked against the regulator: open-data figures vs SPAN
Try it: https://bocor-one.vercel.app (works on your phone)
Inspiration
Malaysia's water regulator, SPAN, says 37.1% of the country's treated water is lost before it reaches a paying customer. In Perlis it is 61.6%, and in Kelantan, Pahang and Kedah it is around half. That is treated, chlorinated, pumped water. The losses, from old pipes, faulty meters and burst mains, cost the country over RM2 billion a year.
Almost nobody sees this number. Households see a bill, and the only leak they can do anything about, the one in their own home, stays invisible because nobody reads their meter with the taps off.
What it does
Bocor ("leak" in Malay) turns the official open data into something anyone can read in 30 seconds, then hands them one useful action.
- A live loss meter. The page opens on a water-meter counter, black wheels for cubic metres and red for litres like a real Malaysian meter, ticking up the litres Malaysia loses while you read: about 80,000 litres a second at the 2022 rate.
- Where it goes, state by state. Each state's 2022 production is drawn as a pipe split into billed water (blue) and lost water (red). Tap a state to see litres lost a day, Olympic-pool equivalents, the 2003–2022 trend and how many households have treated piped water at all.
- Test your own meter. Turn off every tap, enter two readings, and Bocor gives litres leaked a day, cubic metres a month and, with your own tariff, ringgit a month, plus what to check first. A built-in timer keeps your first reading on the phone if you close the page.
- Report a leak you can see. Bocor writes a clear report in Malay and English, ready to copy or share on WhatsApp with a photo to your state water operator.
SDG impact and relevance
- SDG 6.4, water-use efficiency: Bocor makes national losses visible and turns them into a household leak check.
- SDG 6.1, safe and affordable water: Bocor shows, by state, how many households still lack treated piped water. Only 70% of rural households in Sabah and Sarawak have it, and only 65.2% of urban households in Kelantan.
- SDG 11 and 12: Bocor gives communities a faster way to report public leaks, and households a way to stop wasting water they pay for.
Who it is for: Malaysian households, students and community groups who pay a water bill but have never seen these numbers.
How we built it
- Data: three official datasets from OpenDOSM / data.gov.my (water production, water consumption by sector, access to treated water), from SPAN and NRES under CC BY 4.0. A Python script pulls them through the data.gov.my OpenAPI and builds one JSON file.
- Method: lost water = production − billed consumption (domestic + non-domestic).
- App: Next.js 15, React 19 and TypeScript, statically generated and deployed on Vercel. No API keys, no tracking, works on a phone.
- Tests: 10 Vitest unit tests cover the data integrity (the state totals add up to the national row) and the meter maths (unit conversion, floating-point rounding, wrong-order readings).
We checked our numbers against the regulator
Our 2022 open-data calculation lands within two points of SPAN's published figures for five of these six; Sabah comes out 4.6 points lower:
| State | Bocor (2022 open data) | SPAN, reported |
|---|---|---|
| Malaysia | 36.8% | 37.1% (2025) |
| Perlis | 59.7% | 61.6% (mid-2025) |
| Kelantan | 53.8% | 55.1% (mid-2025) |
| Pahang | 50.3% | 51.2% (mid-2025) |
| Kedah | 51.3% | 50.0% (mid-2025) |
| Sabah | 55.0% | 59.6% (2025) |
Challenges
- The newest year with both production and consumption is 2022, while SPAN's headline figures are from 2025. Bocor labels every year rather than mixing them.
- The 2025 access data leaves out Sabah, Sarawak and the national row, so Bocor uses each state's most recent year and shows it.
- Water tariffs differ by state and usage band and changed in 2025, so Bocor asks for the rate on your own bill instead of guessing.
Honest limitations
- "Lost" includes meter error, unbilled use and theft, not only leaks.
- The meter test finds leaks after your own meter only.
- Bocor writes the leak report but does not send it; you send it through your operator's own channel.
What's next
- A full Bahasa Malaysia version of the interface.
- Each state operator's official reporting channel in the report screen.
- Monthly data once SPAN publishes it openly, and the same tool for other ASEAN countries with open water data.
Built With
- data.gov.my
- nextjs
- opendosm
- python
- react
- typescript
- vercel
- vitest