An enterprise-ready, zero-JS-by-default starter kit engineered for lightning-fast content sites, landing pages, and interactive web applications.
Features • Quick Start • Structure • Deployment • Maintainer
- 🚀 Astro 5 Core: Islands architecture providing zero client runtime overhead with sub-millisecond page loads.
- ⚛️ React 19 Integration: Drop-in interactive components with
@astrojs/reactonly where stateful interactivity is required (client:load,client:visible). - 🎨 Tailwind CSS Ready: Utility-first responsive styling configured out of the box with modern PostCSS & Vite pipelines.
- 🛡️ Strict TypeScript: End-to-end type safety for components, props, layouts, and page routing.
- 📱 Fully Responsive: Mobile-first layout foundations and SEO-friendly metadata structures.
/
├── public/ # Static public assets (favicons, images, robots.txt)
├── src/
│ ├── components/ # Reusable Astro & React Island components
│ ├── layouts/ # Master page layouts and SEO wrappers
│ │ └── Layout.astro
│ └── pages/ # File-system routing
│ └── index.astro
├── astro.config.mjs # Astro framework configuration
├── tailwind.config.mjs # Tailwind theme extensions
├── tsconfig.json # TypeScript compiler options
└── package.json # Dependencies and lifecycle scripts
git clone https://github.com/0xOpCode/astrotemplate.git my-astro-project
cd my-astro-project
# Install dependencies using pnpm (recommended), npm, or yarn
pnpm installpnpm devOpen your browser at http://localhost:4321 to view your site live with Instant HMR (Hot Module Replacement).
pnpm buildBuild output will be bundled into the ./dist/ directory, optimized for static edge deployment or SSR adapters.
| Command | Purpose |
|---|---|
pnpm dev |
Starts local development server with HMR |
pnpm build |
Compiles optimized static production assets to ./dist/ |
pnpm preview |
Serves local production build for pre-deployment inspection |
pnpm astro check |
Runs diagnostic type checking on all .astro and .ts files |
Deployable with zero configuration to any major cloud provider:
- Vercel:
npx vercel - Netlify:
npx netlify deploy - Cloudflare Pages: Connect repository in Cloudflare Dashboard and select
Astropreset.
Maintained with care by 0xOpCode.