Modern static site generator built with Astro 5, featuring component islands architecture and optimal performance.
- Astro 5 with latest static site generation capabilities
- TypeScript for type safety and better development experience
- Component Islands architecture for optimal performance
- Zero JavaScript by default - only loads JS when needed
- Built-in TypeScript checking with
@astrojs/check - Fast development server with hot module replacement
- Static site generation for optimal SEO and performance
- Multi-framework support (React, Vue, Svelte, etc.)
- Install dependencies:
yarn install- Start development server:
yarn dev- Build for production:
yarn build- Preview production build:
yarn previewsrc/
├── components/ # Astro components
│ └── Card.astro
├── layouts/ # Page layouts
│ └── Layout.astro
├── pages/ # File-based routing
│ └── index.astro
└── styles/ # Global styles
public/ # Static assets
├── favicon.svg
└── images/
| Command | Action |
|---|---|
yarn dev |
Start development server at localhost:4321 |
yarn build |
Build production site to ./dist/ |
yarn preview |
Preview production build locally |
yarn astro |
Run Astro CLI commands |
- Astro Components (
.astro) for static content - Framework Components for interactive elements
- Islands Architecture - only load JS when needed
- Static Generation by default
- Zero JavaScript unless explicitly needed
- Optimized images and assets
- CSS scoping for component isolation
- Semantic HTML structure
- Meta tags and Open Graph support
- Structured data for search engines
- Accessibility best practices
# Build for production
yarn build
# Deploy dist/ folder to any static host
# - Vercel, Netlify, GitHub Pages, etc.# Build Docker image
docker build -t frontend2 .
# Run container
docker run -p 4321:4321 frontend2- Frontend - React + Material-UI (port 3000)
- Frontend1 - React + Tailwind + DaisyUI (port 5173)
- Frontend3 - Astro 5 (port 4321)
- Frontend4 - Next.js 15 (port 3002)
MIT License - see LICENSE file for details.