Wilayah Indonesia
Provinces, regencies/cities, districts and villages, parent lookups with full addresses and name search (no API key, cached dataset)
Stable v0.1.0 Node.js 6 actions
About
A Graphrt plugin for Indonesian administrative regions with their Kemendagri codes: 38 provinces → 514 regencies/cities → 7,285 districts (kecamatan) → 83,762 villages (desa and kelurahan). It lists the hierarchy, looks up a code with its parents and full address, and searches by name. No API key.
What it can do
- list_provinces, list_regencies (province_code), list_districts (regency_code), list_villages (district_code)
- get_region: name, level, type for villages, parents, address ("Pasteur, Sukajadi, Kota Bandung, Jawa Barat") and child_count
- search_regions: case- and accent-insensitive, every word of query must appear in the name, exact names first (also without "Kabupaten"/"Kota"), then prefixes, word prefixes and other matches, higher levels first on ties, filter by level and within_code, limit (default 20, max 100), returns {regions, total_matches}
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- List provinces
wilayah-indonesia.list_provinces - List regencies and cities
wilayah-indonesia.list_regencies - List districts
wilayah-indonesia.list_districts - List villages
wilayah-indonesia.list_villages - Get region
wilayah-indonesia.get_region - Search regions
wilayah-indonesia.search_regions
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
WILAYAH_INDONESIA_DATA_REFOptionalCommit SHA, tag or branch of cahyadsn/wilayah (default: the pinned commit above) -
WILAYAH_INDONESIA_DATA_SHA256OptionalExpected SHA-256 (64 hex) of wilayah.sql for the chosen ref, overrides the built-in hash of the pinned commit -
WILAYAH_INDONESIA_CACHE_DIROptionalAbsolute directory for a disk copy of the dataset, so new processes skip the download -
WILAYAH_INDONESIA_CACHE_TTL_HOURSOptionalRefresh a branch/tag copy after this many hours (default 24), a commit SHA never expires
How to use it
In Graphrt Desktop
- Open Plugins and search for Wilayah Indonesia.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install wilayah-indonesia workflow.yaml
- id: place
type: wilayah-indonesia.search_regions
query: sukajadi
level: district
within_code: "32"
- id: detail
type: wilayah-indonesia.get_region
code: "{{#place.data.regions.0.code#}}"