{"id":28636041,"url":"https://github.com/esolia/hook-runner","last_synced_at":"2026-01-31T03:32:17.068Z","repository":{"id":297846628,"uuid":"998083373","full_name":"eSolia/hook-runner","owner":"eSolia","description":"Allows scheduled running of webhooks. ","archived":false,"fork":false,"pushed_at":"2025-06-08T19:58:25.000Z","size":57,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-01T08:21:34.811Z","etag":null,"topics":["cron","deno","hooks","html","typescript","webhook"],"latest_commit_sha":null,"homepage":"https://esolia-hook-runner.deno.dev/","language":"HTML","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/eSolia.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-07T20:36:49.000Z","updated_at":"2025-11-25T17:07:10.000Z","dependencies_parsed_at":"2025-06-07T21:39:26.524Z","dependency_job_id":null,"html_url":"https://github.com/eSolia/hook-runner","commit_stats":null,"previous_names":["rickcogley/hook-runner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eSolia/hook-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eSolia%2Fhook-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eSolia%2Fhook-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eSolia%2Fhook-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eSolia%2Fhook-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eSolia","download_url":"https://codeload.github.com/eSolia/hook-runner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eSolia%2Fhook-runner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28928148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T02:59:34.861Z","status":"ssl_error","status_checked_at":"2026-01-31T02:59:05.369Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cron","deno","hooks","html","typescript","webhook"],"created_at":"2025-06-12T17:36:49.365Z","updated_at":"2026-01-31T03:32:17.054Z","avatar_url":"https://github.com/eSolia.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hook-runner - Generic Webhook Scheduler\n\nA simple and powerful application for scheduling HTTP POST requests (webhooks) based on cron expressions, managed through an intuitive web-based user interface. Built for deployment on Deno Deploy, it leverages Deno KV for persistent storage of your webhook configurations.\n\n## ✨ Features\n\n* **Web-based UI:** Easily add, edit, and delete scheduled webhooks through a user-friendly interface.\n* **Cron-based Scheduling:** Define webhook trigger times using standard cron expressions (e.g., `0 0 * * *` for daily at midnight UTC).\n* **Persistent Storage:** Webhook configurations are stored securely using Deno KV, ensuring data survives deployments and restarts.\n* **Dynamic Scheduling:** A single Deno.cron job dynamically manages all webhooks from Deno KV, preventing \"top-level only\" errors during deployment.\n* **HTTP Basic Authentication:** Protect your UI with a simple username and password.\n* **Deno Deploy Integration:** Built specifically for Deno Deploy, with an integrated \"Redeploy\" button to refresh the application state after updates.\n* **Input Robustness:** Automatically trims leading/trailing spaces from user inputs (name, URL, schedule) to prevent common parsing errors.\n\n## 🚀 Technologies Used\n\n* **Deno:** A secure runtime for JavaScript and TypeScript.\n* **Deno KV:** Deno's built-in key-value database for persistent data storage.\n* **Deno Deploy:** The platform for deploying Deno applications to the edge.\n* **croner:** A robust cron parser library for Deno.\n* **HTML \u0026 Tailwind CSS:** For the simple and responsive web interface.\n\n## ⚙️ Setup and Deployment (on Deno Deploy)\n\n### 1. Project Structure\n\nEnsure your project has the following structure:\n\n```\nyour-project-root/\n├── main.ts             \u003c-- Your main Deno application logic\n└── static/\n└── index.html      \u003c-- The web-based UI\n```\n\n### 2. Environment Variables\n\nSet the following environment variables in your Deno Deploy project settings:\n\n* `WEBHOOK_ADMIN_USERNAME`: Your desired username for UI access.\n* `WEBHOOK_ADMIN_PASSWORD`: Your desired password for UI access.\n* `DD_PROJECT_ID`: Your Deno Deploy Project ID in UUID format. This can be found by running `deployctl projects show esolia-hook-runner` (replace \"esolia-hook-runner\" with your project's alias) and it will return the \"Dash URL\" showing your project id as a UUID (e.g., `https://dash.deno.com/projects/\u003cYOUR_PROJECT_UUID\u003e`).\n* `DD_ACCESS_TOKEN`: A Deno Deploy Access Token with `Read: projects` and `Deploy: projects` permissions. You can generate one in your Deno Deploy account settings under \"Access Tokens\".\n\n**Note:** If `WEBHOOK_ADMIN_USERNAME` or `WEBHOOK_ADMIN_PASSWORD` are not set, the UI will not be password protected. If `DD_PROJECT_ID` or `DD_ACCESS_TOKEN` are not set, the \"Trigger Project Redeploy\" button will not function.\n\n### 3. Deploy to Deno Deploy\n\n1.  Connect your GitHub repository to Deno Deploy.\n2.  Configure your project to deploy `main.ts` as the entry point.\n3.  Ensure the environment variables listed above are correctly set.\n4.  Trigger a deployment.\n\n## 👨‍💻 Usage\n\n1.  **Access the UI:** Once deployed, navigate to your Deno Deploy project's URL. You will be prompted for the `WEBHOOK_ADMIN_USERNAME` and `WEBHOOK_ADMIN_PASSWORD` if set.\n2.  **Add a Webhook:**\n    * Enter a `Name` for your webhook (e.g., \"Netlify Site X Build Hook\").\n    * Provide the `URL` of the endpoint that should receive the POST request.\n    * Enter the `Cron Schedule` in UTC (e.g., `0 0 * * *` for daily at midnight). You can use tools like [crontab.guru](https://crontab.guru/) to help formulate your cron expressions.\n    * Click \"Add Webhook\".\n3.  **Edit/Delete Webhooks:**\n    * Existing webhooks will be listed below the \"Add New Webhook\" section.\n    * Click \"Edit\" to modify a webhook's details using the modal.\n    * Click \"Delete\" to remove a webhook.\n4.  **Trigger Project Redeploy:**\n    * If you make changes to your backend code (`main.ts`) or need to ensure cron jobs are re-initialized, click the \"Trigger Project Redeploy\" button. This will initiate a new deployment on Deno Deploy.\n\n## ⚠️ Important Notes\n\n* **Cron Timezone:** All cron schedules are interpreted in **UTC**.\n* **Error Handling:** The application logs errors related to cron parsing and webhook pings to your Deno Deploy logs. Monitor these for any issues.\n* **Security:** Basic Auth provides a simple layer of security. For highly sensitive applications, consider more robust authentication mechanisms.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesolia%2Fhook-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesolia%2Fhook-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesolia%2Fhook-runner/lists"}