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

nx-feature-cli

v2.1.1

Published

Enterprise CLI Feature Generator for Next.js & Golang

Readme

🔥 Enterprise Dev Suite (nx-feature)

All-in-One Scaffold & Module Generator untuk Next.js (Mantine v9 + RTK Query) dan Golang (Fiber v3 Clean Architecture)

npm version node version license


📖 Daftar Isi


Fitur Utama

  • 🖥️ Terminal UI Interaktif — Jalankan nx-feature tanpa argumen untuk memilih aksi dari menu yang rapi, lengkap dengan spinner dan notifikasi visual.
  • 📦 Full App Boilerplate — Generate starter project Next.js Mantine v3 atau Backend Go Clean Architecture (branch dev) dari repository GitLab Private.
  • ⚛️ Feature Module Generator — Buat modul lengkap (Domain, Usecase, Delivery, Repository, RTK Query, Components, Pages) dalam hitungan detik.
  • 🧹 Safe In-Memory Removal — Hapus modul secara steril tanpa meninggalkan jejak atau merusak sintaks registry.go maupun store.ts.
  • 🚀 Cross-Platform — Berjalan di Windows, macOS, dan Linux tanpa ketergantungan tambahan.

Instalasi

Global Installation

# Menggunakan npm
npm install -g nx-feature

# Menggunakan yarn
yarn global add nx-feature

# Menggunakan pnpm
pnpm add -g nx-feature

Menggunakan npx (tanpa instalasi global)

npx nx-feature

Setup Environment

Untuk meng-clone repository private dari GitLab, buat file .env di direktori kerja atau set variabel lingkungan:

GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx

Token ini diperlukan untuk akses ke template private. Jika tidak diset, CLI akan meminta token secara interaktif saat dibutuhkan.

Cara Penggunaan

🖥️ TUI Mode (Rekomendasi)

Cukup jalankan perintah berikut tanpa argumen:

nx-feature

Maka akan muncul menu interaktif yang memungkinkan kamu memilih aksi dengan mudah:

TUI Menu NX-Feature

Setiap pilihan akan memandu kamu melalui pertanyaan-pertanyaan interaktif dan menampilkan spinner selama proses berlangsung. Setelah selesai, kamu akan kembali ke menu utama

⚡ CLI Commands (Power User)

Untuk pengguna yang lebih suka perintah langsung, semua command tetap tersedia:

  1. Project Generator
# Generate backend Go Clean Architecture
nx-feature create-backend <app-name>
# atau alias
nx-feature cb <app-name>

# Generate frontend Next.js Mantine v3
nx-feature create-app <app-name>
# atau alias
nx-feature cf <app-name>

Jika <app-name> tidak diberikan, CLI akan meminta input secara interaktif.

  1. Next.js Generator
# Generate modul Next.js baru (dengan prompt konfigurasi)
nx-feature next:gen <feature-name>
# atau alias
nx-feature ng <feature-name>

# Generate tanpa konfirmasi (YOLO mode, semua opsi default)
nx-feature next:gen <feature-name> --yolo

# Hapus modul Next.js secara steril
nx-feature next:rm <feature-name>
# atau alias
nx-feature nr <feature-name>
  1. Golang Generator
# Generate modul Go Clean Architecture
nx-feature go:gen <feature-name>
# atau alias
nx-feature gg <feature-name>

# Generate dengan custom flags (protocol & ORM)
nx-feature go:gen <feature-name> -d grpc -r gorm

# Hapus modul Go secara steril
nx-feature go:rm <feature-name>
# atau alias
nx-feature gr <feature-name>

Arsitektur Output

🔹 Frontend Module (nx-feature ng <feature_name>)

modules/
└── [feature_name]/
    ├── components/
    │   ├── [FeatureName]Form.tsx
    │   └── [FeatureName]sPage.tsx
    ├── redux/
    │   ├── index.ts
    │   ├── services/
    │   │   └── index.ts
    │   └── slices/
    │       └── index.ts
    ├── schemes/
    │   └── formFields.ts
    ├── types/
    │   └── index.d.ts
    ├── columns.tsx
    └── constants.ts

🔹 Backend Module (nx-feature gg <feature_name>)

domain/
└── [feature_name]/
    ├── contracts.go
    ├── entity.go
    ├── request.go
    └── response.go

module/
└── [feature_name]/
    ├── delivery/
    │   └── http/
    │       └── [feature_name]_handler.go
    ├── repository/
    │   └── gorm/
    │       └── [feature_name]_repository.go
    └── usecase/
        └── [feature_name]_usecase.go

registry.go   <-- Auto-registered Dependency Injection

Lisensi

License: MIT