JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q50977F
  • License Apache-2.0

Full-stack development platform uniting microservices and microfrontends. Build complete applications with Rust (Actix-Web, Warp, Rocket, Axum), Python (FastAPI, Django, Flask) and Node.js backends alongside React, Vue, Svelte frontends - all managed through one powerful CLI

Package Exports

  • @re-shell/cli
  • @re-shell/cli/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@re-shell/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Re-Shell CLI v0.17.0

Full-Stack Development Platform - Microservices & Microfrontends United

The most comprehensive and powerful command-line interface for building complete full-stack applications with distributed microservices and microfrontend architectures. Re-Shell unites backend and frontend development under a single CLI, providing enterprise-grade reliability, seamless integration, and exceptional developer experience.

Version License Build Status Coverage Downloads

๐Ÿš€ Platform Overview

Re-Shell CLI is a comprehensive full-stack development platform that revolutionizes how teams build modern distributed applications. By uniting microservices and microfrontends under a single powerful CLI, it enables developers to create, integrate, and deploy complete applications with unprecedented ease.

Key Capabilities

  • ๐ŸŽฏ Full-Stack Unity: Seamless integration between frontend microfrontends and backend microservices
  • ๐Ÿ—๏ธ Microservices Excellence: Production-ready templates for Rust (Actix-Web, Warp, Rocket, Axum), Python (FastAPI, Django, Flask) and Node.js (Express, NestJS)
  • ๐ŸŽจ Microfrontend Architecture: Module Federation with React, Vue, Svelte, and Angular support
  • ๐Ÿ”„ Smart Code Generation: API-first development with automatic type generation and SDK creation
  • ๐Ÿ“Š Complete Observability: Built-in monitoring, tracing, and logging across the entire stack
  • ๐Ÿ›ก๏ธ Enterprise Security: JWT authentication, OAuth2, API gateways, and compliance features
  • โ˜๏ธ Production Ready: Docker orchestration, Kubernetes manifests, and cloud provider configs

๐Ÿ†• What's New in v0.17.0

  • ๐Ÿฆ€ Complete Rust Ecosystem: Four production-ready Rust templates - Actix-Web, Warp, Rocket, and Axum
  • โšก High-Performance Backends: Type-safe, async Rust microservices with zero-cost abstractions
  • ๐Ÿงฉ Functional Programming: Warp template with composable filters and functional patterns
  • ๐Ÿ›ก๏ธ Compile-Time Safety: Rocket template with type-safe routing and compile-time verification
  • ๐Ÿ—๏ธ Modern Architecture: Axum template with tower middleware and advanced async patterns
  • ๐Ÿ”„ Universal Features: SQLx, Tokio, Serde, and error handling across all Rust templates
  • Full-Stack Unity: Seamlessly create and manage frontend, backend (Rust/Python/Node.js) from one CLI

๐Ÿ“‹ Table of Contents

๐Ÿš€ Quick Start

Installation

# Install globally using npm
npm install -g @re-shell/cli

# Using yarn
yarn global add @re-shell/cli

# Using pnpm
pnpm add -g @re-shell/cli

# Verify installation
re-shell --version

Create Your First Full-Stack Application

# Initialize a new full-stack project
re-shell create my-app --type full-stack
cd my-app

# Frontend: Add microfrontends
re-shell add dashboard --framework react-ts --port 5173
re-shell add admin-panel --framework vue-ts --port 5174

# Backend: Add microservices
re-shell generate backend api-service --language python --framework fastapi --port 8001
re-shell generate backend auth-service --framework express --port 8002

# Start everything with Docker orchestration
docker-compose up

# Or start individually for development
re-shell dev --all

How Re-Shell Works

1. Project Structure

Re-Shell creates a monorepo structure optimized for full-stack development:

