{"id":18149964,"url":"https://github.com/hzhu/node-provider-jwt","last_synced_at":"2026-04-24T20:34:57.400Z","repository":{"id":258721614,"uuid":"871830940","full_name":"hzhu/node-provider-jwt","owner":"hzhu","description":"🔐 Node provider protection with JWTs in frontend dapps","archived":false,"fork":false,"pushed_at":"2024-12-13T01:16:41.000Z","size":241,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T17:51:00.513Z","etag":null,"topics":["alchemy","dapp","ethereum","jwt","quicknode-rpc"],"latest_commit_sha":null,"homepage":"https://node-provider-jwt-alpha.vercel.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hzhu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-10-13T04:05:59.000Z","updated_at":"2024-12-13T01:16:44.000Z","dependencies_parsed_at":"2024-11-10T07:24:07.280Z","dependency_job_id":"1cbadb2b-aef4-48a9-b58a-32dd69b3d0cb","html_url":"https://github.com/hzhu/node-provider-jwt","commit_stats":null,"previous_names":["hzhu/node-provider-jwt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hzhu/node-provider-jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzhu%2Fnode-provider-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzhu%2Fnode-provider-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzhu%2Fnode-provider-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzhu%2Fnode-provider-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hzhu","download_url":"https://codeload.github.com/hzhu/node-provider-jwt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hzhu%2Fnode-provider-jwt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32239921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":["alchemy","dapp","ethereum","jwt","quicknode-rpc"],"created_at":"2024-11-02T00:06:49.930Z","updated_at":"2026-04-24T20:34:57.378Z","avatar_url":"https://github.com/hzhu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Provider Protection with JWTs in Frontend dApps\n\n[![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge\u0026logo=medium\u0026logoColor=white\u0026style=flat-square)](https://medium.com/@henballs/protecting-node-provider-urls-for-frontend-dapps-c9a8159fc94d)\n[![Medium](https://img.shields.io/badge/Vercel-000000?style=for-the-badge\u0026logo=vercel\u0026logoColor=white\u0026style=flat-square)](https://node-provider-jwt-alpha.vercel.app)\n\n\u003ca href=\"https://medium.com/@henballs/protecting-node-provider-urls-for-frontend-dapps-c9a8159fc94d\"\u003e  \n  \u003cimg src=\"https://github.com/user-attachments/assets/884d17b2-def8-4fd7-ba80-2d839dbda256\" alt=\"Locks\" style=\"width:75%;\" /\u003e  \n  \u003cbr /\u003e\n  \u003cbr /\u003e\n\u003c/a\u003e\n\nThis project demonstrates how to protect node provider API keys (e.g., for services like Alchemy) in frontend dApps using JWTs. By leveraging short-lived JWTs, we can securely manage access to node providers without exposing API keys directly in the frontend. For a detailed explanation, check out the [blog post](https://medium.com/@henballs/protecting-node-provider-urls-for-frontend-dapps-c9a8159fc94d) here, and see the solution in action in the [demo app](https://node-provider-jwt-alpha.vercel.app).\n\n## Getting Started\n\nFollow these steps to set up the project locally:\n\n### Environment Variables\n\nCreate a `.env` file in the root of the project and add the following environment variables. You can find the explanations for these variables in the [blog post](https://medium.com/@henballs/protecting-node-provider-urls-for-frontend-dapps-c9a8159fc94d).\n\n```bash\nALCHEMY_PRIVATE_KEY_PKCS8=\u003cYour PKCS8 Private Key\u003e\nALCHEMY_KEY_ID=\u003cYour Key ID\u003e\nNEXT_PUBLIC_WC_PROJECT_ID=\u003cYour WalletConnect Project ID\u003e\n```\n\n### Development Server\n\nTo run the application locally, run:\n\n```bash\nnpm install\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhzhu%2Fnode-provider-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhzhu%2Fnode-provider-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhzhu%2Fnode-provider-jwt/lists"}