s4h
v1.0.2
Published
CLI to scaffold React apps with styling, state, and interceptors built-in.
Maintainers
Readme
⚡ s4h CLI
s4h is a blazing fast project scaffolding tool powered by Vite, designed to help developers quickly bootstrap modern React applications with best practices, pre-configured tools, and a seamless developer experience.
🚀 Features
- React + Vite: Modern frontend setup by default
- Styling options: Tailwind CSS, Material UI (MUI), or Shadcn UI
- State management: React Context, Redux Toolkit, or both
- API layer: Preconfigured Axios instance with interceptors for 400/500 errors
- Code formatting: Prettier + ESLint for consistent linting and formatting
- Optional Git hooks: Husky + lint-staged for pre-commit checks
🛠 Installation
Install with
npm install -g s4hto try upcoming features.
⚡ Usage
Create a new project:
s4h create-appFollow the interactive prompts:
- Project name: Provide a unique name (validated like Create React App)
- Styling framework: Choose Tailwind CSS, MUI, or Shadcn UI
- State management: Select React Context, Redux Toolkit, or both
- Axios setup: Enable preconfigured Axios with interceptors
- Code formatting: Enable Prettier + ESLint for consistent code style
- .env file: Auto-generated with default settings:
PORT=3000
PUBLIC_URL=/After completion, your project will be ready with all selected configurations.
🤝 Contributing
We welcome contributions!
- Soon it will be Open Source
- Open an issue to suggest features or report bugs
- Create a pull request (PR) to add new templates, enhance features, or fix issues
- Follow standard GitHub branching and PR conventions
📜 License
MIT License © 2025 Shivansh Verma
📦 Support & Feedback
If you encounter issues or have suggestions, feel free to open an issue or contact the maintainer.
email: [email protected]
Happy coding! 🚀