my-app/
โ”œโ”€โ”€ apps/                  # Microfrontend applications
โ”‚   โ”œโ”€โ”€ dashboard/         # React dashboard
โ”‚   โ””โ”€โ”€ admin-panel/       # Vue.js admin panel
โ”œโ”€โ”€ services/              # Backend microservices
โ”‚   โ”œโ”€โ”€ api-service/       # Python FastAPI service
โ”‚   โ””โ”€โ”€ auth-service/      # Node.js Express service
โ”œโ”€โ”€ packages/              # Shared libraries
โ”‚   โ”œโ”€โ”€ ui/                # Shared UI components
โ”‚   โ”œโ”€โ”€ types/             # Shared TypeScript types
โ”‚   โ””โ”€โ”€ sdk/               # Auto-generated API SDKs
โ”œโ”€โ”€ docker-compose.yml     # Local development orchestration
โ””โ”€โ”€ re-shell.config.yaml   # Project configuration

2. Microfrontend Generation

When you run re-shell add dashboard --framework react-ts, the CLI:

  • Creates a complete React application with TypeScript
  • Configures Module Federation for runtime integration
  • Sets up a development server with hot reload
  • Implements microfrontend patterns (mount/unmount, event bus)
  • Generates production-ready build configurations
  • Includes Docker support for containerization

3. Microservice Generation

When you run re-shell generate backend api-service --language python --framework fastapi, the CLI:

  • Creates a complete FastAPI project structure
  • Includes database models and migrations
  • Sets up API documentation (OpenAPI/Swagger)
  • Configures testing with pytest
  • Implements authentication and middleware
  • Generates Docker configuration
  • Includes hot-reload for development

Launch Development Environment

# Start all services in development mode
re-shell dev --all

# Start specific services
re-shell dev user-service payment-service

# View service health dashboard
re-shell doctor --interactive

๐Ÿ—๏ธ Architecture

Re-Shell CLI implements a modern distributed architecture pattern that combines microservices backends with microfrontend presentation layers, providing maximum flexibility and scalability.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                     Re-Shell Platform                           โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  ๐ŸŽฏ Microfrontend Layer                                         โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                โ”‚
โ”‚  โ”‚   React     โ”‚ โ”‚    Vue.js   โ”‚ โ”‚   Svelte    โ”‚                โ”‚
โ”‚  โ”‚ Dashboard   โ”‚ โ”‚  Catalog    โ”‚ โ”‚  Analytics  โ”‚                โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                โ”‚
โ”‚         โ”‚               โ”‚               โ”‚                       โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚  โ”‚              Shell Application                          โ”‚    โ”‚
โ”‚  โ”‚           (Module Federation)                           โ”‚    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  ๐Ÿ”— API Gateway & Service Mesh                                  โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚  โ”‚  Load Balancer โ”‚ Auth โ”‚ Rate Limit โ”‚ Circuit Breaker    โ”‚    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  ๐Ÿ—๏ธ Microservices Layer                                         โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                โ”‚
โ”‚  โ”‚  Node.js    โ”‚ โ”‚   Python    โ”‚ โ”‚    Rust     โ”‚                โ”‚
โ”‚  โ”‚ User Serviceโ”‚ โ”‚Payment API  โ”‚ โ”‚Notification โ”‚                โ”‚
โ”‚  โ”‚ (Express)   โ”‚ โ”‚ (FastAPI)   โ”‚ โ”‚  (Actix)    โ”‚                โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  ๐Ÿ’พ Data Layer                                                  โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                โ”‚
โ”‚  โ”‚ PostgreSQL  โ”‚ โ”‚   MongoDB   โ”‚ โ”‚    Redis    โ”‚                โ”‚
โ”‚  โ”‚   Users     โ”‚ โ”‚  Analytics  โ”‚ โ”‚   Cache     โ”‚                โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Architecture Principles

  • ๐Ÿ”Œ Polyglot Persistence: Choose the right database for each service
  • ๐ŸŒ Language Agnostic: Use the best language for each domain
  • ๐Ÿ“ฆ Container First: Docker and Kubernetes native
  • ๐Ÿ”„ Event Driven: Asynchronous communication patterns
  • ๐Ÿ›ก๏ธ Security by Design: Zero-trust architecture implementation
  • ๐Ÿ“Š Observability: Comprehensive monitoring and tracing

