{"_id":"@badermouj/secure-mern","_rev":"2-9b36f166c1486802e2ed412606d34936","name":"@badermouj/secure-mern","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@badermouj/secure-mern","version":"0.1.0","keywords":["mern","secure","cli","generator"],"author":{"name":"Badr Moujahid"},"license":"MIT","_id":"@badermouj/secure-mern@0.1.0","maintainers":[{"name":"badermouj","email":"badermouj@gmail.com"}],"bin":{"secure-mern":"cli/index.js"},"dist":{"shasum":"bb187c997b0d73e554d7b5965a09096f5c8696c0","tarball":"https://registry.npmjs.org/@badermouj/secure-mern/-/secure-mern-0.1.0.tgz","fileCount":59,"integrity":"sha512-sKEIchkk+tIJUQcehcfwxOmGr7WeoMBLjXi0LTx8Wy8NTdAnszhF6z3ADsRE+WoPQAV3BGEoE3FCOvZXSylR2Q==","signatures":[{"sig":"MEUCIQC3jdCEOCDqpiAvJQCVTznNF/i4vOp+vfgCV0noq4CRswIgZOrxeiS7Yxm6/NU2qLPyX2KBxrQu88YIRE1NZen+Mfk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":201258},"main":"cli/index.js","gitHead":"6404b83e7e162b40149e71e3744afb6515761cb6","scripts":{"test":"node --test tests/**/*.test.js"},"_npmUser":{"name":"badermouj","email":"badermouj@gmail.com"},"_npmVersion":"10.9.2","description":"A secure Full-Stack project generator for React and Node.js.","directories":{},"_nodeVersion":"24.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/secure-mern_0.1.0_1788010163358_0.6552311036772487","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-08-29T13:29:23.196Z","modified":"2026-08-29T13:36:46.441Z","0.1.0":"2026-08-29T13:29:23.515Z"},"author":{"name":"Badr Moujahid"},"license":"MIT","keywords":["mern","secure","cli","generator"],"description":"A secure Full-Stack project generator for React and Node.js.","maintainers":[{"email":"badermouj@gmail.com","name":"secure-mern"}],"readme":"# 🛡️ SecureMERN\r\n\r\n> A robust, secure Full-Stack project generator for React and Node.js.\r\n\r\n[![Version](https://img.shields.io/badge/version-V0.5-blue.svg)]()\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\r\n[![Node.js](https://img.shields.io/badge/Node.js->=18.0.0-success.svg)]()\r\n\r\n**SecureMERN** is a CLI tool designed to instantly scaffold a professional, Full-Stack application architecture. It sets up a Vite React frontend and an Express Node.js backend, fully pre-configured to work together out of the box.\r\n\r\n---\r\n\r\n## ✨ Features\r\n\r\n- **⚡ Instant Setup:** Scaffolds a complete Full-Stack app in seconds.\r\n- **⚛️ Modern Frontend:** Powered by React and Vite for blazing-fast development.\r\n- **🚀 Scalable Backend:** Clean Express API architecture with decoupled routes and controllers.\r\n- **🔄 Concurrency:** Start both frontend and backend seamlessly with a single command.\r\n- **🔒 Security First:** Includes built-in security defaults like Helmet, CORS, Rate Limiting, Input Validation (Zod), and safe centralized error handling.\r\n\r\n## 📦 Quick Start\r\n\r\nThe fastest way to generate a new project is using `npx`:\r\n\r\n```bash\r\n# Generate the project\r\nnpx secure-mern create my-awesome-app\r\n\r\n# Navigate to the directory\r\ncd my-awesome-app\r\n\r\n# Install all dependencies (Frontend & Backend)\r\nnpm install\r\n\r\n# Start the development servers\r\nnpm run dev\r\n```\r\n\r\nYour application will start automatically:\r\n- **Frontend:** [http://localhost:5173](http://localhost:5173)\r\n- **Backend API:** [http://localhost:5000](http://localhost:5000)\r\n\r\n## 🏗️ Architecture\r\n\r\nSecureMERN scaffolds a decoupled client-server architecture:\r\n\r\n```text\r\nReact + Vite (Client)\r\n        │\r\n    HTTP / JSON\r\n        ↓\r\nExpress API (Server)\r\n        ↓\r\n     Node.js\r\n```\r\n\r\n### Generated Project Structure\r\n\r\n```text\r\nmy-app/\r\n├── client/                 # React + Vite frontend\r\n│   ├── src/\r\n│   │   ├── components/     # UI Components\r\n│   │   ├── pages/          # Application views\r\n│   │   ├── services/       # API communication (Axios)\r\n│   │   ├── App.jsx         # Root component\r\n│   │   └── main.jsx        # Frontend entry point\r\n│   └── vite.config.js\r\n│\r\n├── server/                 # Express backend\r\n│   ├── src/\r\n│   │   ├── config/         # App & Security configuration\r\n│   │   ├── controllers/    # Request handlers\r\n│   │   ├── middlewares/    # Custom & Security middlewares\r\n│   │   ├── routes/         # API routes definitions\r\n│   │   ├── validators/     # Input validation schemas\r\n│   │   ├── app.js          # Express app configuration\r\n│   │   └── server.js       # Server entry point\r\n│   └── package.json\r\n│\r\n├── .env.example            # Environment variables template\r\n└── package.json            # Root configuration & scripts\r\n```\r\n\r\n## 🔌 API Endpoints\r\n\r\nThe generated server comes with a default health-check endpoint:\r\n\r\n- `GET /api/health`\r\n  - Validates that the Express API is running and accessible.\r\n\r\n## 🗺️ Roadmap\r\n\r\nWe are actively developing SecureMERN. Here is our roadmap:\r\n\r\n- [x] **V0.1** — CLI Foundation\r\n- [x] **V0.2** — Project Templates\r\n- [x] **V0.3** — React + Express Integration\r\n- [x] **V0.4** — MySQL + Sequelize Integration\r\n- [x] **V0.5** — Security Foundation (Helmet, Rate Limiting, CORS)\r\n- [ ] **V0.6** — Authentication & JWT\r\n\r\n## 🤝 Contributing\r\n\r\nContributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.\r\n\r\n## 📝 License\r\n\r\nThis project is [MIT](https://opensource.org/licenses/MIT) licensed.\r\n","readmeFilename":"README.md"}