gravito-framework/gravito

Galaxy-inspired Micro-kernel Backend Framework

0 stars0 forksUpdated Jan 26, 2026
npx skills add gravito-framework/gravito

README

Gravito Framework 🌌

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).

Version 1.0 is here! Build complex e-commerce systems by simply composing modules.


🌟 The Galaxy Architecture

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.

  • Micro-Kernel (PlanetCore): A self-developed, ultra-lightweight engine that manages hooks and lifecycle events.
  • Orbits (Infrastructure): Strategic extensions (Database, Auth, Messaging) that "orbit" the core, providing essential resources.
  • Satellites (Domain Plugins): Self-contained business units (Catalog, Cart, Payment) that implement specific domains using Clean Architecture.

πŸš€ E-Commerce 1.0: Manifest-Driven Assembly

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.

The "Three-File" Rule

  1. package.json: Add your satellites.
  2. gravito.config.ts: Declare your features.
  3. entry-server.ts: One line to ignite the entire ecosystem.

Example Configuration

// 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
  ]
};

πŸ“¦ Core Ecosystem

Gravito provides a rich set of official modules designed to work together seamlessly:

Foundation Layer

PackageModuleDescription
@gravito/corePlanetCoreThe micro-kernel with Hooks & IoC Container.
@gravito/photonPhotonHigh-performance HTTP engine (Hono-based).
@gravito/atlasAtlasAdvanced ORM with migrations & Active Record.
@gravito/signalSignalThe central Event Bus for cross-module events.

Domain Satellites (Business Logic)

PackageDomainFeature
@gravito/satellite-catalogCatalogProduct management, categories, and inventory.
@gravito/satellite-membershipMembershipMulti-guard Auth, Roles, and CRM.
@gravito/satellite-commerceOrderOrder processing and lifecycle.
@gravito/satellite-analyticsAnalyticsPluggable dashboard widgets & data resolvers.
@gravito/satellite-supportSupportReal-time WebSocket customer service.

Frontend & UI

PackageComponentDescription
@gravito/admin-shell-reactAdmin ShellA pluggable React dashboard that auto-mounts modules.
@gravito/support-chat-widgetChat WidgetA drop-in client widget for customer support.
@gravito/prismPrismEdge-optimized View Engine & Image Optimization.

πŸ› οΈ Getting Started

Installation

# In your monorepo or project
bun add @gravito/core @gravito/photon @gravito/monolith

Development

For a full-stack integrated example, check out:


🀝 Community & Support


(繁體中文θͺͺζ˜Žε·²ζ•΄εˆθ‡³ε„ζ¨‘η΅„ζ–‡δ»Άθˆ‡ ζ•΄εˆζŒ‡ε—)

Statistics

Stars0
Forks0
Open Issues1
CreatedDec 16, 2025