Astro SSR + Tailwind CSS + Cloudflare
Architecture rules for Astro server-side rendering, React client islands, Tailwind CSS, and Cloudflare Pages/Workers edge deployment.
- Formats
- 4 files
- AGENTS.md
- 39 lines
- CLAUDE.md
- 16 lines
- Languages
- TypeScript
- Updated
- Oct 2026
- Used by
- 4 projects
Writes .claude/skills/astro-tailwind-cloudflare/SKILL.md
$ curl -s --create-dirs -o .claude/skills/astro-tailwind-cloudflare/SKILL.md https://stackitfast.com/rules/astro-tailwind-cloudflare/SKILL.mdRule files
Works with Cursor · Claude Code · Windsurf · AGY
Architecture notes
Architecture Overview
Standardized production guidelines for Astro SSR, React Client Islands, Tailwind CSS, and Cloudflare Edge Deployment.
Key Advantages
- Sub-100ms Global TTFB: Cloudflare edge distribution ensures instant response times worldwide.
- Zero Client-Side JS by Default: Astro ships zero JavaScript unless explicitly hydrated with React islands.
- Cost Efficiency: Serverless edge execution eliminates always-on server costs.
Frequently asked questions
Does this AGENTS.md work with Cursor, Claude Code, and Windsurf?
Yes. AGENTS.md is the open cross-tool standard read natively by Cursor, Claude Code, Windsurf, GitHub Copilot, and 30+ other agents. This page also ships a dedicated .mdc file for Cursor's modern .cursor/rules format if you prefer scoped, glob-based rule loading.
Why must Astro islands avoid fetching data with useEffect?
Astro server-renders .astro pages before any client JavaScript runs, so data is already available at render time. Fetching again inside a React island with useEffect duplicates the request, adds a loading flash, and defeats the zero-JS-by-default model — pass the data down as a serializable prop instead.
Can I use Node.js APIs in a Cloudflare Pages Function?
Only with the Node compatibility flag enabled in wrangler.toml (nodejs_compat). Without it, fs, child_process, and other Node core modules are unavailable at the edge — use Web Platform APIs (fetch, crypto, Request/Response) instead, which work identically in Cloudflare Workers.
Used in production
Explore all stackselekcsv
5Keeping parsing, compiled-validator generation, fuzzy column mapping and bitmap error tracking in one dependency-free core package lets every UI framework reuse identical import logic instead of six separate implementations.
OpenSEO
Running on Cloudflare Workers with D1, Workflows and Durable Objects makes it free-tier friendly to self-host and to scale when hosted. Supporting both D1 and Postgres through Drizzle, plus a Docker path, keeps the project portable beyond Cloudflare.
Tinycast
Staying native with zero third-party dependencies and delegating search to Spotlight and system services keeps memory use low. A small embedded JavaScriptCore runtime adds Raycast extension compatibility without pulling in Electron.
Astro
Vite as a first-class dependency and per-framework, per-host integration packages let Astro ship a fast static-first build while opting into server rendering or client hydration only where a project actually needs it.