๐Ÿ”ง Microservices Templates

Node.js Ecosystem

Express.js Template

re-shell create api-service --template express-ts

Features: Middleware composition, JWT auth, health checks, Docker ready Use Cases: REST APIs, traditional web services, rapid prototyping

Fastify Template

re-shell create high-perf-api --template fastify-ts

Features: Schema validation, plugin architecture, high performance Use Cases: High-throughput APIs, real-time services, performance-critical applications

NestJS Template

re-shell create enterprise-api --template nestjs-ts

Features: Dependency injection, decorators, enterprise architecture Use Cases: Large-scale applications, complex business logic, team collaboration

Koa.js Template

re-shell create modern-api --template koa-ts

Features: Modern async/await, middleware composition, lightweight Use Cases: Modern APIs, middleware-heavy applications, clean architecture

Python Ecosystem โœ… Complete

FastAPI Template

re-shell create python-api --template fastapi

Features: Automatic OpenAPI, type hints, async support, dependency injection, WebSocket support, comprehensive testing Use Cases: ML APIs, data processing, high-performance APIs, real-time services Testing: pytest-asyncio, TestClient, AsyncClient, dependency overrides, WebSocket testing

Django Template

re-shell create web-service --template django

Features: Django REST Framework, admin interface, ORM, custom management commands, comprehensive testing Use Cases: Enterprise web applications, content management, admin dashboards Testing: Django test framework, DRF testing, model testing, management command testing

Flask Template

re-shell create lightweight-api --template flask

Features: Blueprint architecture, SQLAlchemy integration, CLI commands, comprehensive testing Use Cases: Lightweight APIs, microservices, rapid prototyping Testing: Flask testing client, app contexts, blueprint testing, CLI testing

Tornado Template

re-shell create async-service --template tornado

Features: High-performance async, WebSocket support, non-blocking I/O, comprehensive testing Use Cases: Real-time applications, WebSocket services, high-concurrency systems Testing: AsyncHTTPTestCase, WebSocket testing, performance testing

Sanic Template

re-shell create ultra-fast-api --template sanic

Features: Ultra-fast async framework, blueprint architecture, middleware system, comprehensive testing Use Cases: High-performance APIs, async microservices, speed-critical applications Testing: Sanic TestClient, async testing, middleware testing, rate limiting tests

๐Ÿงช Python Testing Excellence

All Python templates include enterprise-grade testing infrastructure:

Comprehensive pytest Configuration

  • pytest-asyncio: Full async testing support with event loop management
  • pytest-cov: 85% coverage threshold with HTML, XML, JSON reports
  • pytest-xdist: Parallel test execution with worksteal distribution
  • pytest-benchmark: Performance regression testing and monitoring

Framework-Specific Testing

  • FastAPI: TestClient, AsyncClient, dependency injection testing, WebSocket testing
  • Django: Model testing, DRF testing, admin testing, management command testing
  • Flask: Blueprint testing, app context testing, CLI testing, template testing
  • Tornado: AsyncHTTPTestCase, WebSocket testing, IOLoop testing, performance testing
  • Sanic: Async testing, middleware testing, rate limiting testing, security testing

Test Utilities & Fixtures

  • Authentication: JWT token generation, user fixtures, permission testing
  • Database: Transaction rollback, data seeding, cleanup utilities
  • HTTP: Status assertion, JSON validation, header checking, content validation
  • Files: Upload testing, download testing, temporary file management
  • Performance: Memory monitoring, execution time tracking, benchmark utilities

