{"id":19294587,"url":"https://github.com/web3-storage/link.web3.storage","last_synced_at":"2025-04-22T08:30:33.594Z","repository":{"id":40493330,"uuid":"488684511","full_name":"web3-storage/link.web3.storage","owner":"web3-storage","description":null,"archived":true,"fork":false,"pushed_at":"2022-05-04T23:28:58.000Z","size":547,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-24T00:28:04.908Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web3-storage.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-04T17:32:37.000Z","updated_at":"2024-04-18T16:35:25.000Z","dependencies_parsed_at":"2022-08-09T22:01:13.710Z","dependency_job_id":null,"html_url":"https://github.com/web3-storage/link.web3.storage","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Flink.web3.storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Flink.web3.storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Flink.web3.storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3-storage%2Flink.web3.storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web3-storage","download_url":"https://codeload.github.com/web3-storage/link.web3.storage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250205971,"owners_count":21392157,"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","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":"2024-11-09T22:38:48.146Z","updated_at":"2025-04-22T08:30:33.282Z","avatar_url":"https://github.com/web3-storage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IPFS redirect edge gateway\n\n\u003e The IPFS edge gateway for nft.storage is not \"another gateway\", but a caching layer for NFTs that sits on top of existing IPFS public gateways.\n\n## Getting started\n\nOne time set up of your cloudflare worker subdomain for dev:\n\n- `pnpm install` - Install the project dependencies from the monorepo root directory.\n- Sign up to Cloudflare and log in with your default browser.\n- `npm i @cloudflare/wrangler -g` - Install the Cloudflare wrangler CLI\n- `wrangler login` - Authenticate your wrangler cli; it'll open your browser.\n- Copy your cloudflare account id from `wrangler whoami`\n- Update `wrangler.toml` with a new `env`. Set your env name to be the value of `whoami` on your system you can use `pnpm start` to run the worker in dev mode for you.\n\n  [**wrangler.toml**](./wrangler.toml)\n\n  ```toml\n  [env.bobbytables]\n  workers_dev = true\n  account_id = \"\u003cwhat does the `wrangler whoami` say\u003e\"\n  ```\n\n- Add secrets\n\n  ```sh\n    wrangler secret put SENTRY_DSN --env $(whoami) # Get from Sentry (not required for dev)\n    wrangler secret put LOGTAIL_TOKEN --env $(whoami) # Get from Logtail\n  ```\n\n- Add KV namespaces\n\n  ```sh\n  wrangler kv:namespace create DENYLIST --preview --env USER\n  # Outputs something like: `{ binding = \"DENYLIST\", preview_id = \"7e441603d1bc4d5a87f6cecb959018e4\" }`\n  # but you need to put `{ binding = \"DENYLIST\", preview_id = \"7e441603d1bc4d5a87f6cecb959018e4\", id = \"7e441603d1bc4d5a87f6cecb959018e4\" }` inside the `kv_namespaces`.\n  # for production: wrangler kv:namespace create DENYLIST --env production\n  ```\n\n- `pnpm run publish` - Publish the worker under your env. An alias for `wrangler publish --env $(whoami)`\n- `pnpm start` - Run the worker in dev mode. An alias for `wrangler dev --env $(whoami)`\n\nYou only need to `pnpm start` for subsequent runs. PR your env config to the `wrangler.toml` to celebrate 🎉\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3-storage%2Flink.web3.storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3-storage%2Flink.web3.storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3-storage%2Flink.web3.storage/lists"}