{"id":22776065,"url":"https://github.com/pigri/cf-n8n-proxy","last_synced_at":"2025-12-29T12:09:24.367Z","repository":{"id":226814094,"uuid":"769553555","full_name":"pigri/cf-n8n-proxy","owner":"pigri","description":"Cloudflare worker for n8n proxy","archived":false,"fork":false,"pushed_at":"2025-07-26T02:07:55.000Z","size":403,"stargazers_count":35,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-26T08:54:12.729Z","etag":null,"topics":["cf","cloudflare","firewall","n8n","proxy","rate-limit","security"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pigri.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-09T12:05:28.000Z","updated_at":"2025-07-25T08:03:39.000Z","dependencies_parsed_at":"2024-03-19T17:28:44.110Z","dependency_job_id":"e9aac170-5549-4809-a164-fff58fab8aba","html_url":"https://github.com/pigri/cf-n8n-proxy","commit_stats":null,"previous_names":["pigri/cf-n8n-proxy"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pigri/cf-n8n-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigri%2Fcf-n8n-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigri%2Fcf-n8n-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigri%2Fcf-n8n-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigri%2Fcf-n8n-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pigri","download_url":"https://codeload.github.com/pigri/cf-n8n-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pigri%2Fcf-n8n-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268010908,"owners_count":24180636,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cf","cloudflare","firewall","n8n","proxy","rate-limit","security"],"created_at":"2024-12-11T19:08:32.149Z","updated_at":"2025-12-29T12:09:24.325Z","avatar_url":"https://github.com/pigri.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cf-n8n-proxy\n\nCloudflare worker for n8n proxy\n\n### Why do you need this?\n\n- You can use this service to protect your n8n instance from DDoS attacks.\n- You can use this service to hide your n8n instance from the public.\n- You can use this service to add rate limiting to your n8n instance.\n- You can use this service to add deduplication to your n8n instance.\n- You can use this service to add a queue to your n8n instance.\n- You can use this service to add a retry mechanism to your n8n instance.\n\n### Requirements:\n\n- You need a paid Worker plan ($5 USD) for this service due to the queue.\n- A cloudflare domain\n\n### Architecture:\n\ncloudflare -\u003e cloudflare worker -\u003e n8n\n\n## How to use?\n\n### Wrangler install\n\n```\nnpm install -g wrangler pnpm\n```\n\n### NPM package install\n\n```\npnpm install\n```\n\n### Wrangler login\n\n```\nwrangler login\n```\n\n### Create your wrangler config\n\n```\ncp wrangler.toml_example wrangler.toml\n```\n\n- Change everywhere `example.com` to your domain\n\n### Create queue\n\n```\nwrangler queues create cf-n8n-proxy-production -e production\nwrangler queues create dlq-cf-n8n-proxy-production -e production\n```\n\n### Enable deduplication feature\n\n```\nwrangler kv:namespace create cf-n8n-proxy\n```\n\n- Replace `\u003cmykvid\u003e` with the response ID in the wrangler.toml file.\n- Change `DEDUPLICATION_ENABLED=false` to `DEDUPLICATION_ENABLED=true` in the wrangler.toml file.\n\n### IMPORTANT NOTES ABOUT DEDUPLICATION \"As of January 2022, expiration targets that are less than 60 seconds into the future are not supported. This is true for both expiration methods.\"\n\n- `DEDUPLICATION_TTL` is optional; by default, it is set to 60 seconds.\n\n### Rate limiting\n\n- Change `RATE_LIMITING_ENABLED=false` to `RATE_LIMITING_ENABLED=true` in the wrangler.toml file.\n\n#### Default 100 requests per minute\n\n```\nsimple = { limit = 100, period = 60 }\n```\n\n### Deploy your service\n\n```\nwrangler deploy -e production\n```\n\n### How to test in local?\n\n```\nwrangler dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpigri%2Fcf-n8n-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpigri%2Fcf-n8n-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpigri%2Fcf-n8n-proxy/lists"}