Advanced Testing Features

  • Test Markers: unit, integration, e2e, performance, security categorization
  • Mock Services: Redis, database, external API mocking with realistic behavior
  • Data Generation: Factory patterns, fake data generation, random test data
  • Error Scenarios: Exception testing, validation error testing, edge case coverage
  • Async Testing: Wait conditions, eventual assertions, retry mechanisms

๐ŸŽฏ Modern Python Type System

All templates include comprehensive type hints with Python 3.11+ features:

Advanced Typing Features

  • Self: Self-referential type annotations for method chaining
  • Literal: Exact value type specifications for enhanced safety
  • Protocol: Duck typing with structural subtyping
  • TypeGuard: Runtime type checking with static analysis support
  • Generic: Type variable support for reusable components

Framework-Specific Types

  • FastAPI: Pydantic models, dependency injection types, route handler types
  • Django: Model types, QuerySet types, admin types, form types
  • Flask: Blueprint types, request/response types, view function types
  • Tornado: Handler types, WebSocket types, async types
  • Sanic: Request/response types, middleware types, blueprint types

Tool Configuration

  • MyPy: Strict type checking with framework-specific overrides
  • Pyright: Advanced type analysis with error reporting
  • Ruff: Fast linting with type-aware rules and automatic fixes

Additional Languages (Roadmap)

  • โ˜• Java: Spring Boot, Quarkus, Micronaut
  • ๐Ÿ”ท .NET: ASP.NET Core, Minimal APIs
  • ๐Ÿน Go: Gin, Echo, Fiber
  • ๐Ÿ’Ž Ruby: Rails API, Sinatra
  • ๐Ÿ˜ PHP: Laravel, Symfony

๐ŸŽฏ Microfrontend Templates

Re-Shell CLI provides enterprise-grade microfrontend architecture using Webpack Module Federation, enabling true microfrontend patterns with dynamic loading, independent deployment, and runtime integration.

๐Ÿ—๏ธ Module Federation Architecture

# Create complete microfrontend platform
re-shell create my-platform --type microfrontend --architecture module-federation

# Generate shell application (host)
re-shell create shell-app --template federation-shell --port 3100

# Generate microfrontend applications (remotes)
re-shell create react-dashboard --template react-mf --port 3000
re-shell create vue-catalog --template vue-mf --port 3001
re-shell create svelte-analytics --template svelte-mf --port 3002

โš›๏ธ React Microfrontend

re-shell create user-dashboard --template react-mf --port 3000

Features:

  • React 18 with Hooks and Suspense
  • Module Federation with dynamic imports
  • Error boundaries for isolated failures
  • Hot module replacement
  • TypeScript support
  • Real-time backend integration

Architecture:

  • Exposes: ./App component for shell consumption
  • Shared: React runtime with singleton pattern
  • Independent: Can run standalone or federated

๐ŸŸข Vue.js Microfrontend

re-shell create product-catalog --template vue-mf --port 3001

Features:

  • Vue 3 Composition API
  • Reactive state management
  • Module Federation integration
  • Component-based architecture
  • TypeScript support
  • Live data binding

Architecture:

  • Exposes: ./App Vue component
  • Shared: Vue runtime optimization
  • Independent: Standalone development capability

๐Ÿ”ฅ Svelte Microfrontend

re-shell create analytics-widget --template svelte-mf --port 3002

Features:

  • Compile-time optimization
  • Minimal runtime overhead
  • Reactive programming model
  • Module Federation support
  • Performance-critical rendering

Architecture:

  • Exposes: Compiled Svelte components
  • Shared: Minimal shared dependencies
  • Independent: Ultra-fast standalone execution

๐Ÿ…ฐ๏ธ Angular Microfrontend (Enterprise Ready)

re-shell create enterprise-app --template angular-mf --port 3003

Features:

  • Angular 17+ with standalone components
  • Dependency injection at microfrontend level
  • Module Federation with Angular Elements
  • Enterprise-grade architecture
  • Comprehensive testing framework

