Libur Nasional
Indonesian public holidays and cuti bersama (2011 to next year, cached), list, check a date, next holidays, working-day counts (no API key)
Stable v0.1.0 Node.js 5 actions
About
A Graphrt plugin for Indonesian public holidays: national holidays (libur nasional) and collective leave (cuti bersama) from 2011 to next year. It lists holidays, checks a date, finds the next holidays and counts working days between two dates. No account or API key is needed, and each year is fetched once and cached in memory. Every operation is a workflow node and an agent tool.
What it can do
- list_holidays: the holidays of a year (default: the current year in Asia/Jakarta), optionally one month and one kind (libur_nasional or cuti_bersama). Items: date, name, is_national_holiday, kind.
- check_date: whether a date (default: today in Asia/Jakarta) is a national holiday, cuti bersama, a weekend or a working day, with the day name in English and Indonesian (hari) and the holiday names.
- next_holidays: the next count holidays from a date (default today), across the year boundary, with days_away, include_cuti_bersama: false for national holidays only. When next year is not published yet (or its list is empty or invalid), coverage_note says so instead of failing.
- count_working_days: Monday to Friday between two dates (both included), minus national holidays and, by default, cuti bersama (cuti_bersama_is_day_off: false counts them as working days, civil servants take them, private employers often do). Returns calendar, weekend and working days plus the weekday days off. At most 3 calendar years per call.
- api_request: the source's other endpoints, e.g. /api/today, /api/tomorrow or /api?year=2026&month=3&day=21 (GET only for agents)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- List holidays
libur-nasional.list_holidays - Check a date
libur-nasional.check_date - Upcoming holidays
libur-nasional.next_holidays - Count working days
libur-nasional.count_working_days - API Hari Libur request
libur-nasional.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
LIBUR_NASIONAL_API_URLOptionalBase URL of the holiday API (https only, default https://api-hari-libur.pages.dev) -
LIBUR_NASIONAL_CACHE_TTL_SECONDSOptionalHow long a year's list is cached in memory (default 21600, 6 hours, 0 turns the cache off)
How to use it
In Graphrt Desktop
- Open Plugins and search for Libur Nasional.
- 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 libur-nasional workflow.yaml
- id: lebaran
type: libur-nasional.list_holidays
year: 2026
month: 3
- id: deadline_ok
type: libur-nasional.check_date
date: "{{#start.deadline#}}"
- id: sla
type: libur-nasional.count_working_days
start_date: "{{#start.opened_on#}}"
end_date: "{{#start.closed_on#}}"
cuti_bersama_is_day_off: false