Galaxy-inspired Micro-kernel Backend Framework
npx skills add https://github.com/gravito-framework/gravito --skill ts-jsdoc-expertInstall this skill with the CLI and start using the SKILL.md workflow in your workspace.
Gravito is a modular, high-performance TypeScript framework built for the modern web. It leverages the Galaxy Architectureβa unique approach inspired by celestial mechanics to manage lifecycle, extensions (Orbits), and domain-specific plugins (Satellites).
π Discover our Technical Highlights & Value Propositions
Version 1.0 is here! Build complex e-commerce systems by simply composing modules.
Gravito is built on the principle of "Rigorous Core, Flexible Perimeter." It strictly enforces DDD (Domain-Driven Design) and Clean Architecture internally while providing a minimalist experience for developers.
The 1.0 release introduces "MDD" (Manifest-Driven Development). You can now assemble a full-featured e-commerce site by simply declaring what you need.
package.json: Add your satellites.gravito.config.ts: Declare your features.entry-server.ts: One line to ignite the entire ecosystem.// gravito.config.ts
export default {
name: 'Flagship Store',
modules: [
'catalog', // Products & Variants
'membership', // Auth & User Profiles
'analytics', // Data & Charts
'support', // Real-time Chat
'cms' // News & Announcements
]
};
Gravito provides a rich set of official modules designed to work together seamlessly:
| Package | Module | Description |
|---|---|---|
@gravito/core |
PlanetCore | The micro-kernel with Hooks & IoC Container. |
@gravito/photon |
Photon | High-performance HTTP engine (Hono-based). |
@gravito/atlas |
Atlas | Advanced ORM with migrations & Active Record. |
@gravito/signal |
Signal | The central Event Bus for cross-module events. |
| Package | Domain | Feature |
|---|---|---|
@gravito/satellite-catalog |
Catalog | Product management, categories, and inventory. |
@gravito/satellite-membership |
Membership | Multi-guard Auth, Roles, and CRM. |
@gravito/satellite-commerce |
Order | Order processing and lifecycle. |
@gravito/satellite-analytics |
Analytics | Pluggable dashboard widgets & data resolvers. |
@gravito/satellite-support |
Support | Real-time WebSocket customer service. |
| Package | Component | Description |
|---|---|---|
@gravito/admin-shell-react |
Admin Shell | A pluggable React dashboard that auto-mounts modules. |
@gravito/support-chat-widget |
Chat Widget | A drop-in client widget for customer support. |
@gravito/prism |
Prism | Edge-optimized View Engine & Image Optimization. |
# In your monorepo or project
bun add @gravito/core @gravito/photon @gravito/monolith
For a full-stack integrated example, check out:
Learn by doing with our comprehensive examples:
| Example | Description | Key Concepts |
|---|---|---|
| Atlas Site | ORM showcase with SQLite, Redis & MongoDB | Database Models, Migrations, Query Builder, Vue 3 Frontend |
| Commerce Fullstack | Complete e-commerce platform | Domain Satellites, Event Bus, Order Processing, CMS |
| Blog MVC | Classic MVC blog application | RESTful API, Template Rendering, Authentication |
| Event Registration | Event booking & ticketing system | Clean Architecture, DDD, Event-Driven Design |
| Flash Sale | High-concurrency sales platform | Real-time Updates, Inventory Management, WebSocket |
| E-Commerce MVC | Full-featured e-shop | Catalog, Cart, Payment Integration, Lifecycle Events |
Quick start an example:
cd examples/{example-name}
bun install
bun run dev # Start development server
bun run build # Production build
Gravito is optimized for Bun runtime with native APIs that deliver 27-46% framework-level performance improvement:
Bun.file().text(), Bun.file().json(), and Bun.write() APIsπ See detailed optimization analysis (Phase 1-4 complete, Phase 5 Audit ongoing)
(ηΉι«δΈζθͺͺζε·²ζ΄εθ³ε樑η΅ζδ»Άθ ζ΄εζε)