how one commit travels
From the form to the browser, with the Cloudflare pieces each step uses.
1Browser sends the form to
gitflared-web, which calls POST /api/repos/:name/commits on gitflared-api over a service binding.2The Worker asks the Artifacts binding for the repo and mints a write token with a short TTL.
3isomorphic-git clones or initialises the repo in memory, writes the file, and commits.
4The push goes to the repo's Git remote with the token. Non-forced. If it's rejected: fetch, reapply, retry a few times.
5The token is revoked. Deployed Artifacts emits a pushed event that a future queue consumer could use.
6Pages in
gitflared-web (Astro SSR) ask gitflared-api for HEAD and the log, which it reads through the binding, then render HTML on the server.Nothing is cached in module scope. Each request reads current state from Artifacts, so a restart doesn't lose or stale-cache anything.