| 1 | # create-bhvr 🦫 |
| 2 | |
| 3 |  |
| 4 | |
| 5 | [](https://github.com/stevedylandev/create-bhvr/blob/main/LICENSE) |
| 6 |  |
| 7 | |
| 8 | A command-line interface (CLI) to quickly scaffold a new `bhvr` project. `bhvr` is a full-stack TypeScript monorepo starter with shared types, using Bun, Hono, Vite, and React. |
| 9 | |
| 10 | ## Getting Started |
| 11 | |
| 12 | To create a new `bhvr` project, run any of the following commands and follow the interactive prompts: |
| 13 | |
| 14 | ```bash |
| 15 | # Using Bun |
| 16 | bun create bhvr@latest my-bhvr-app |
| 17 | ``` |
| 18 | |
| 19 | This will create a new directory called `my-bhvr-app` inside the current folder. |
| 20 | |
| 21 | ## Features |
| 22 | |
| 23 | - **Interactive Setup**: A simple and fast interactive CLI to guide you through project setup. |
| 24 | - **Multiple Templates**: Choose from several templates to get started: |
| 25 | - `default`: A basic setup with Bun, Hono, Vite, and React. |
| 26 | - `tailwind`: Includes Tailwind CSS for styling. |
| 27 | - `shadcn`: Pre-configured with Tailwind CSS and shadcn/ui. |
| 28 | - **Optional RPC**: Automatically configure Hono RPC for end-to-end type-safe API communication. |
| 29 | - **Linter Choice**: Choose between ESLint (default) or Biome for code linting and formatting. |
| 30 | - **Automated Setup**: Handles `git` initialization and dependency installation for you. |
| 31 | |
| 32 | ## Command-Line Options |
| 33 | |
| 34 | You can also use command-line options to skip the interactive prompts: |
| 35 | |
| 36 | | Option | Description | Default | |
| 37 | | ----------------------- | ------------------------------------------------------ | --------- | |
| 38 | | `[project-directory]` | The name of the directory to create the project in. | - | |
| 39 | | `-y, --yes` | Skip all confirmation prompts and use default values. | `false` | |
| 40 | | `--template <template>` | Specify a template (`default`, `tailwind`, `shadcn`). | `default` | |
| 41 | | `--rpc` | Use Hono RPC for type-safe API communication. | `false` | |
| 42 | | `--linter <linter>` | Specify the linter to use (`eslint` or `biome`). | `eslint` | |
| 43 | | `--branch <branch>` | Specify a branch to use from the repository. | `main` | |
| 44 | |
| 45 | ## Contributing |
| 46 | |
| 47 | We welcome contributions from the community! Whether it's reporting a bug, suggesting a new feature, or submitting a pull request, your help is appreciated. |
| 48 | |
| 49 | Please read our [**CONTRIBUTING.md**](CONTRIBUTING.md) for detailed guidelines on how to get started. |
| 50 | |
| 51 | ## Links |
| 52 | |
| 53 | - [License (MIT)](LICENSE) |
| 54 | - [Contributing](CONTRIBUTING.md) |
| 55 | - [Website](https://bhvr.dev) |