Post · · 4 min
Why Notion as a CMS
How learningbytes.sheraj.org is built: Notion as the content backend, Astro as the static site generator, Cloudflare Pages for hosting.
A running journal of what I'm learning, building, and reading.
Post · · 4 min
How learningbytes.sheraj.org is built: Notion as the content backend, Astro as the static site generator, Cloudflare Pages for hosting.
Post · · 5 min
A complete technical guide to building LearningBytes with Astro, Notion as CMS, local image rewriting, Pagefind search, and Cloudflare Pages deployment.
Post · · 3 min
OpenClaw is an open-source AI assistant that can read, write, and orchestrate tasks across your tools. When paired with Notion, it becomes your personal chief-of-staff — managing databases, drafting content, and automating workflows.
I needed my blog site to rebuild whenever I created or edited a byte post in Notion. Notion doesn’t send webhooks, so I poll: every 10 minutes, a job asks Notion “anything changed?” and triggers a rebuild if yes. For example, I may have drafted a post in Notion (this wont get pushed), checked it and changed the status to Published (this will get pushed to the blog)
The obvious approach is to remember when you last checked, then ask “anything since then?” But that means storing a timestamp somewhere and reading it back next time — more moving parts, more things to break.
The trick I used instead:
Why the overlap matters: scheduled jobs aren’t perfectly on time. They drift, they skip, they queue up under load. If your window exactly matches your interval, a missed run = a missed edit, forever. Overlap is cheap insurance.
The trade-off: an edit landing in the overlap window might trigger two rebuilds instead of one. For a site that builds in under a minute, that’s fine. Deleting an entire category of bug is worth one extra build.
The general pattern: anywhere you’d reach for “remember the last time I did X,” ask whether overlapping windows would work instead. Often they do, and the code gets dramatically simpler.
Quick note from re-reading Anthropic’s Building Effective Agents. The core split they draw:
The practical takeaway: don’t reach for an agent when a workflow will do. Most production use cases are workflows wearing an agent costume.
inspired by · article · Building Effective Agents — Anthropic