npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@archforge/cli

v1.2.0

Published

ArchForge CLI — interactive project architecture generator

Readme

🔨 ArchForge

Universal Architecture Generator

npm TypeScript Node.js License: MIT

A stack-agnostic CLI tool that generates standardized, production-ready architectures for multiple technologies while enforcing clean architecture, best practices, and tooling consistency.


🚀 Quick Start

# Run directly with npx (no install needed)
npx @archforge/cli init

# Or install globally
npm install -g @archforge/cli
archforge init

✨ Features

  • 11 Stacks — React, Next.js, Angular, Vue.js, Node.js, Java, .NET, Django, Laravel, React Native, Flutter
  • 10 Architecture Styles — Clean, Layered, Feature-based, Feature-Sliced, Hexagonal, DDD, MVC, CQRS, Microservices, Modular Monolith
  • 42 Templates — Every supported stack × architecture combination
  • 9 Architecture Rules — Enforces dependency constraints, not just file layout
  • Context-Aware Prompts — CSS framework, state management, ORM, validation, logging, and more
  • Tooling Add-ons — Docker, CI/CD, testing, linting, Husky pre-configured out of the box
  • Plugin System — Extend with custom templates and rules
  • Latest Packages — React 19, Vite 7, TypeScript 5.9, Tailwind CSS v4, Zustand 5, Zod 4, ESLint 9

📦 Commands

# Interactive mode — guided prompts across 7 sections
archforge init

# Quick mode — pass flags directly
archforge init --name my-api --stack java --architecture clean --database postgresql --auth jwt

# List all available templates
archforge list

# Validate architecture of an existing project
archforge lint-architecture --dir ./my-project --architecture clean

🧠 Example Session

$ archforge init

  ┌─ Project Basics
? Project name: my-saas-api
? Technology stack: ☕ Java (Spring Boot + Gradle)

  ┌─ Architecture
? Architecture style: 🏛️  Clean Architecture

  ┌─ Data & API
? Database: 🐘 PostgreSQL
? ORM / Data Access: 🟢 Hibernate / JPA
? API style: 🌐 REST

  ┌─ Security & Validation
? Authentication: 🔑 JWT
? Validation library: ☕ Bean Validation

  ┌─ DevOps & Tooling
? Package manager: 🐘 Gradle
? Logging framework: 📝 SLF4J + Logback
? Extra tooling: 🐳 Docker, 🔄 CI/CD, 🧪 Tests
? Server port: 8080

✔ Created 18 files in ./my-saas-api

📋 Supported Stacks (11 stacks · 42 templates)

Frontend

| Stack | Architecture Styles | | ----------------------------------- | ---------------------------------------------------- | | React (TypeScript + Vite 7) | Clean, Layered, Feature-based, Feature-Sliced Design | | Next.js (App Router + SSR) | Clean, Feature-based | | Angular (Standalone Components) | Clean, Layered | | Vue.js (Composition API + Vite) | Feature-based |

Backend

| Stack | Architecture Styles | | ---------------------------------- | -------------------------------------------------------------------------- | | Node.js (Express + TypeScript) | Clean, Layered, MVC, Hexagonal, Microservices | | Java (Spring Boot + Gradle) | Clean, Layered, Hexagonal, DDD, MVC, CQRS, Microservices, Modular Monolith | | .NET (ASP.NET Core 8 + C#) | Clean, Layered, Hexagonal, DDD, MVC, CQRS, Microservices, Modular Monolith | | Django (Python + DRF) | MVC, Layered, Clean | | Laravel (PHP 8.3 + Eloquent) | MVC, Layered, Modular Monolith |

Mobile

| Stack | Architecture Styles | | ------------------------------------ | -------------------- | | React Native (Expo + TypeScript) | Clean, Feature-based | | Flutter (Dart + Riverpod) | Clean, Feature-based |

✅ Recommended Architectures (covers 90% of real codebases)

| Architecture | Best For | | ------------------------ | ------------------------------------- | | Clean Architecture | Backend APIs, enterprise apps | | Layered Architecture | Simple backends, quick MVPs | | MVC | Server-rendered & traditional apps | | Feature-based | React & Next.js scalable frontends | | Modular Monolith | Growing backends before microservices |

⚠️ Advanced Architectures (situational, not baseline)

Hexagonal · DDD · CQRS · Microservices · Feature-Sliced Design

Context-Aware Options

| Option | Frontend (React/Next/Angular/Vue) | Backend (Node/Java/.NET/Django/Laravel) | Mobile (RN/Flutter) | | ----------------- | ------------------------------------------------- | ---------------------------------------- | ------------------- | | CSS Framework | Tailwind v4, CSS Modules, Styled Components, Sass | — | — | | State Mgmt | Zustand 5, Redux 2, Jotai 2, Pinia, NgRx, Context | — | — | | ORM | Prisma | Hibernate, EF Core, Django ORM, Eloquent | — | | API Style | — | REST, GraphQL, gRPC | — | | Validation | Zod 4, class-validator | Bean Validation, FluentValidation | — | | Logging | — | Winston, SLF4J, Serilog, Python logging | — |

🧪 Architecture Rules Engine

ArchForge doesn't just generate files — it enforces architectural rules:

| Rule | Description | | ----------------------------- | -------------------------------------------------------- | | clean/domain-isolation | Domain cannot import from infrastructure or presentation | | clean/application-isolation | Application cannot import from presentation | | feature/isolation | Features cannot import from other features directly | | naming/no-impl-in-domain | No "Impl" files in domain layer | | hexagonal/port-isolation | Ports cannot import from adapters | | ddd/aggregate-isolation | Aggregates cannot import from other aggregates | | fsd/layer-order | Feature-Sliced layers enforce strict import hierarchy | | cqrs/segregation | Commands and queries remain completely separate | | modular/module-isolation | Modules communicate only through public API |

archforge lint-architecture --dir ./my-project --architecture clean

📦 Packages

| Package | Description | | -------------------------------------------------------------------------------- | ---------------------------------------------------- | | @archforge/cli | Interactive CLI, prompts, commands | | @archforge/core-engine | Template rendering, rules engine, project generation |

🔗 Links

📄 License

MIT © mr-kasper