Architecture:

  • Exposes: Angular Elements for federation
  • Shared: Angular runtime with zone isolation
  • Independent: Full Angular CLI compatibility

๐Ÿ  Shell Application (Host)

The shell application orchestrates all microfrontends:

re-shell create platform-shell --template federation-shell

Features:

  • Dynamic Loading: Load microfrontends on-demand
  • Error Boundaries: Isolated failure handling per microfrontend
  • Unified Routing: Seamless navigation between microfrontends
  • Service Health: Real-time monitoring of all services
  • Loading States: Smooth UX during microfrontend loading
  • Fallback UI: Graceful degradation when microfrontends fail

๐Ÿ”ง Development Experience

# Start complete microfrontend platform
re-shell dev --microfrontends --all

# Development with hot reload
re-shell dev --mf-mode development --watch

# Production build with optimization
re-shell build --microfrontends --federation --optimize

Development Features:

  • Independent Development: Teams work on separate microfrontends
  • Hot Module Replacement: Live updates without page refresh
  • Cross-Framework: Mix React, Vue, Svelte, Angular seamlessly
  • Shared Dependencies: Optimized bundle sizes
  • Runtime Integration: No build-time coupling

๐Ÿ“Š Best Practices Implementation

  • ๐Ÿ”’ Isolation: Each microfrontend is completely independent
  • ๐Ÿ“ฆ Shared Dependencies: Optimized bundle management
  • ๐Ÿ”„ Communication: Event-driven inter-app communication
  • ๐Ÿ›ก๏ธ Error Handling: Graceful degradation and fallbacks
  • ๐ŸŽฏ Performance: Lazy loading and code splitting
  • ๐Ÿงช Testing: Independent testing strategies per microfrontend

๐ŸŽ›๏ธ Core Features

๐Ÿ—๏ธ Project Generation

# Create workspace
re-shell init my-platform --type hybrid

# Generate microservice
re-shell create user-service --template nestjs-ts --database postgresql

# Generate microfrontend
re-shell create user-ui --template react-ts --route /users --port 4001

# Generate full-stack feature
re-shell generate feature user-management --include backend,frontend,database

๐Ÿ“Š Health Diagnostics & Monitoring

# Comprehensive health check
re-shell doctor

# Interactive dashboard
re-shell doctor --interactive

# Service-specific diagnostics
re-shell doctor user-service --detailed

# Performance analysis
re-shell analyze --performance --services all

๐Ÿ”„ Development Workflow

# Start development environment
re-shell dev --all --watch

# Hot reload with dependency tracking
re-shell dev --hot-reload --cascade-restart

# Debug mode with detailed logging
re-shell dev --debug --log-level verbose

# Test all services
re-shell test --all --coverage

๐Ÿš€ Build & Deployment

# Build all services
re-shell build --all --optimize

# Docker containerization
re-shell build --docker --multi-stage

# Kubernetes deployment
re-shell deploy --target k8s --namespace production

# CI/CD pipeline generation
re-shell cicd generate --provider github-actions

๐ŸŽจ Advanced Features

๐Ÿ”Œ Plugin Ecosystem

# Install plugins
re-shell plugin install @re-shell/monitoring
re-shell plugin install @re-shell/security-scanner

# List available plugins
re-shell plugin marketplace

# Create custom plugin
re-shell plugin create my-custom-plugin

๐Ÿ“ˆ Bundle Analysis & Optimization

# Analyze bundle sizes
re-shell analyze bundle --interactive

# Performance insights
re-shell analyze performance --report

# Dependency analysis
re-shell analyze deps --security-scan

๐Ÿ”„ Workspace Management

# Workspace health check
re-shell workspace doctor

# Dependency graph visualization
re-shell workspace graph --interactive

# Workspace migration
re-shell workspace migrate --from 0.8.0 --to 0.9.0

๐Ÿ› ๏ธ Code Generation

# Generate API endpoints
re-shell generate api users --crud --auth

