{"id":18830075,"url":"https://github.com/brycedorn/blog","last_synced_at":"2025-04-14T03:41:39.888Z","repository":{"id":40408596,"uuid":"489676782","full_name":"brycedorn/blog","owner":"brycedorn","description":"Using Cloudflare Workers to proxy dev.to posts and cache at edge","archived":false,"fork":false,"pushed_at":"2024-02-03T20:00:28.000Z","size":423,"stargazers_count":30,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T17:46:30.282Z","etag":null,"topics":["blog","cloudflare","cloudflare-workers","miniflare","serverless","typescript"],"latest_commit_sha":null,"homepage":"https://blog.bryce.io","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/brycedorn.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}},"created_at":"2022-05-07T13:10:21.000Z","updated_at":"2025-03-18T03:44:21.000Z","dependencies_parsed_at":"2024-02-03T18:28:59.143Z","dependency_job_id":"aaeebafb-48a0-495b-a749-d78aea1a375b","html_url":"https://github.com/brycedorn/blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Fblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Fblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Fblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Fblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brycedorn","download_url":"https://codeload.github.com/brycedorn/blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248818573,"owners_count":21166438,"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":["blog","cloudflare","cloudflare-workers","miniflare","serverless","typescript"],"created_at":"2024-11-08T01:47:31.798Z","updated_at":"2025-04-14T03:41:39.852Z","avatar_url":"https://github.com/brycedorn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [blog.bryce.io](https://blog.bryce.io)\n\n[![Deploy](https://github.com/brycedorn/blog/actions/workflows/deploy.yml/badge.svg)](https://github.com/brycedorn/blog/actions/workflows/deploy.yml) [![RSS](https://img.shields.io/static/v1?\u0026message=feed\u0026label=RSS\u0026color=orange\u0026style=flat\u0026logo=rss\n)](https://blog.bryce.io/rss)\n\nA project built using [Hono](https://github.com/honojs/hono/) for Cloudflare Workers. Uses [KV](https://developers.cloudflare.com/workers/learning/how-kv-works/) for [edge caching](https://blog.bryce.io/using-workers-kv-to-build-an-edge-cached-blog) and [thumbhash](https://github.com/evanw/thumbhash) to [generate image placeholders](https://blog.bryce.io/generate-thumbhash-at-edge-for-tiny-progressive-images).\n\nFork and deploy your own for free!\n\n## Development\n\nInstall dependencies:\n\n```sh\nnpm install\n```\n\nSet up environment:\n\n```sh\ncp .env.example .env\n```\n\nStart via [miniflare](https://miniflare.dev/):\n\n```sh\nnpm start\n```\n\n## Updating cache\n\nThis project uses [KV](https://developers.cloudflare.com/workers/learning/how-kv-works/) as a distributed store for article data and image placeholders.\n\nTo populate the cache, open the `/update` endpoint in your browser with the password set in environment passed via query parameter, e.g. [/update?password=test](http://localhost:8787/update?password=test).\n\n## Deploying your own blog\n\nFork this repository \u0026 set your dev.to username in [consts.ts](https://github.com/brycedorn/blog/blob/master/src/consts.ts) and a password in [actions secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets).\n\nThen [generate an API token](https://dash.cloudflare.com/profile/api-tokens) and set `CF_API_TOKEN` and `CF_ACCOUNT_ID` in actions secrets as well. The [deploy action](https://github.com/brycedorn/blog/blob/master/.github/workflows/deploy.yml) will automatically deploy via Wrangler.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrycedorn%2Fblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrycedorn%2Fblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrycedorn%2Fblog/lists"}