JSPM

  • Created
  • Published
  • Downloads 70
  • Score
    100M100P100Q85280F
  • License MIT

World-class CLI for modern web development with enterprise-grade features: plugins, recipes, and DAG task engine

Package Exports

  • kubit-forge
  • kubit-forge/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 (kubit-forge) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Kubit Forge

A world-class, extensible CLI for modern web development with enterprise-grade features

Version License TypeScript Node Yarn

Kubit Forge is an open-source, production-ready CLI that empowers developers to build modern web applications with confidence. From zero-config project initialization to AI-powered diagnostics, Kubit Forge provides everything you need to develop, test, and deploy world-class applications.


📚 Documentation

📖 Documentation Index - Complete documentation hub

Quick Access

Getting Started:

Core Features:

Framework & Extensibility:

Advanced Features:


Table of Contents


Why Kubit Forge?

Built for Modern Development

  • Zero Configuration - Start building immediately with sensible defaults
  • TypeScript First - Full type safety and IntelliSense support
  • Lightning Fast - Powered by Vite for instant HMR and optimized builds
  • Extensible - Plugin and recipe systems for unlimited customization
  • Enterprise Ready - Advanced diagnostics and compliance tools

Developer Experience

  • AI-Powered Diagnostics - Intelligent issue detection and auto-fix
  • Predictive Analysis - Prevent problems before they happen
  • Package Manager Agnostic - Works with npm, yarn, and pnpm
  • Monorepo Support - First-class support for Turborepo, Nx, pnpm workspaces, and more

Features

Project Initialization & Scaffolding

📖 Full Documentation

Create production-ready projects in seconds:

# React + TypeScript
kubit-forge init react my-app

# Vanilla TypeScript
kubit-forge init vanilla my-app

What you get:

  • TypeScript configuration
  • Vite build setup
  • OxLint & ESLint with Kubit plugin
  • Testing infrastructure
  • Git initialization
  • Package manager detection

Template System

Bootstrap projects with pre-configured templates:

# List available templates
kubit-forge template:list

# Use a template
kubit-forge template:use react-ts-bernova my-app

Available Templates:

  • react-ts - React + TypeScript
  • react-ts-bernova - React + TypeScript + Bernova Design System
  • react-ts-storybook - React + TypeScript + Storybook
  • vanilla-ts - Vanilla TypeScript

Add Command - Feature Installation

📖 Full Documentation

Add features to existing projects with zero configuration:

# Add linting
kubit-forge add oxlint      # OxLint + Kubit rules via jsPlugins (recommended)
kubit-forge add eslint       # ESLint + Kubit plugin
kubit-forge add prettier

# Add testing
kubit-forge add vitest
kubit-forge add playwright
kubit-forge add testing-library

# Add styling
kubit-forge add bernova
kubit-forge add styled-components

# Add development tools
kubit-forge add storybook
kubit-forge add husky
kubit-forge add lint-staged
kubit-forge add commitlint
kubit-forge add changesets

# Add routing
kubit-forge add react-router

Linting

Kubit Forge supports both OxLint (Rust-based, fast) and ESLint, with automatic detection:

# The lint command auto-detects which linter to use:
# - .oxlintrc.json present → runs OxLint first, then ESLint if also configured
# - Only eslint.config.js   → runs ESLint
kubit-forge lint
kubit-forge lint --fix

OxLint integration uses jsPlugins to load all 10 Kubit rules natively — no ESLint required for those rules. When both are configured, OxLint handles the heavy lifting while ESLint covers rules OxLint doesn't support (Prettier, Perfectionist).

Development Commands

📖 Full Documentation

Streamlined development workflow:

# Start development server
kubit-forge dev

# Build for production
kubit-forge build

# Run tests
kubit-forge test

# Lint code (auto-detects OxLint or ESLint)
kubit-forge lint --fix

# Format code
kubit-forge format

# Type check
kubit-forge typecheck