# Generate database migrations
re-shell generate migration add-user-roles

# Generate test suites
re-shell generate tests --coverage 90

โ˜๏ธ DevOps & Deployment

๐Ÿณ Container Orchestration

# Docker Compose generation
re-shell docker compose --services all --networks custom

# Kubernetes manifests
re-shell k8s generate --helm-charts --monitoring

# Service mesh configuration
re-shell service-mesh setup --provider istio

๐Ÿ”„ CI/CD Pipeline Generation

# GitHub Actions
re-shell cicd generate --provider github-actions --deploy-to k8s

# GitLab CI
re-shell cicd generate --provider gitlab-ci --include-security-scan

# Jenkins Pipeline
re-shell cicd generate --provider jenkins --multi-stage

๐Ÿ“Š Monitoring & Observability

# Prometheus & Grafana setup
re-shell monitoring setup --provider prometheus --dashboards included

# Distributed tracing
re-shell tracing setup --provider jaeger

# Log aggregation
re-shell logging setup --provider elk-stack

๐Ÿข Enterprise Features

๐Ÿ›ก๏ธ Security & Compliance

  • Authentication: OAuth2, SAML, JWT, multi-factor authentication
  • Authorization: RBAC, ABAC, fine-grained permissions
  • Security Scanning: Dependency vulnerabilities, code analysis
  • Compliance: SOC2, GDPR, HIPAA ready templates

๐Ÿ“Š Analytics & Reporting

  • Performance Metrics: Real-time service performance monitoring
  • Business Intelligence: Custom dashboards and reporting
  • Usage Analytics: User behavior and system usage tracking
  • Cost Analysis: Resource utilization and cost optimization

๐Ÿ”ง Enterprise Integration

  • Service Discovery: Consul, Eureka, Kubernetes native
  • API Gateway: Kong, Ambassador, Istio integration
  • Message Queues: RabbitMQ, Apache Kafka, Redis Streams
  • Databases: PostgreSQL, MongoDB, Cassandra, Redis clusters

๐Ÿ“‹ CLI Commands Reference

Core Commands

Command Description Example
init Initialize workspace re-shell init my-platform
create Create service/frontend re-shell create api --template express-ts
dev Start development re-shell dev --all
build Build services re-shell build --optimize
test Run tests re-shell test --coverage
deploy Deploy to environment re-shell deploy --target production

Advanced Commands

Command Description Example
doctor Health diagnostics re-shell doctor --interactive
analyze Bundle/performance analysis re-shell analyze --performance
generate Code generation re-shell generate api users
migrate Migration tools re-shell migrate --from 0.8.0
plugin Plugin management re-shell plugin install monitoring
workspace Workspace operations re-shell workspace graph

DevOps Commands

Command Description Example
cicd CI/CD generation re-shell cicd generate --provider github
docker Container operations re-shell docker compose
k8s Kubernetes operations re-shell k8s generate --helm
monitoring Setup monitoring re-shell monitoring setup
backup Backup operations re-shell backup create --full

โš™๏ธ Configuration

Global Configuration

# ~/.re-shell/config.yaml
version: "1.0"
defaults:
  packageManager: "pnpm"
  framework: "typescript"
  containerRuntime: "docker"
  kubernetesProvider: "local"
templates:
  backend:
    default: "express-ts"
    security: "strict"
  frontend:
    default: "react-ts"
    bundler: "vite"
plugins:
  autoUpdate: true
  marketplace: "https://marketplace.re-shell.dev"

Project Configuration

# .re-shell/config.yaml
name: "my-platform"
version: "0.9.0"
type: "hybrid" # microservices | microfrontend | hybrid
architecture:
  gateway: "nginx"
  serviceMesh: "istio"
  monitoring: "prometheus"
services:
  - name: "user-service"
    type: "backend"
    template: "express-ts"
    port: 3001
  - name: "user-dashboard"
    type: "frontend"
    template: "react-ts"
    port: 4001
    route: "/dashboard"

