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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@aegisx/crud-generator

v2.1.1

Published

CRUD Generator for AegisX Platform - Professional code generation with interactive CLI and template management

Readme

@aegisx/crud-generator

Professional CRUD Generator for AegisX Platform with interactive CLI and flexible template system.

🎉 v2.1.0 Release Highlights

HIS Mode (Hospital Information System Mode) - New default behavior for critical enterprise systems:

  • ⚕️ Data Accuracy First: UI always shows actual database state (no optimistic updates)
  • 📊 Backend Always Emits Events: Audit trail and event-driven architecture ready
  • 🔧 Optional Real-Time Mode: Easy to enable by uncommenting 4 code blocks
  • 🛡️ No User Confusion: Never show outdated or server-rejected data
  • 🏗️ Event-Driven Ready: WebSocket events available for microservices

Why HIS Mode? In critical systems (hospitals, financial, enterprise), showing users data that might not match the database is dangerous. HIS Mode ensures UI always reflects actual server state.

Migration: Regenerate modules to get HIS Mode behavior:

# With events for audit trail
npx aegisx-crud generate budgets --with-events --force

# With import + events
npx aegisx-crud generate budgets --with-import --with-events --force

See CHANGELOG for complete details.

✨ Features

  • 🎯 Interactive Mode - Step-by-step wizard for easy code generation
  • 🎨 Template System - Multiple templates with easy switching (domain/standard, v2/v1)
  • 🛠️ Template Management - CLI commands to manage and customize templates
  • ⚙️ Configuration - Project-level preferences with .crudgen.json
  • 📦 Multi-Package - Standard, Enterprise, and Full feature packages
  • WebSocket Events - Real-time CRUD operations support (--with-events)
  • 📥 Bulk Import - Excel/CSV import with 5-step wizard (--with-import)
  • 🔐 Permission System - Auto-generate roles and permissions
  • 100% Backward Compatible - All existing commands still work

🚀 Quick Start

Interactive Mode (Recommended)

npx aegisx-crud generate

The interactive wizard will guide you through:

  1. Table selection (from your database)
  2. Generation type (fullstack, backend, frontend, permissions)
  3. Template selection (backend: domain/standard, frontend: v2/v1)
  4. Feature selection (events, bulk operations, export, import)
  5. Advanced options and confirmation

Quick Mode

# Generate full CRUD with events
npx aegisx-crud generate users --events --package full

# Generate backend only
npx aegisx-crud generate products --package enterprise

# Preview without creating files
npx aegisx-crud generate orders --dry-run

📦 Template Management

# List available templates
npx aegisx-crud templates list

# Set default template
npx aegisx-crud templates set-default

# View configuration
npx aegisx-crud config show

# Initialize config file
npx aegisx-crud config init

📚 Documentation

For complete documentation, see:

🔧 Configuration

Create .crudgen.json in your project root:

{
  "defaultTemplates": {
    "backend": "domain",
    "frontend": "v2"
  },
  "defaultFeatures": {
    "events": true,
    "bulkOperations": true,
    "export": false,
    "import": false
  }
}

📦 Available Packages

  • Standard - Basic CRUD operations
  • Enterprise - Advanced features (bulk ops, dropdowns, stats)
  • Full - All features (validation, export, import)

🎯 Examples

# Interactive mode - easiest way
npx aegisx-crud generate

# Quick generation with all features
npx aegisx-crud generate notifications --package full --events

# Custom output directory
npx aegisx-crud generate users --output ./custom/path

# Force regeneration (removes duplicates)
npx aegisx-crud generate products --force

🛠️ Programmatic Usage

const { generateCrudModule, TemplateManager } = require('@aegisx/crud-generator');

// Generate CRUD module
await generateCrudModule('users', {
  withEvents: true,
  package: 'full',
});

// Use Template Manager
const templateManager = new TemplateManager({
  templatesBasePath: './templates',
});
await templateManager.initialize();

📄 License

MIT © AegisX Team


🔗 Quick Links

Need help? Check the complete documentation or template development guide.


Version: 2.0.1 Last Updated: 2025-10-26