# Run all checks
kubit-forge check

Quality & Diagnostics

📖 Full Documentation

# Show project information
kubit-forge info --detailed

# AI-powered diagnostics
kubit-forge doctor

# Auto-fix issues
kubit-forge doctor --fix

# Predictive analysis
kubit-forge doctor --predictive

Plugin System

📖 Full Documentation | Plugins vs Recipes Guide

Core CLI Philosophy

Kubit Forge core is intentionally lightweight and focused on essential commands. Advanced features are available as optional plugins that you install only when needed.

Extend Kubit Forge with powerful plugins:

Plugin Commands

# Search for plugins
kubit-forge plugin:search testing

# Install a plugin
kubit-forge plugin:install @kubit/plugin-analytics

# List installed plugins
kubit-forge plugin:list

# Verify plugin integrity
kubit-forge plugin:verify @kubit/plugin-analytics

Plugin Capabilities

  • Custom Commands - Add new CLI commands
  • Lifecycle Hooks - Hook into build, dev, and other events
  • Custom Generators - Add code generators
  • Configuration Extensions - Extend project configuration
  • Task Runners - Add custom task execution

Creating a Plugin

// my-plugin.ts
import { Plugin } from 'kubit-forge';

export default {
  name: 'my-plugin',
  version: '1.0.0',

  commands: {
    'my-command': async (args) => {
      console.log('Running my custom command!');
    },
  },

  hooks: {
    'build:before': async () => {
      console.log('Before build hook');
    },
  },
} satisfies Plugin;

Recipe System

📖 Full Documentation

Automate complex workflows with declarative recipes:

Recipe Commands

# List available recipes
kubit-forge recipe:list

# Run a recipe
kubit-forge recipe:run react-setup

# Add custom recipe
kubit-forge recipe:add ./my-recipe.toml

Built-in Recipes

  • react-setup - Complete React project setup
  • testing-setup - Full testing infrastructure
  • ci-cd-setup - CI/CD pipeline configuration

Recipe Features

  • DAG-based Execution - Parallel task execution with dependency resolution
  • Declarative Syntax - TOML-based configuration
  • Composable - Combine multiple recipes
  • Idempotent - Safe to run multiple times

Example Recipe

[recipe]
name = "react-setup"
description = "Complete React project setup"
version = "1.0.0"

[[tasks]]
id = "install-deps"
command = "add"
args = ["react", "react-dom"]

[[tasks]]
id = "add-eslint"
command = "add"
args = ["eslint"]
depends_on = ["install-deps"]

[[tasks]]
id = "add-prettier"
command = "add"
args = ["prettier"]
depends_on = ["install-deps"]

[[tasks]]
id = "add-testing"
command = "add"
args = ["vitest"]
depends_on = ["install-deps"]

Monorepo Support

Full Documentation

First-class support for monorepo tools:

Supported Tools

  • Yarn workspaces
  • pnpm workspaces
  • npm workspaces
  • Turborepo
  • Nx
  • Lerna

Monorepo Commands

# Initialize monorepo
kubit-forge monorepo:init --tool yarn

# Add package to monorepo
kubit-forge monorepo:add my-package

# List all packages
kubit-forge monorepo:list

# Show monorepo information
kubit-forge monorepo:info

Features

  • Workspace Detection - Automatic detection of monorepo structure
  • Dependency Management - Smart dependency resolution
  • Task Orchestration - Parallel task execution across packages
  • Selective Builds - Build only affected packages

Doctor Command

📖 Full Documentation

AI-powered diagnostics with auto-fix capabilities:

# Run diagnostics
kubit-forge doctor

# Auto-fix issues
kubit-forge doctor --fix

# Predictive analysis
kubit-forge doctor --predictive

Doctor Capabilities

  • Intelligent Issue Detection - AI-powered problem identification
  • Auto-fix - Automatic issue resolution
  • Predictive Analysis - Prevent issues before they happen
  • Dependency Health Checks - Verify dependency integrity
  • Configuration Validation - Validate project configuration
  • Security Vulnerability Detection - Scan for vulnerabilities
  • Performance Analysis - Identify performance bottlenecks
  • IDE Integration - Support for VS Code and other IDEs
  • Personalized Recommendations - Context-aware suggestions

Example Output

Running diagnostics...

✓ TypeScript configuration is valid
✓ Dependencies are up to date
⚠ ESLint configuration has warnings
  → Auto-fix available: kubit-forge doctor --fix

✓ No security vulnerabilities found
⚠ Performance: Large bundle size detected
  → Recommendation: Enable code splitting

Predictive Analysis:
  → Potential issue: Deprecated dependency detected
  → Action: Update to @package/new-version

Smart Dependency Management

📖 Full Documentation

Intelligent dependency analysis and optimization:

# Visualize dependency tree
kubit-forge deps:analyze

# Explain why a package is installed
kubit-forge deps:why <package>

# Find and eliminate duplicates
kubit-forge deps:dedupe

# Smart update suggestions
kubit-forge deps:update

# Discover better alternatives
kubit-forge deps:alternatives <package>

# Export dependency report
kubit-forge deps:export --format markdown

Dependency Management Features

  • Visual Dependency Tree - Interactive tree visualization with filtering
  • Package Origin Analysis - Understand dependency chains
  • Smart Deduplication - Eliminate redundant packages automatically
  • Intelligent Updates - Safety analysis with breaking change detection
  • Alternative Suggestions - Discover lighter, modern replacements
  • Security Focus - Highlight vulnerabilities and critical updates
  • Export Reports - JSON, Markdown, CSV formats for documentation
  • Bundle Optimization - Reduce package count and bundle size

Example Workflow

# 1. Analyze current state
kubit-forge deps:analyze --depth 3

# 2. Check for duplicates
kubit-forge deps:dedupe --dry-run

# 3. Find better alternatives
kubit-forge deps:alternatives moment

# 4. Check for updates
kubit-forge deps:update --security

# 5. Export report
kubit-forge deps:export --format markdown

Learn more: See DEPENDENCY_MANAGEMENT.md for complete documentation.


Migrations & Upgrades

📖 Full Documentation

Safe upgrades and automated refactoring:

# Upgrade dependencies
kubit-forge upgrade

# Run migration
kubit-forge migrate <codename>

# List available migrations
kubit-forge migrate:list

Migration Features

  • Automated Refactoring - Safe code transformations
  • Breaking Change Detection - Identify breaking changes
  • Rollback Support - Undo migrations if needed
  • Dry Run - Preview changes before applying
  • Custom Migrations - Create organization-specific migrations

Code Generation

📖 Full Documentation

Generate code scaffolds with best practices:

# Generate component
kubit-forge generate component Button

# Generate page
kubit-forge generate page Home

# Generate hook
kubit-forge generate hook useAuth

# Generate service
kubit-forge generate service api

# Generate utility
kubit-forge generate util formatDate

# Generate test
kubit-forge generate test Button

Generator Features

  • TypeScript Support - Full type safety
  • Best Practices - Follow industry standards
  • Customizable Templates - Override default templates
  • Consistent Structure - Maintain project consistency

Configuration

📖 Full Documentation

Configure Kubit Forge with kubit.config.toml:

[project]
name = "my-app"
version = "1.0.0"
description = "My awesome app"

[build]
outDir = "dist"
sourcemap = true
minify = true

[dev]
port = 3000
open = true
host = "localhost"

[quality]
lint = true
format = true
typecheck = true
test = true

[plugins]
enabled = ["@kubit/plugin-analytics", "@kubit/plugin-sentry"]

[paths]
src = "./src"
public = "./public"
dist = "./dist"

Environment Variables

📖 Full Documentation

Manage environment variables securely:

# Initialize .env file
kubit-forge env init