๐ŸŽฏ Examples

E-Commerce Platform

# Initialize e-commerce platform
re-shell init ecommerce-platform --template ecommerce

# Backend services
re-shell create user-service --template nestjs-ts --database postgresql
re-shell create product-service --template fastapi --database mongodb
re-shell create order-service --template express-ts --database postgresql
re-shell create payment-service --template spring-boot --database postgresql

# Frontend applications
re-shell create admin-dashboard --template react-ts --route /admin
re-shell create customer-portal --template vue-ts --route /shop
re-shell create mobile-app --template react-native

# Infrastructure
re-shell cicd generate --provider github-actions
re-shell k8s generate --include monitoring,logging

Financial Services Platform

# Initialize fintech platform
re-shell init fintech-platform --template financial-services

# Core services
re-shell create account-service --template spring-boot --security high
re-shell create transaction-service --template rust-actix --performance optimized
re-shell create reporting-service --template django --analytics enabled
re-shell create notification-service --template go-gin --realtime

# Compliance and security
re-shell security scan --all-services
re-shell compliance check --standard pci-dss
re-shell audit generate --quarterly-report

๐Ÿ“Š Best Practices

๐Ÿ—๏ธ Architecture Guidelines

  1. Service Boundaries: Define clear service boundaries based on business domains
  2. Data Consistency: Use event sourcing for distributed data consistency
  3. API Design: Follow REST and GraphQL best practices
  4. Security: Implement zero-trust security model
  5. Monitoring: Set up comprehensive observability from day one

๐Ÿ”„ Development Workflow

  1. Feature Development: Use feature branches with automated testing
  2. Code Review: Implement mandatory code reviews with automated checks
  3. Testing Strategy: Follow testing pyramid (unit โ†’ integration โ†’ e2e)
  4. Deployment: Use blue-green or canary deployment strategies
  5. Rollback: Always have automated rollback capabilities

๐Ÿ“Š Performance Optimization

  1. Caching Strategy: Implement multi-level caching (CDN โ†’ Redis โ†’ Application)
  2. Database Design: Use appropriate database patterns for each service
  3. Load Balancing: Implement intelligent load balancing with health checks
  4. Resource Management: Monitor and optimize resource utilization
  5. Scaling: Design for horizontal scaling from the beginning

๐Ÿค Contributing

We welcome contributions from the community! Please see our Contributing Guide for details.

Development Setup

# Clone the repository
git clone https://github.com/re-shell/cli.git
cd cli

# Install dependencies
pnpm install

# Build the project
pnpm build

# Run tests
pnpm test

# Start development
pnpm dev

Contribution Areas

  • ๐Ÿ”ง Template Development: Create new microservice/microfrontend templates
  • ๐Ÿ› Bug Fixes: Help identify and fix issues
  • ๐Ÿ“š Documentation: Improve documentation and examples
  • ๐ŸŽจ Features: Implement new CLI features and capabilities
  • ๐Ÿงช Testing: Improve test coverage and quality
  • ๐ŸŒ Internationalization: Add support for multiple languages

๐Ÿ’ฌ Support

Community Support

Documentation

Enterprise Support

For enterprise support, consulting, and custom development:

๐Ÿ“„ License

MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Open Source Community: For the amazing tools and libraries that make this possible
  • Contributors: All the developers who have contributed to this project
  • Users: The community of developers using Re-Shell CLI in production

๐Ÿ“„ License

Re-Shell CLI is open source software released under the MIT License. This means you can:

  • โœ… Use it commercially
  • โœ… Modify it for your needs
  • โœ… Distribute it freely
  • โœ… Use it in private projects
  • โœ… Sublicense it

See the LICENSE file for the full license text.


Website โ€ข Documentation โ€ข Examples โ€ข Community

Made with โค๏ธ by the Re-Shell Team | Open Source MIT License