Graphrt

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
Use in Graphrt Desktop

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_REF Optional
    Commit SHA, tag or branch of cahyadsn/wilayah (default: the pinned commit above)
  • WILAYAH_INDONESIA_DATA_SHA256 Optional
    Expected SHA-256 (64 hex) of wilayah.sql for the chosen ref, overrides the built-in hash of the pinned commit
  • WILAYAH_INDONESIA_CACHE_DIR Optional
    Absolute directory for a disk copy of the dataset, so new processes skip the download
  • WILAYAH_INDONESIA_CACHE_TTL_HOURS Optional
    Refresh a branch/tag copy after this many hours (default 24), a commit SHA never expires

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Wilayah Indonesia.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

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#}}"
Plugins in the docs