Skip to content

shebashio/worker-pop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HE POPS Worker

This is a Cloudflare Worker that fetches data from the Hurricane Electric Points of Presence (POPs) API, converts the data to CSV format, and stores it in a Cloudflare Workers KV namespace.

Requirements

  • Node.js
  • npm or yarn
  • A Cloudflare account with Workers and Workers KV enabled

Setup

  1. Clone this repository:

    git clone https://github.com/yourusername/he-pops-worker.git
    cd he-pops-worker
  2. Install the dependencies:

    npm install
  3. Copy the wrangler.toml.example file to wrangler.toml and update the account_id and kv_namespaces values with your actual Cloudflare account ID and KV namespace ID:

    cp wrangler.toml.example wrangler.toml
    nano wrangler.toml
  4. Build the worker:

    npm run build
  5. Publish the worker:

    wrangler publish

Usage

Once the worker is published, it will automatically fetch the data from the HE POPs API, convert it to CSV, and store it in the KV namespace every time it receives a request. You can trigger this process by sending a request to the worker's URL.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Use workers to parse points of presence from json to csv and store in R2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors