sv-nex
v1.0.8
Published
High-performance framework extending Express, delivering automated CLI bootstrap, multi-database pooling, secure JWT sessions, intelligent file routing, and template emails in one unified system.
Downloads
936
Readme
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
CentralizedApplicationErrorsystem for consistent responses.Authentication & Sessions
JWT utilities + session tracking.File Uploads
Simplified file handling viamulter.Email Services
SMTP wrapper usingnodemailer.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-nex1. 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-nexThe wizard instantly performs the followering heavy lifting:
- Generates
package.jsonconfigurations and connects your entry paths. - Triggers an Interactive Prompt asking for your preferred Database Engine (MySQL, Mongo, or MsSQL).
- Securely establishes your network ports and database credentials dynamically.
- Generates a
.confenvironment payload invisibly without hardcoding passwords into JavaScript. - Scaffolds a functioning HTTP routing structure (
/routes/ping) testing the Express connection directly out of the box!
Once the bootstrap completes, simply type:
npm startYour 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.
