βš™οΈ Alterforge

November 2, 2025 Β· View on GitHub

Forge modular microservices that you can alter anytime.
A CLI for Node.js, GraphQL, gRPC, Sequelize, and Docker-based architectures.


πŸš€ Overview

Alterforge is a powerful CLI tool that helps you scaffold and manage modular microservice architectures β€” all in a few commands.
It’s built for developers who want speed, structure, and scalability without the repetitive setup work.


✨ Features

  • 🧱 Instant Microservice Scaffolding β€” Express-based services with prebuilt structure.
  • 🧩 Optional Integrations β€” Add Sequelize, GraphQL, and gRPC support as needed.
  • 🐳 Docker-Ready β€” Auto-generates Dockerfiles and Compose setup.
  • ⚑ Frontend Add-on β€” Instantly attach React or Angular frontends.
  • πŸ”„ CI/CD Ready β€” Seamlessly integrates with GitHub Actions workflows.
  • 🧰 Customizable Architecture β€” Perfect for microservice or modular monolith setups.

πŸ“¦ Installation

npm install -g alterforge

Or clone the repo and link it locally for development:

git clone https://github.com/yourusername/alterforge.git
cd alterforge
npm link

🧩 Commands

1️⃣ Initialize a New Project

alterforge init <projectName>

Creates a full microservice environment:

projectName/
 β”œβ”€ docker/
 β”‚  └─ docker-compose.yml
 β”œβ”€ services/
 β”‚  └─ core/
 └─ frontend/ (optional)

2️⃣ Add a New Service

alterforge add-service <serviceName>

Choose features interactively:

? Select features for auth service:
  β—» Sequelize
  β—» GraphQL
  β—» gRPC

Generates a ready-to-run service inside /services/.


3️⃣ Add a Frontend

alterforge add-frontend

Select React or Angular β€” it scaffolds and links the frontend automatically.


4️⃣ Build and Run via Docker

alterforge up

Runs all services and database using Docker Compose.

To rebuild:

alterforge build

βš™οΈ Example Workflow

alterforge init ecommerce
cd ecommerce
alterforge add-service auth
alterforge add-service products
alterforge add-frontend
alterforge up

🧠 Project Structure Example

ecommerce/
 β”œβ”€ docker/
 β”‚  └─ docker-compose.yml
 β”œβ”€ services/
 β”‚  β”œβ”€ core/
 β”‚  β”‚  β”œβ”€ src/
 β”‚  β”‚  β”‚  β”œβ”€ index.js
 β”‚  β”‚  β”‚  β”œβ”€ models/
 β”‚  β”‚  β”‚  β”œβ”€ graphql/
 β”‚  β”‚  β”‚  └─ grpc/
 β”‚  β”‚  └─ Dockerfile
 β”‚  └─ auth/
 └─ frontend/

🐳 Docker Compose Example

version: '3.9'
services:
  core:
    build: ../services/core
    ports:
      - "4000:4000"
    environment:
      - NODE_ENV=development
    depends_on:
      - db

  db:
    image: postgres:15
    restart: always
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: microdb
    ports:
      - "5432:5432"
    volumes:
      - db_data:/var/lib/postgresql/data

volumes:
  db_data:

πŸ”§ GitHub Actions (CI/CD)

You can automate build and deployment using a GitHub Actions workflow:

name: Alterforge CI/CD

on:
  push:
    branches: [ "main" ]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 18

      - name: Install dependencies
        run: npm ci

      - name: Lint and Test
        run: npm test || echo "No tests yet"

      - name: Build Docker images
        run: docker compose -f docker/docker-compose.yml build

🧠 Future Roadmap

  • Add TypeScript support
  • Add Nest.js service option
  • Auto-generate Kubernetes manifests
  • Built-in API Gateway & Service Registry
  • Marketplace for microservice templates
  • Multi-language support for services (Python, Go, etc.)

πŸ§‘β€πŸ’» Author

Yash Talegaonkar Full Stack Developer β€’ Node.js β€’ Angular β€’ AWS πŸ”— LinkedIn


πŸ“„ License

MIT License Β© 2025 Yash Talegaonkar


β€œDon’t just build services β€” forge them. πŸ”₯”