{"id":51891493,"url":"https://github.com/digows/digows.com","last_synced_at":"2026-07-26T04:30:41.940Z","repository":{"id":371156500,"uuid":"1299306105","full_name":"digows/digows.com","owner":"digows","description":"Multilingual personal blog about software engineering and AI built with Astro and Cloudflare Workers.","archived":false,"fork":false,"pushed_at":"2026-07-22T23:29:49.000Z","size":6277,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-23T01:11:47.795Z","etag":null,"topics":["astro","cloudflare-d1","cloudflare-workers","multilingual","software-engineering","static-site","typescript"],"latest_commit_sha":null,"homepage":"https://digows.com","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/digows.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-13T13:09:50.000Z","updated_at":"2026-07-22T23:29:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/digows/digows.com","commit_stats":null,"previous_names":["digows/digows.com"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/digows/digows.com","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digows%2Fdigows.com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digows%2Fdigows.com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digows%2Fdigows.com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digows%2Fdigows.com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digows","download_url":"https://codeload.github.com/digows/digows.com/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digows%2Fdigows.com/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35901460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-26T02:00:06.503Z","response_time":89,"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":["astro","cloudflare-d1","cloudflare-workers","multilingual","software-engineering","static-site","typescript"],"created_at":"2026-07-26T04:30:40.756Z","updated_at":"2026-07-26T04:30:41.926Z","avatar_url":"https://github.com/digows.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# digows.com\n\nSource code and published content for [digows.com](https://digows.com), a multilingual site about software engineering, architecture, distributed systems, cloud, and AI agents.\n\nThe site is generated with Astro and deployed to Cloudflare Workers. Articles are static; comments, reactions, contact messages, and explicit newsletter consent use a small Worker API backed by Cloudflare D1.\n\n## Highlights\n\n- English, Brazilian Portuguese, international Spanish, French, and Simplified Chinese editions.\n- Per-language canonical URLs and reciprocal `hreflang` metadata.\n- RSS, sitemap, structured data, social metadata, and optimized static output.\n- System-aware light and dark themes.\n- Moderated comments, article reactions, and a private contact form.\n- A localized, single-opt-in newsletter with a transactional welcome email and Resend delivery preferences.\n- Cloudflare Turnstile protection and email notifications.\n- Reading progress, focus mode, text-to-speech, bookmarks, sharing, and paragraph-level interactions.\n\n## Stack\n\n- [Astro](https://astro.build/) for static generation.\n- Markdown content collections for articles.\n- Cloudflare Workers and Static Assets for production hosting and APIs.\n- Cloudflare D1 for dynamic site data.\n- Cloudflare Turnstile for abuse protection.\n- Resend for welcome email, audience preferences, and broadcasts.\n- GitHub Actions for validation.\n- Cloudflare Workers Builds for production deployment.\n\nSee [Architecture](docs/ARCHITECTURE.md) for the public production topology, deployment flow, runtime boundaries, and security model.\n\n## Repository layout\n\n```text\nsrc/\n├── components/       UI and interactive article features\n├── content/          Posts and typed page/experience content\n├── i18n/             Locale, route, formatting, and UI message adapters\n├── layouts/          Shared page layouts\n├── pages/            Astro routes\n├── styles/           Global and page-specific styles\n└── worker/           Cloudflare Worker APIs\nmigrations/           D1 schema migrations\npublic/               Static public assets and response headers\nscripts/              Build-time audits and maintenance tools\ndocs/                 Editorial and infrastructure documentation\n```\n\n## Requirements\n\n- Node.js 22.13 or newer.\n- pnpm 11.\n- Wrangler 4.\n\n## Local development\n\nInstall dependencies and create the local-only environment file:\n\n```bash\npnpm install\ncp .dev.vars.example .dev.vars\n```\n\nInitialize the local D1 database, build with Cloudflare's Turnstile test key, and start the Worker development server:\n\n```bash\npnpm run d1:migrate:local\npnpm run build:local\npnpm exec wrangler dev\n```\n\nThe generated site and Worker are served together at `http://localhost:8787`.\n\n## Content model\n\nEach translation group lives in one directory derived from its stable content ID:\n\n```text\nsrc/content/posts/2025-09-02-the-ifless-principle-designing-apis-without-hidden-decisions/\n├── en.md\n├── pt-BR.md\n├── es.md\n├── fr.md\n└── zh-Hans.md\n```\n\nEvery file shares a `translationKey`; translated editions reference the source through `translationOf` and own their localized slug. Canonical URLs use `/{locale}/{year}/{month}/{day}/{localized-slug}/`. Static Asset redirect rules preserve the finite set of previously indexed, unprefixed English and Portuguese URLs without spending Worker invocations on redirect logic.\n\nReusable interface labels live in Paraglide bundles under `messages/`; narrative page content remains typed and colocated under `src/content/pages/`. Read [Content and localization architecture](docs/content-architecture.md) for ownership, URL, preference, asset, SEO, and social-data conventions.\n\n## Validation\n\nRun the same checks used by CI:\n\n```bash\npnpm run types:check\npnpm run check\npnpm run test\npnpm run build\npnpm run audit\npnpm exec wrangler deploy --dry-run\n```\n\nThe audit verifies locale coverage, canonical and `hreflang` metadata, stable social content IDs, paragraph anchors, editorial modules, exact legacy redirects, deterministic social images, and internal links in the generated site.\n\n## Deployment\n\nEvery pull request and push to `main` is validated by GitHub Actions. A successful push to `main` also triggers Cloudflare Workers Builds, which repeats the production checks and deploys the `digows-com` Worker.\n\nManual deployment is available for recovery. The command applies backward-compatible D1 migrations before uploading the Worker; the previous Worker remains valid during the rolling transition.\n\n```bash\npnpm run deploy\n```\n\nDo not commit `.dev.vars`, secrets, generated `dist/` output, or local data. Production secrets are managed by Wrangler and Cloudflare.\n\n## Documentation\n\n- [Architecture and deployment](docs/ARCHITECTURE.md)\n- [Content and localization architecture](docs/content-architecture.md)\n\n## Security\n\nDo not report vulnerabilities in a public issue. Follow [SECURITY.md](SECURITY.md) to submit a private GitHub security advisory.\n\n## License\n\nThis repository is public for transparency and review. No license is granted for reuse, redistribution, or derivative works unless a file explicitly states otherwise.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigows%2Fdigows.com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigows%2Fdigows.com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigows%2Fdigows.com/lists"}