Libur Nasional
Libur nasional dan cuti bersama Indonesia (2011 sampai tahun depan, di-cache), daftar, cek tanggal, libur berikutnya, hitung hari kerja (tanpa API key)
Tentang
Plugin Graphrt untuk hari libur Indonesia, yaitu libur nasional dan cuti bersama dari 2011 sampai tahun depan. Plugin ini menampilkan daftar libur, mengecek sebuah tanggal, mencari libur berikutnya dan menghitung hari kerja di antara dua tanggal. Tidak perlu akun atau API key, dan data setiap tahun diambil sekali lalu disimpan di memori. Setiap operasi adalah node workflow dan tool agent.
Yang bisa dilakukan
- 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)
Aksi
Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.
- 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
Pengaturan
Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.
-
LIBUR_NASIONAL_API_URLOpsionalBase URL of the holiday API (https only, default https://api-hari-libur.pages.dev) -
LIBUR_NASIONAL_CACHE_TTL_SECONDSOpsionalHow long a year's list is cached in memory (default 21600, 6 hours, 0 turns the cache off)
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari Libur Nasional.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
$ graphrt plugin install libur-nasional - 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