{"id":23580855,"url":"https://github.com/bravo68web/url-store-kv-worker","last_synced_at":"2026-01-24T02:05:48.228Z","repository":{"id":99602874,"uuid":"559969892","full_name":"BRAVO68WEB/url-store-kv-worker","owner":"BRAVO68WEB","description":"Just another custom URL store made with CloudFlare Workers and KV.","archived":false,"fork":false,"pushed_at":"2024-08-01T14:02:46.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T21:06:12.878Z","etag":null,"topics":["clouflare","serverless","workers","workers-kv"],"latest_commit_sha":null,"homepage":"https://s.b68.dev/","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/BRAVO68WEB.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":"2022-10-31T13:32:23.000Z","updated_at":"2024-08-12T08:32:57.000Z","dependencies_parsed_at":"2024-05-11T18:44:10.154Z","dependency_job_id":"f2603133-b8c1-4d1b-8d5f-9d8ceff75e73","html_url":"https://github.com/BRAVO68WEB/url-store-kv-worker","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BRAVO68WEB%2Furl-store-kv-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BRAVO68WEB%2Furl-store-kv-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BRAVO68WEB%2Furl-store-kv-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BRAVO68WEB%2Furl-store-kv-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BRAVO68WEB","download_url":"https://codeload.github.com/BRAVO68WEB/url-store-kv-worker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769396,"owners_count":21801376,"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":["clouflare","serverless","workers","workers-kv"],"created_at":"2024-12-27T00:13:06.998Z","updated_at":"2026-01-24T02:05:48.183Z","avatar_url":"https://github.com/BRAVO68WEB.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CF KV Workers 🚀\n\nJust another custom URL store made with CloudFlare Workers and KV.\n\n## Feature Overview \n\n- KV for Slug and Link storage\n- D1 for View count tracking\n- Workers for Deployment\n\n## How to use?\n\n1. Clone the repo and head inside it\n```bash\ngit clone https://github.com/BRAVO68WEB/url-store-kv-worker\ncd url-store-kv-worker\n```\n\n2. Install all dependencies\n```bash\npnpm i\n```\n\n3. Login to wrangler cli, if not done\n```bash\npnpm wrangler login\n```\n\n4. Handle KV Namespace\n```bash\npnpm wrangler kv:namespace create you_pref_kv_name\n```\n\n\u003e { binding = \"you_pref_kv_name\", id = \"xxxxxxxxxxxxxxxxxxxxxxxxxx\" }\n\nReplace existing id with this id `xxxxxxxxxxxxxxxxxxxxxxxxxx` in wrangler.toml file\n\n```bash\npnpm wrangler kv:namespace create you_pref_kv_name_preview\n```\n\n\u003e { binding = \"you_pref_kv_name_preview\", id = \"yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy\" }\n\nReplace existing preview_id with this id `yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy` in wrangler.toml file\n\nFinally, it should look like\n\n```toml\nkv_namespaces = [\n  { binding = \"URLSTORE\", preview_id = \"yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy\", id = \"xxxxxxxxxxxxxxxxxxxxxxxxxx\" }\n]\n```\n\n5. Handle D1 Database\n```bash\npnpm wrangler d1 create you_pref_db_name\n```\n\nOutput :-\n```toml\n[[ d1_databases ]]\nbinding = \"DB\" # i.e. available in your Worker on env.DB\ndatabase_name = \"you_pref_db_name\"\ndatabase_id = \"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\"\n```\n\nReplace existing database_id with this id `wwwwwwwwwwwwwwwwwwwwwwwwwwwwww` in wrangler.toml file\nReplace existing database_name with this id `you_pref_db_name` in wrangler.toml file\n\n```bash\npnpm wrangler d1 create you_pref_db_name_preview\n```\n\nOutput :-\n```toml\n[[ d1_databases ]]\nbinding = \"DB\" # i.e. available in your Worker on env.DB\ndatabase_name = \"you_pref_db_name_preview\"\ndatabase_id = \"wwwwwwwwwwwwwwwwwwwwwwwwwwwwww\"\n```\n\nReplace existing preview_database_id with this id `wwwwwwwwwwwwwwwwwwwwwwwwwwwwww` in wrangler.toml file\n\n6. Perform SQL table migrations\n\n```bash\npnpm wrangler d1 execute URLSTORE --file=./schema.sql\n```\n\n7. Test locally, to see if the config works\n\n```bash\npnpm start\n```\n\n8. Deploy to Cloudflare Workers\n\n```bash\npnpm run deploy\n```\n\nHappy Hacking 🎉 !!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbravo68web%2Furl-store-kv-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbravo68web%2Furl-store-kv-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbravo68web%2Furl-store-kv-worker/lists"}