{"id":50360846,"url":"https://github.com/codeweiz/microboat-blog","last_synced_at":"2026-05-30T01:21:02.935Z","repository":{"id":360922293,"uuid":"1252277451","full_name":"codeweiz/microboat-blog","owner":"codeweiz","description":"microboat's blog","archived":false,"fork":false,"pushed_at":"2026-05-28T12:44:49.000Z","size":1495,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T13:22:21.205Z","etag":null,"topics":["agent","ai","backend","blog","frontend","infra"],"latest_commit_sha":null,"homepage":"https://blog.micro-boat.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/codeweiz.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-28T11:09:46.000Z","updated_at":"2026-05-28T12:48:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/codeweiz/microboat-blog","commit_stats":null,"previous_names":["codeweiz/microboat-blog"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/codeweiz/microboat-blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Fmicroboat-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Fmicroboat-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Fmicroboat-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Fmicroboat-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeweiz","download_url":"https://codeload.github.com/codeweiz/microboat-blog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeweiz%2Fmicroboat-blog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33677253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":["agent","ai","backend","blog","frontend","infra"],"created_at":"2026-05-30T01:21:00.797Z","updated_at":"2026-05-30T01:21:02.921Z","avatar_url":"https://github.com/codeweiz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microboat Blog\n\n[![Deploy](https://github.com/codeweiz/microboat-blog/actions/workflows/deploy.yml/badge.svg)](https://github.com/codeweiz/microboat-blog/actions/workflows/deploy.yml)\n\nPersonal blog on Next.js 16 + Cloudflare Workers. Forked \u0026 stripped from [nextdevkit-cloudflare-template](https://github.com/codeweiz/nextdevkit-cloudflare-template).\n\n🌐 Live: **https://blog.micro-boat.com**\n\nEvery push to `main` ships to Cloudflare Workers via GitHub Actions. Day-to-day, you write a post, commit, push — that's it.\n\n## Stack\n\n- **Next.js 16** App Router + Turbopack\n- **MDX** content via `fumadocs-mdx` (frontmatter-driven posts in `src/content/blog/`)\n- **Tailwind v4** + shadcn/ui + `next-themes` (light/dark)\n- **next-intl** for English / 简体中文\n- **Giscus** comments backed by GitHub Discussions\n- **RSS** feed at `/rss.xml`\n- **OpenNext** deploying to Cloudflare Workers\n\n## Develop\n\n```bash\npnpm install\npnpm dev          # http://localhost:3000\n```\n\n## Add a post\n\nDrop a Markdown file in `src/content/blog/`:\n\n- `my-post.mdx` — English\n- `my-post.zh.mdx` — Chinese (optional)\n\nFrontmatter schema lives in `source.config.ts`. Then commit \u0026 push — GitHub Actions deploys automatically.\n\n## Publish a post\n\n```bash\n# write\nvim src/content/blog/my-new-post.mdx\n\n# ship\ngit add . \u0026\u0026 git commit -m \"blog: my new post\"\ngit push\n```\n\nGitHub Actions runs `install → lint → opennext build → wrangler deploy`. Live in ~1–2 min. Watch progress at https://github.com/codeweiz/microboat-blog/actions.\n\n## Deploy pipeline\n\nAlready configured on this repo:\n\n- **Workflow:** [`.github/workflows/deploy.yml`](./.github/workflows/deploy.yml) — runs on push to `main` and on manual dispatch\n- **Secrets** (set on the repo): `CLOUDFLARE_API_TOKEN`, `CLOUDFLARE_ACCOUNT_ID`\n- **Worker name:** `microboat-blog` (in `wrangler.jsonc`)\n\n### If you fork this repo\n\n1. **Create a Cloudflare API token** — https://dash.cloudflare.com/profile/api-tokens → \"Edit Cloudflare Workers\" template\n2. **Find your Account ID** — right sidebar of any Worker page in the Cloudflare dashboard\n3. **Add Actions secrets** — `Settings → Secrets and variables → Actions`:\n   - `CLOUDFLARE_API_TOKEN`\n   - `CLOUDFLARE_ACCOUNT_ID`\n4. **Update `wrangler.jsonc`** — change `name` to your own Worker name\n5. Push to `main` — CI takes it from there\n\n### Deploy from your laptop\n\n```bash\npnpm wrangler login            # one-time browser auth\npnpm preview                   # preview the prod worker bundle locally\npnpm deploy                    # build + deploy bypassing CI\n```\n\n## Configuration\n\n- Site identity: `src/config/index.ts` (`metadata.name`, `title`, `description`, …)\n- Production URL: `.env.production` (`NEXT_PUBLIC_APP_URL`)\n- Worker name / bindings: `wrangler.jsonc`\n- Locales: `src/config/index.ts` → `i18n.locales`, plus `messages/{en,zh}.json`\n- Comments: `src/components/blog/giscus.tsx` (repo, repoId, category, categoryId)\n\n## Comments (Giscus)\n\nComments use [Giscus](https://giscus.app) on top of GitHub Discussions.\n\nIf you fork this repo:\n\n1. **Enable Discussions** — `gh api -X PATCH repos/OWNER/REPO -f has_discussions=true`\n2. **Install the Giscus app** — https://github.com/apps/giscus (grant access to your repo)\n3. **Get IDs** for your repo + category:\n   ```bash\n   gh api repos/OWNER/REPO --jq .node_id\n   gh api graphql -f query='{ repository(owner:\"OWNER\", name:\"REPO\"){ discussionCategories(first:20){ nodes { id name } } } }'\n   ```\n4. **Update** `src/components/blog/giscus.tsx` with your `repo`, `repoId`, `category`, `categoryId`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeweiz%2Fmicroboat-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeweiz%2Fmicroboat-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeweiz%2Fmicroboat-blog/lists"}