DEV Community

Muhammad Syarwani
Muhammad Syarwani

Posted on

๐ŸŒ Nusantara-API ๐Ÿ‡ฎ๐Ÿ‡ฉ โ€” from MySQL dump to a tiny 420 KB library

A while ago, I was looking for Indonesian regional data for one of my projects.

Most of the datasets I found came as large MySQL dumps, which required importing into a database just to access provinces or districts.

Then I found the file wilayah.sql from cahyadsn/wilayah.

It contains complete administrative data โ€” provinces, cities, districts, and villages across Indonesia.

I tried to process it so developers could use it directly โ€” no database setup, no SQL import.

After cleaning and compressing it with Brotli, the raw data size went from ~2.5 MB down to only ~420 KB.

The result is Nusantara-API ๐Ÿš€

A small library for accessing Indonesian regional data โ€” usable in Node.js, frontend, or directly via CDN.


๐Ÿ”— Links


Sometimes small experiments end up becoming something useful for others.

This project started as a simple curiosity โ€” and turned into a compact, shareable dataset for developers who just need quick access to Indonesian regions.

If you find it helpful or have ideas for improvement, feel free to open an issue or contribute on GitHub ๐Ÿ™Œ

Top comments (0)