{"id":24988554,"url":"https://github.com/lit-protocol/cloudflare-litgate-rust","last_synced_at":"2025-10-08T20:29:44.706Z","repository":{"id":44401200,"uuid":"437600718","full_name":"LIT-Protocol/cloudflare-litgate-rust","owner":"LIT-Protocol","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-12T20:51:26.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-31T12:39:06.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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-12T16:43:15.000Z","updated_at":"2021-12-21T03:34:18.000Z","dependencies_parsed_at":"2022-07-15T06:30:48.474Z","dependency_job_id":null,"html_url":"https://github.com/LIT-Protocol/cloudflare-litgate-rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LIT-Protocol/cloudflare-litgate-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Fcloudflare-litgate-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Fcloudflare-litgate-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Fcloudflare-litgate-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Fcloudflare-litgate-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIT-Protocol","download_url":"https://codeload.github.com/LIT-Protocol/cloudflare-litgate-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIT-Protocol%2Fcloudflare-litgate-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000653,"owners_count":26082817,"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-10-08T02:00:06.501Z","response_time":56,"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":[],"created_at":"2025-02-04T12:04:40.426Z","updated_at":"2025-10-08T20:29:44.686Z","avatar_url":"https://github.com/LIT-Protocol.png","language":"Rust","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\n\n## Notes\n\nThis has only been tested to compile on Ubuntu 20.04 with emcc as the compiler.  I could not get it to compile on a mac.\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\nYou also need to install EMCC for compilation using instructions here: https://emscripten.org/docs/getting_started/downloads.html\n\nAfter installing it, make sure you expose emcc in your path by following the instructions that emcc gives after installation.\n\nBefore compiling, make sure you run `export CC=emcc` in your terminal to set emcc as the compiler.\n\nNext, open at src/lib.rs.  Every line that has a comment that starts with \"LIT Developers\" is something you should look at.  \n\nSpecifically, you should set the `protected_url` variable on line 41 to the final URL you want to send your users to, if they authenticate successfully.\n\n## Building and Deploying on cloudflare \n\nThis template starts you off with a `src/lib.rs` file, acting as an entrypoint for requests hitting\nyour Worker. Feel free to add more code in this file, or create Rust modules anywhere else for this\nproject to use. \n\nWith `wrangler`, you can build, test, and deploy your Worker with the following commands: \n\n```bash\n# compiles your project to WebAssembly and will warn of any issues\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\nRead the latest `worker` crate documentation here: https://docs.rs/worker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Fcloudflare-litgate-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flit-protocol%2Fcloudflare-litgate-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flit-protocol%2Fcloudflare-litgate-rust/lists"}