
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
node-typescript-gen
Advanced tools
A CLI tool to quickly create Express TypeScript applications by pulling from the official template repository and customizing it for your needs.
npm install -g node-typescript-gen
npx node-typescript-gen my-app
node-typescript-gen my-app
This will prompt you for:
You can specify a custom template repository URL:
node-typescript-gen my-app --template https://github.com/yourusername/your-template.git
If you don't provide a project name, the CLI will guide you through all options:
node-typescript-gen
The CLI pulls the latest template from the official express-typescript-template repository, removes unnecessary files (LICENSE, .env.example, etc.), and customizes it for your project.
The CLI creates a complete Express TypeScript application with the following structure:
my-app/
├── src/
│ ├── app.factory.ts # Application factory
│ ├── config/ # Configuration files
│ │ ├── app.config.ts
│ │ └── database.config.ts
│ ├── container/ # Dependency injection container
│ │ └── di.container.ts
│ ├── lib/ # Utility libraries
│ │ ├── app-assert.ts
│ │ ├── async-handler.ts
│ │ ├── custom-error.ts
│ │ └── rate-limit.ts
│ ├── logger/ # Logging configuration
│ │ ├── logger.config.ts
│ │ └── logger.service.ts
│ ├── middleware/ # Express middleware
│ │ ├── error-handler.ts
│ │ ├── morgan-middleware.ts
│ │ └── service-protection.ts
│ ├── types/ # TypeScript type definitions
│ │ ├── database.types.ts
│ │ └── protection.types.ts
│ └── server.ts # Server entry point
├── .env # Environment variables
├── package.json # Project configuration
├── tsconfig.json # TypeScript configuration
└── README.md # Project documentation
After creating your project:
cd my-app
npm install
npm run dev
Your server will start on http://localhost:3000
You can run a demo to see the generator in action:
npm run demo
This will create a sample project called demo-express-app to demonstrate the functionality.
npm run dev - Start development server with hot reloadnpm run build - Build the project for productionnpm start - Start production servernpm run format - Format code with PrettierThe generated project includes several configuration files:
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions, please open an issue on GitHub.
FAQs
CLI tool to create Express applications written in Typescript!
We found that node-typescript-gen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.