{"id":17442802,"url":"https://github.com/ariya/dekontaminasi","last_synced_at":"2025-04-30T06:28:45.528Z","repository":{"id":45704550,"uuid":"265158194","full_name":"ariya/dekontaminasi","owner":"ariya","description":"DIY static API server for COVID-19 data in Indonesia","archived":false,"fork":false,"pushed_at":"2022-11-24T03:05:40.000Z","size":47,"stargazers_count":65,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T13:34:15.182Z","etag":null,"topics":["api","covid-19","covid19","indonesia","kabarvirus","static-site"],"latest_commit_sha":null,"homepage":"https://dekontaminasi.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ariya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"ariya"}},"created_at":"2020-05-19T05:55:08.000Z","updated_at":"2023-10-09T11:09:08.000Z","dependencies_parsed_at":"2023-01-22T16:45:10.010Z","dependency_job_id":null,"html_url":"https://github.com/ariya/dekontaminasi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariya%2Fdekontaminasi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariya%2Fdekontaminasi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariya%2Fdekontaminasi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariya%2Fdekontaminasi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariya","download_url":"https://codeload.github.com/ariya/dekontaminasi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251653612,"owners_count":21622163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","covid-19","covid19","indonesia","kabarvirus","static-site"],"created_at":"2024-10-17T16:33:37.708Z","updated_at":"2025-04-30T06:28:45.498Z","avatar_url":"https://github.com/ariya.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ariya"],"categories":[],"sub_categories":[],"readme":"# Dekontaminasi\n\n[![GitHub license](https://img.shields.io/github/license/ariya/dekontaminasi)](https://github.com/ariya/dekontaminasi/blob/master/LICENSE)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/ariya/dekontaminasi)\n[![Tests](https://github.com/ariya/dekontaminasi/workflows/Tests/badge.svg)](https://github.com/ariya/dekontaminasi/actions)\n[![Uptime Robot ratio (30 days)](https://img.shields.io/uptimerobot/ratio/m785218019-04a8aacc981ef2b572e68f53)](https://dekontaminasi.com)\n\n\n[Bahasa Indonesia](#indonesian) | [English](#english)\n\n---\n\n### \u003ca name=\"indonesian\"\u003e\u003c/a\u003eBahasa Indonesia\n\nRepositori ini menyimpan perkakas yang digunakan untuk membuat [dekontaminasi.com](https://dekontaminasi.com), sebuah layanan API untuk data perkembangan COVID-19 di Indonesia.\n\nSaat ini, Dekontaminasi digunakan sebagai sumber data bagi situs seperti [KawalCovid19.id](https://kawalcovid19.id/) dan [KabarVirus](https://kabarvirus.com). Dengan mengubah isi repositori sesuai kebutuhan, Anda pun bisa menjalankan layanan API Anda sendiri untuk menyebarluaskan informasi COVID-19!\n\nBeberapa ragam data yang tersedia (dalam format JSON):\n\n* [Rangkuman penyebaran total dan tiap provinsi](https://dekontaminasi.com/api/id/covid19/stats)\n* [Daftar rumah sakit rujukan resmi](https://dekontaminasi.com/api/id/covid19/hospitals)\n* [Berita-berita termutakhir](https://dekontaminasi.com/api/id/covid19/news) seputar COVID-19\n* [Kabar hoaks](https://dekontaminasi.com/api/id/covid19/hoaxes) terbaru (dari [turnbackhoax.id](https://turnbackhoax.id/))\n\n**CATATAN**: Data paparan COVID-19 diekstrak dari [dashboard resmi ArcGIS milik BNPB](https://inacovid19.maps.arcgis.com) (Badan Nasional Penanggulangan Bencana).\n\nYang diperlukan (versi minimum): [Node.js](https://nodejs.org/) versi 10, [curl](https://curl.haxx.se/) versi 7.58, [jq](https://stedolan.github.io/jq/manual/) versi 1.5. Pengguna Ubuntu/Debian bisa mendapatkannya dengan:\n```\nsudo apt install -y nodejs curl jq\n```\n\nCara menjalankan:\n```\nnpm install\nnpm run build\n```\n\nmaka data-data penting akan diletakkan di direktori `public`:\n```\n$ find public/ -type f\npublic/api/id/covid19/hoaxes\npublic/api/id/covid19/hospitals\npublic/api/id/covid19/news\npublic/api/id/covid19/stats\npublic/index.html\npublic/ping\n```\n\nyang tentunya telah siap dipublikasikan sebagai situs statik, misalnya menggunakan [Firebase Hosting](https://firebase.google.com/docs/hosting/), [Zeit/Vercel](https://vercel.com/), [Surge](https://surge.sh/), [Netlify](https://www.netlify.com/), [Aerobatic](https://www.aerobatic.com/), [Render](https://render.com), dan yang sejenisnya, ataupun juga diletakkan di sebuah server HTTP secara manual.\n\nKhusus untuk [dekontaminasi.com](https://dekontaminasi.com), data-data tersebut akan diperbarui tiap 15 menit karena tahapan `npm run build` terus dipicu secara berkala, memanfaatkan fitur _scheduled event_ dari GitHub Actions ([lihat dokumentasinya](https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)).\n\n\u003chr\u003e\n\n### \u003ca name=\"english\"\u003e\u003c/a\u003eEnglish\n\nThis repository contains the tools necessary to build [dekontaminasi.com](https://dekontaminasi.com), an API service to get the latest COVID-19 development in Indonesia.\n\nDekontaminasi.com serves as the data source for sites such as [KawalCovid19.id](https://kawalcovid19.id/) and [KabarVirus](https://kabarvirus.com). If you want to run your own COVID-19 API server, simply customize and tweak this repository and deploy the data accordingly!\n\nCurrently, some available information includes (formatted as JSON):\n\n* [Summary of cases](https://dekontaminasi.com/api/id/covid19/stats)\n* [The list of referral hospitals](https://dekontaminasi.com/api/id/covid19/hospitals)\n* [Latest news articles](https://dekontaminasi.com/api/id/covid19/news) relevant to COVID-19\n* [Recently discovered hoaxes](https://dekontaminasi.com/api/id/covid19/hoaxes) (from [turnbackhoax.id](https://turnbackhoax.id/))\n\n**NOTE**: The information on COVID-19 spread is extracted from [the official ArcGIS dashboard of BNPB](https://inacovid19.maps.arcgis.com/) (National Disaster Mitigation Agency).\n\nMinimum requirements: [Node.js](https://nodejs.org/) version 10, [curl](https://curl.haxx.se/) version 7.58, [jq](https://stedolan.github.io/jq/manual/) version 1.5. For Ubuntu/Debian, fulfill these by installing the following packages:\n```\nsudo apt install -y nodejs curl jq\n```\n\nTo run the data extraction:\n```\nnpm install\nnpm run build\n```\n\nwhich will place the important bits in the `public` subdirectory:\n```\n$ find public/ -type f\npublic/api/id/covid19/hoaxes\npublic/api/id/covid19/hospitals\npublic/api/id/covid19/news\npublic/api/id/covid19/stats\npublic/index.html\npublic/ping\n```\n\nthat can be published just like a regular static site, e.g. using [Firebase Hosting](https://firebase.google.com/docs/hosting/), [Zeit/Vercel](https://vercel.com/), [Surge](https://surge.sh/), [Netlify](https://www.netlify.com/), [Aerobatic](https://www.aerobatic.com/), [Render](https://render.com), etc, or served manually from any HTTP server.\n\nNote that for [dekontaminasi.com](https://dekontaminasi.com), the data will be updated every 15 minutes because `npm run build` is triggered periodically, thanks to the  _scheduled event_ feature from GitHub Actions ([check the documentation](https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariya%2Fdekontaminasi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariya%2Fdekontaminasi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariya%2Fdekontaminasi/lists"}