Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robust utility classes and functions to streamline Node.js development workflows.



Nex (formerly node_helper) is a comprehensive backend utility library designed to simplify common Node.js tasks.
It provides a unified interface for handling:

  • Multi‑database connections
  • HTTP & WebSocket servers
  • Email dispatching
  • File uploads
  • Error handling
  • Authentication & sessions
  • QR code generation & scanning
  • Common utility functions

Built for developers who want clean, modular, scalable backend architecture.


🚀 Core Features

  • Multi‑Database Support
    MySQL, MongoDB, and MSSQL wrappers with unified access patterns.

  • HTTP & WebSocket Server
    Express + Socket.io for real‑time and REST APIs.

  • Global Error Handling
    Centralized ApplicationError system for consistent responses.

  • Authentication & Sessions
    JWT utilities + session tracking.

  • File Uploads
    Simplified file handling via multer.

  • Email Services
    SMTP wrapper using nodemailer.

  • QR Code Tools
    Generate and decode QR codes.

  • Utility Helpers
    Encryption, hashing, date tools, and more.


# Install globally or locally via NPM
npm install sv-nex

# Or scaffold a fresh project instantly
npx sv-nex

1. The Automated CLI Wizard (Recommended)

Forget configuring database variables manually! The framework ships with a powerful interactive command-line utility. Just spin up an empty folder and run:

npx sv-nex

The wizard instantly performs the followering heavy lifting:

  1. Generates package.json configurations and connects your entry paths.
  2. Triggers an Interactive Prompt asking for your preferred Database Engine (MySQL, Mongo, or MsSQL).
  3. Securely establishes your network ports and database credentials dynamically.
  4. Generates a .conf environment payload invisibly without hardcoding passwords into JavaScript.
  5. Scaffolds a functioning HTTP routing structure (/routes/ping) testing the Express connection directly out of the box!

Once the bootstrap completes, simply type:

npm start

Your server will instantly spin up natively mapping all databases instantly.

2. Manual Integration (Non-CLI)

If you're hooking Nexs into a pre-existing project instead of making a new one, you can integrate it manually using the standard Implementation_Manager:

const { Implementation_Manager } = require('sv-nex');

// 1. Define your custom app routing logic
const routes = (app) => {
  app.get('/', (req, res) => res.send('Nexs Framework is deeply connected!'));
};

(async () => {
    // 2. Initialize databases, caches, and read configs dynamically
    await Implementation_Manager.initializeImplementation();

    // 3. Boot HTTP server mapping the routes directly 
    Implementation_Manager.initializeHttpAndStartServer(routes);
})();

Module Description
ApplicationError Standardized error classes and log levels.
Implementation_Manager Initializes DBs and starts HTTP/WebSocket servers.
NE_EmailHelper SMTP email sending wrapper.
UploadHelper File upload management.
UserSessions_Helper Session and login state tracking.
MySQL / Mongo / MsSQL Database helpers for queries and connections.
HexGenerator / RobustHexScanner QR code generation and decoding tools.

This project is licensed under the Red-Blue-co License.


About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages