βοΈ 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. π₯β