# Validate environment variables
kubit-forge env validate

# Show environment info
kubit-forge env info

Business Integration

Extend Kubit Forge for your organization:

Enterprise Features

  • Custom Command Registration - Add organization-specific commands
  • Private Plugin Registry - Host internal plugins
  • Organization Templates - Company-specific project templates
  • Compliance Tools - Custom compliance checks
  • Custom Recipes - Organization-specific workflows

Example: Custom Command

// .kubit/commands/deploy.ts
export default {
  name: 'deploy',
  description: 'Deploy to company infrastructure',

  async execute(args) {
    // Custom deployment logic
    console.log('Deploying to production...');
  },
};

Installation

Prerequisites

  • Node.js >= 20.0.0
  • Yarn >= 4.9.1 (recommended) or npm

Global Installation

# Using npm (recommended for global installs)
npm install -g kubit-forge

# Using yarn
yarn add -D kubit-forge

Local Installation

# Using yarn
yarn add -D kubit-forge

# Using npm
npm install --save-dev kubit-forge

Verify Installation

kubit-forge --version
kubit-forge --help

Quick Start

1. Create a New Project

# Create React app
kubit-forge init react my-app
cd my-app

# Start development server
kubit-forge dev

2. Add Features

# Add testing
kubit-forge add vitest

# Add Storybook
kubit-forge add storybook

# Add linting (OxLint recommended for speed)
kubit-forge add oxlint

3. Run Quality Checks

# Run all checks
kubit-forge check

# Or run individually
kubit-forge lint
kubit-forge typecheck
kubit-forge test

4. Build for Production

kubit-forge build

Contributing

We welcome contributions from the community! Here's how you can help:

Ways to Contribute

  • Report Bugs - Open an issue on GitHub
  • Suggest Features - Share your ideas
  • Submit PRs - Fix bugs or add features
  • Improve Documentation - Help others learn
  • Create Plugins - Extend functionality
  • Share Recipes - Automate workflows

Development Setup

# Clone the repository
git clone https://github.com/kubit-ui/kubit-forge.git
cd kubit-forge

# Install dependencies
yarn install

# Build the project
yarn build

# Link for local development
yarn dev:link

# Run tests
yarn test

# Run linter
yarn lint

Pull Request Process

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/amazing-feature)
  3. Commit your changes using Conventional Commits
  4. Push to your fork (git push origin feat/amazing-feature)
  5. Open a Pull Request

Commit Convention

We use Conventional Commits:

feat: add new plugin system
fix: resolve build issue
docs: update README
chore: update dependencies
test: add unit tests

Code of Conduct

Please read our Code of Conduct before contributing.


Community

  • GitHub Discussions - Ask questions and share ideas
  • Discord - Join our community (coming soon)
  • Twitter - Follow @kubit_ui
  • Blog - Read about new features and best practices

Roadmap

Current (v0.x)

  • ✅ Core CLI functionality
  • ✅ Plugin system
  • ✅ Recipe system
  • ✅ Monorepo support
  • ✅ Doctor command
  • ✅ Smart Dependency Management
  • ✅ OxLint integration with Kubit jsPlugins

Upcoming (v1.x)

  • 🔄 Visual Studio Code extension
  • 🔄 Cloud deployment integrations
  • 🔄 Advanced caching strategies
  • 🔄 Remote plugin registry
  • 🔄 AI-powered code reviews
  • 🔄 Performance profiling tools

Future (v2.x)

  • 📋 Multi-language support (Go, Rust, Python)
  • 📋 Kubernetes integration
  • 📋 Serverless deployment
  • 📋 Advanced monitoring and observability

Changelog

See CHANGELOG.md for a detailed history of changes.


License

Kubit Forge is MIT licensed.


Acknowledgments

Built with ❤️ by the Kubit team and contributors.

Special thanks to:


Support


WebsiteDocumentationGitHubNPM

Made with ❤️ for the open-source community