{"id":24988551,"url":"https://github.com/lit-protocol/cloudflare-litgate-js","last_synced_at":"2026-03-12T19:17:25.388Z","repository":{"id":44401457,"uuid":"440393055","full_name":"LIT-Protocol/cloudflare-litgate-js","owner":"LIT-Protocol","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-21T04:59:16.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T19:53:32.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/LIT-Protocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-21T04:48:02.000Z","updated_at":"2023-10-12T12:33:09.000Z","dependencies_parsed_at":"2022-07-15T06:30:55.910Z","dependency_job_id":null,"html_url":"https://github.com/LIT-Protocol/cloudflare-litgate-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LIT-Protocol/cloudflare-litgate-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Fcloudflare-litgate-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Fcloudflare-litgate-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Fcloudflare-litgate-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Fcloudflare-litgate-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIT-Protocol","download_url":"https://codeload.github.com/LIT-Protocol/cloudflare-litgate-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Fcloudflare-litgate-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30439658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"last_error":"SSL_read: 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":[],"created_at":"2025-02-04T12:04:39.685Z","updated_at":"2026-03-12T19:17:25.366Z","avatar_url":"https://github.com/LIT-Protocol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getting Started\n\nA template for kick starting a Cloudflare worker that protects some URL by verifying a JWT generated by the Lit Protocol using Javascript\n\n## How this works\n\nThis CF worker will check for a `jwt` query parameter and verify that it was signed by the Lit Protocol. If the JWT is valid, the worker will return a 302 redirect to a protected URL. If the JWT is invalid, the worker will return a 401 response.\n\n## Usage\n\nYou will need Cloudflare Wrangler to build and deploy this. Install it using the instructions here: https://developers.cloudflare.com/workers/cli-wrangler/install-update\n\nAfter installing it, run \"wrangler login\" to log in to your cloudflare account.\n\nNext, open index.js. Every line that has a comment that starts with \"LIT Developers\" is something you should look at.\n\nSpecifically, you should set the `protectedUrl` variable on line 22 to the final URL you want to send your users to, if they authenticate successfully.\n\n## Building and Deploying on cloudflare\n\nWith `wrangler`, you can build, test, and deploy your Worker with the following commands:\n\n```bash\n# builds your project with webpack\nwrangler build\n\n# run your Worker in an ideal development workflow (with a local server, file watcher \u0026 more)\nwrangler dev\n\n# deploy your Worker globally to the Cloudflare network (update your wrangler.toml file for configuration)\nwrangler publish\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Fcloudflare-litgate-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flit-protocol%2Fcloudflare-litgate-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Fcloudflare-litgate-js/lists"}