Gathering detailed insights and metrics for create-types-backend
Gathering detailed insights and metrics for create-types-backend
Gathering detailed insights and metrics for create-types-backend
Gathering detailed insights and metrics for create-types-backend
npm install create-types-backend
Typescript
Module System
Node Version
NPM Version
68.8
Supply Chain
97.3
Quality
93.4
Maintenance
100
Vulnerability
99.6
License
TypeScript (86.42%)
JavaScript (13.58%)
Total Downloads
796
Last Day
2
Last Week
10
Last Month
93
Last Year
796
1 Stars
45 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Aug 28, 2025
Latest Version
1.0.13
Package Id
create-types-backend@1.0.13
Unpacked Size
33.90 kB
Size
10.44 kB
File Count
39
NPM Version
11.3.0
Node Version
22.13.1
Published on
Aug 28, 2025
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
-23.1%
10
Compared to previous week
Last Month
-61.6%
93
Compared to previous month
Last Year
0%
796
Compared to previous year
3
A CLI tool to quickly setup an Express.js backend in TypeScript, using essential configurations and user's preferences.
You can directly run the CLI (using npx) or install globally (using npm install -g) :
1# Run directly using npx 2npx create-types-backend 3 4# OR Install globally (optional) 5npm install -g create-types-backend
✅ Generates a well-structured Express-TypeScript backend
✅ Supports automatic setup using -y
flag
✅ Includes Express.js, Typescript, DotEnv and essential configurations
✅ Sets up tsx for hot-reloading while development
✅ Resolves default import alias by mapping src -> @
- Custom Error Handlers
- CORS
- MongoDB
- JWT, bcrypt, cookie-parser
- Multer
- Cloudinary
- ES-Lint
- Docker
➡️ Creating a new project
1npx create-types-backend : Manual setup with flexibility to choose required configurations. 2 3OR 4 5npx create-types-backend -y : Run in default mode with all preferences set to 'YES' 6 7OR 8 9npx create-types-backend myapp : Enter project name through CLI argument
➡️ Starting the Development Server
1Just follow these 3 steps: 2 3- cd into the newly created backend directory 4- add your MONGODB_URI in .env file (if using MongoDB) 5- npm run dev OR npm run docker:dev (if using docker)
1myapp/ 2│── src/ 3 ├── config/ # Configuration files (e.g., database) 4 ├──db.ts # MongoDB connection setup 5 ├──multer.ts # Multer setup 6 ├── constants/ # Constant values 7 ├──cookie-options.ts # Cookie options for JWT 8 ├── controllers/ # Route handlers 9 ├──user.ts # Example controller 10 ├── helpers/ # Helper functions 11 ├── middlewares/ # Express middlewares 12 ├──errorHandler.ts # Custom error handler 13 ├── models/ # Mongoose models 14 ├──user.ts # Example mongoose model 15 ├── routes/ # API routes 16 ├──user.ts # Example route 17 ├── types/ # TypeScript types 18 ├──file.d.ts # FileTypes definition (reqd for cloudinary) 19 ├──user.d.ts # UserTypes definition (acc to example mongoose schema) 20 ├── utils/ # Reusable utilities 21 ├──cloudinary.ts # Cloudinary upload and delete controllers 22 ├──generate-token.ts # Generate JWT token and set cookie 23 ├──try-catch.ts # Try-Catch wrapper for async functions 24 ├── app.ts # Main entry point of express app 25│── .dockerignore # Docker ignore file 26│── .env # Environment variables 27│── .env.example # Example environment variables 28│── .gitignore # Git ignore file 29│── .prettierrc # Prettier configuration 30│── docker-compose.yaml # Docker-Compose file configured for development 31│── Dockerfile # Dockerfile for production 32│── Dockerfile.dev # Dockerfile for development 33│── eslint.config.js # ESLint configuration for code linting 34│── package.json # Project metadata & dependencies 35│── tsconfig.json # TypeScript configuration 36
Want to improve this CLI? Feel free to fork the project, make changes, and submit a pull request (PR).
This project is open-source and available under the ISC License.
Raghav Bhagat
🔗 GitHub: [https://github.com/rbhagat32]
🔗 NPM: [https://www.npmjs.com/~raghavbhagat32]
🔗 LinkedIn: [https://www.linkedin.com/in/rbhagat32]
No vulnerabilities found.