speedrun-init
v1.0.0
Published
๐ A modern project initializer with TypeScript/JavaScript support, VS Code configuration, and beautiful templates
Downloads
6
Maintainers
Readme
๐ Speedrun Init
A modern, lightning-fast project initializer that creates beautiful JavaScript and TypeScript projects with all the modern tooling you need. Think npm init but supercharged! โก
โจ Features
- ๐ฏ Multiple Templates: API servers and Hello World starters
- ๐ง Language Support: Both JavaScript and TypeScript
- ๐ VS Code Ready: Pre-configured settings and extensions
- ๐จ Code Quality: ESLint and Prettier pre-configured
- ๐ Documentation: Beautiful README files generated
- ๐ก๏ธ Error Handling: Robust error handling patterns
- โก Fast Setup: Get coding in seconds, not minutes
๐ Quick Start
Global Installation
npm install -g speedrun-init
speedrun-initOne-time Use (npx)
npx speedrun-initShort Command
# After global install, you can use the short alias
sri๐ฎ Usage
Simply run the command and follow the interactive prompts:
$ speedrun-init
๐ Welcome to Project Initializer!
Let's create your new project with modern tooling.
๐ Project name: my-awesome-project
๐ง Language (js/ts) [ts]: ts
๐ Template (api/hello-world) [hello-world]: api
๐ฏ Creating TS api project: my-awesome-project
โ Created directory: my-awesome-project
โ Created directory: my-awesome-project/src
โ Created directory: my-awesome-project/.vscode
โ Created file: my-awesome-project/package.json
โ Created file: my-awesome-project/tsconfig.json
โ Created file: my-awesome-project/.prettierrc.json
โ Created file: my-awesome-project/.eslintrc.json
โ Created file: my-awesome-project/.vscode/settings.json
โ Created file: my-awesome-project/.vscode/extensions.json
โ Created file: my-awesome-project/.gitignore
โ Created file: my-awesome-project/README.md
โ Created file: my-awesome-project/src/index.ts
๐ Project created successfully!
๐ Next steps:
cd my-awesome-project
npm install
npm run dev
๐ Your API will be available at: http://localhost:3000
โจ Happy coding!๐ Templates
Hello World Template
Perfect for learning or simple scripts:
- Clean, commented starter code
- Error handling examples
- Modern JavaScript/TypeScript patterns
API Template
Production-ready REST API with:
- Express.js server
- Security middleware (Helmet, CORS)
- Request logging (Morgan)
- Health check endpoint
- Robust error handling
- Type-safe responses (TypeScript)
๐๏ธ Generated Project Structure
TypeScript Project
my-project/
โโโ src/
โ โโโ index.ts # Main application file
โโโ .vscode/
โ โโโ settings.json # VS Code settings
โ โโโ extensions.json # Recommended extensions
โโโ .eslintrc.json # ESLint configuration
โโโ .prettierrc.json # Prettier configuration
โโโ tsconfig.json # TypeScript configuration
โโโ .gitignore # Git ignore rules
โโโ package.json # Dependencies and scripts
โโโ README.md # Project documentationJavaScript Project
my-project/
โโโ index.js # Main application file
โโโ .vscode/
โ โโโ settings.json # VS Code settings
โ โโโ extensions.json # Recommended extensions
โโโ .eslintrc.json # ESLint configuration
โโโ .prettierrc.json # Prettier configuration
โโโ .gitignore # Git ignore rules
โโโ package.json # Dependencies and scripts
โโโ README.md # Project documentation๐ ๏ธ What's Included
Development Tools
- ESLint: Code linting with sensible defaults
- Prettier: Code formatting that actually works
- TypeScript: Full type safety (TS projects)
- Nodemon: Auto-restart during development
VS Code Integration
- Format on save: Automatic code formatting
- Extension recommendations: Best extensions for your stack
- Optimized settings: Perfect workspace configuration
- IntelliSense: Full autocomplete and type checking
Scripts Ready to Use
{
"scripts": {
"dev": "Development server with hot reload",
"build": "Production build (TypeScript)",
"start": "Run production build",
"watch": "Watch mode compilation"
}
}๐ฏ Why Speedrun Init?
| Feature | npm init | create-react-app | Speedrun Init | | ------------------ | --------------- | ---------------- | -------------------- | | Speed | โ Manual setup | โ Heavy/slow | โ Lightning fast | | VS Code Ready | โ No config | โ Minimal | โ Fully configured | | Multiple Templates | โ Basic only | โ React only | โ API + more | | TypeScript | โ Manual setup | โ ๏ธ Complex setup | โ One command | | Error Handling | โ None | โ Basic | โ Production ready | | Code Quality | โ Manual setup | โ ๏ธ Basic | โ ESLint + Prettier |
๐ง API Template Features
The API template includes everything you need for a production-ready REST API:
Security
- Helmet.js: Sets security headers
- CORS: Cross-origin resource sharing
- Request size limits: Prevents abuse
Logging & Monitoring
- Morgan: HTTP request logging
- Health check endpoint:
/healthfor monitoring - Uptime tracking: Built-in metrics
Developer Experience
- Beautiful error responses: Consistent error format
- Environment aware: Different behavior for dev/prod
- Type-safe APIs: Full TypeScript support
Example API Response
{
"message": "Hello, API World! ๐",
"version": "1.0.0",
"timestamp": "2025-07-02T10:30:00.000Z"
}๐ Development
Want to contribute or modify the CLI?
git clone https://github.com/rajuX75/speedrun-init.git
cd speedrun-init
npm link # Makes it available globally for testing๐ License
MIT License - feel free to use this in your projects!
๐ค Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ Issues
Found a bug? Have a feature request? Please open an issue on GitHub!
Made with โค๏ธ for developers who want to start coding, not configuring.
