A CLI and API tool to generate boilerplate Node.js projects with curated dependencies, bundled into a ZIP for quick start.
- Generate a fully scaffolded Node.js project with:
package.json,src/index.js,public/,README.md,.gitignore,LICENSE,.env.example- Custom metadata: name, version, description, author
- Selectable libraries with latest versions
- Downloadable ZIP package
- RESTful API built with Express and TypeScript
- Cached library listing for fast retrieval
- Extensible template for adding new files or custom templates
- Node.js v16 or higher
- npm or yarn
git clone https://github.com/Aethelon/Nodelizr-API.git
cd Nodelizr-API
npm installor with yarn:
yarn installnpm run devAPI base URL: http://localhost:3000/api
Live API: https://nodelizr-api.vercel.app/api
-
Generate Project ZIP
- POST
/api/generate - Headers:
Content-Type: application/json - Body:
{ "author": "Your Name", "description": "My Node Project", "version": "1.0.0", "license": "MIT", "libraries": [ { "name": "express", "version": "^4.18.2" }, { "name": "cors", "version": "^2.8.5" } ] } - Response: ZIP file (
application/zip)
- POST
-
List Available Libraries
- GET
/api/libraries - Response: JSON grouped by category
- GET
-
Search npm Package
- GET
/api/libraries/search?name={packageName} - Response: npm package details or error message
- GET
# Generate project
curl -X POST http://localhost:3000/api/generate \
-H "Content-Type: application/json" \
-d '{
"author": "Bruno Lira & Paulo de Araujo",
"description": "Meu Projeto Node",
"version": "1.0.0",
"license": "MIT",
"libraries": [
{ "name": "express", "version": "^4.18.2" },
{ "name": "cors", "version": "^2.8.5" },
{ "name": "dotenv" }
]
}' --output project.zip
# List libraries
curl http://localhost:3000/api/libraries
# Search package
curl http://localhost:3000/api/libraries/search?name=typescriptNodelizr-API/
├─ src/
│ ├─ api/
│ │ ├─ controller/ Express route handlers
│ │ ├─ data/ Templates & library list
│ │ ├─ dto/ Data transfer objects
│ │ └─ service/ Business logic
│ ├─ config/
│ │ ├─ app.ts Express app setup
│ │ └─ server.ts Server entry point
├─ shared/ Shared utilities (zip, npm fetch)
├─ package.json
└─ README.md
View /src/api/data/libraries.list.ts for the full curated list.
Contributions are welcome:
- Fork the repo
- Create a branch:
git checkout -b feature/YourFeature - Commit changes:
git commit -m "feat: description" - Push:
git push origin feature/YourFeature - Open a Pull Request
MIT License. See LICENSE for details.