> **Singularity** Project Code: `gravito-official-site`
gravito-official-siteWelcome to the official website repository for Gravito - The micro-kernel framework for the next generation of backend applications.
This project serves as both the production-ready official site and the flagship reference implementation of the Gravito "Singularity" architecture.
---
This website demonstrates the full power of the Gravito ecosystem, specifically the Micro-Monolith pattern:
@gravito/core, leveraging the lifecycle hook system for modularity.@gravito/photon as the high-performance HTTP layer running on Bun.docs/ directory..md links into clean, routable web URLs.@gravito/luminosity-adapter-photon.src/config/seo.ts).GravitoImage component)./en) and Chinese (/zh) locales.---
``bash`
examples/official-site/
āāā src/
ā āāā bootstrap.ts # App wiring (Core + Modules + Middleware)
ā āāā index.ts # Entry point
ā āāā config/ # SEO, App configurations
ā āāā controllers/ # Backend logic (Home, Docs, API)
ā āāā services/ # Business logic (Markdown processing)
ā āāā routes/ # Route definitions
ā āāā client/ # Frontend (React)
ā āāā pages/ # Inertia Page Components
ā āāā components/ # Shared UI Components
ā āāā app.tsx # Client entry point
āāā static/ # Public assets (Images, Manifest)
āāā vite.config.ts # Build configuration
āāā build-static.ts # SSG Build Script
---
`bash1. Install dependencies (from root monorepo or project dir)
bun install
Visit
http://localhost:3000 to see the site.$3
`bash
Build client-side assets
bun run build:clientStart the production server
bun run start
`$3
This project also supports exporting to a static site (e.g. for GitHub Pages):
`bash
bun run build:static
`---
šØ Asset Optimization
$3
Gravito uses Pure SVG Paths for technology logos (Bun, Photon, TS) to ensure pixel-perfect rendering at any scale without external network requests.
See TechIcon component in src/client/pages/Home.tsx.$3
Images are automatically served in responsive WebP formats:
- hero-768w.webp
- hero-1280w.webp
- hero-2560w.webp`---
MIT Ā© Carl Lee