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

nodehexagen

v0.1.0

Published

Enterprise-Grade Hexagonal Architecture Scaffolding for Node.js

Downloads

123

Readme

NodeHexaGen: The Architectural Guardian for Node.js 🛡️🚀

"Don't build a Big Ball of Mud. Scaffold a Citadel."

Architecture: Hexagonal TypeScript: 5.0+ License: MIT


🚀 Why NodeHexaGen?

Node.js projects often suffer from "Big Ball of Mud" syndrome as they scale, with frameworks bleeding into business logic. NodeHexaGen enforces Software Engineering Excellence from Day 1 by providing a professional-grade scaffolding that implements the Ports & Adapters (Hexagonal) pattern with high rigour.

As part of the HexaGen family (Elixir, Python, .NET), NodeHexaGen brings enterprise patterns to the JavaScript ecosystem.

Key Value Pillars:

  • Framework Agnostic: Supports Fastify, Express, and Koa without coupling your domain.
  • Enforced Boundaries: Pure Domain logic with zero external dependencies.
  • Dynamic Scaffolding: Generate full vertical slices (Domain, Infra, API) in seconds.
  • TypeScript First: Leverage strict typing for robust Port interfaces.

✨ Killer Features

1. Architectural Guardrails

  • Interface Segregation: Enforces formal contracts (IUserRepository) so your Adapters never miss a required method.
  • Pure Domain Models: Your business logic lives in vanilla TypeScript classes. No ORM decorators in the core. Pure, testable, and immortal.

2. Enterprise Out-of-the-Box

  • Dockerization: Instantly scaffolds an optimized Dockerfile and docker-compose.yml (PostgreSQL ready).
  • Dependency Injection: Ships with awilix pre-configured for elegant IoC containers.
  • Global Error Handling: Built-in DomainException to cleanly map business logic errors to HTTP status codes.
  • Quality Tooling: Strict eslint and prettier configurations generated automatically.

3. Intelligent Scaffolding

Initialize a complete project with a single command:

npx nodehexagen init MyAwesomeProject

(You will be prompted to choose Fastify, Express, or Koa for your application layer)

Generate a full enterprise-grade vertical slice resource:

cd MyAwesomeProject
npx nodehexagen gen:resource Product name:string price:number stock:number

NodeHexaGen automatically creates:

  • Domain Entities with typed fields.
  • Infrastructure Adapters (HTTP Controllers).
  • Application Layer (UseCases/Interactors).
  • Ports (Repository Interfaces).

📖 Quick Start

1. Initialize your Project

npx nodehexagen init ECommerceAPI

2. Generate a Resource

cd ECommerceAPI
npx nodehexagen gen:resource Order totalAmount:number status:string

3. Run Your Server

npm run dev

🛡️ The Architectural Promise

NodeHexaGen doesn't just give you files; it gives you a System. It sets the boundaries that prevent code rot and ensures your application remains maintainable for years to come.

Built by Architects, for Architects.


📄 License

This project is licensed under the MIT License.

Developed by rbaezc. Licensed to Vortex Solutions.