create-streak-app
create-streak-app is a standalone scaffolding CLI that creates a new Streak.js project from a starter template. It clones a template repository, installs dependencies, and gets a working project ready to run.
Usage
Run it with your package manager's "create" shorthand — no separate install step needed:
bunx create-streak-app npx create-streak-app The CLI walks you through an interactive prompt flow:
- Confirms it's OK to proceed
- Checks that Git is available (required — it's used to clone the template) and exits with an error if it isn't
- Checks that Bun is available; if it isn't, it attempts to install Bun automatically (
curl -fsSL https://bun.sh/install | shon macOS/Linux) before continuing - Asks for a project name (letters, numbers,
-, and_only; defaults tomy-streak-appif left blank). The name must not already exist as a folder in the current directory - Clones the template repository into that folder
- Runs
bun install, then installsstreak-forgeinto the new project withbun add streak-forge - Updates the generated
package.json'snamefield to match your project name
What Gets Scaffolded
The project is scaffolded from a Git template repository — currently valoriz/hello-streak-app — cloned with git clone --depth 1. The .git directory from the clone is removed afterward, so the new project starts with no git history of its own.
Note: Whatever the template repository contains is what you get — source layout (
src/handlers,src/widgets,src/layouts),streak.sitemap.json, andpublic/all come from the template itself, not fromcreate-streak-app. Check the template repository directly for its current contents.
After Scaffolding
cd my-streak-app
bun dev or
bun start Dependencies (including streak-forge) are already installed by the time the CLI finishes, so you can start developing immediately.
Requirements
- Git — required. The CLI exits immediately if
git --versionfails. - Bun — the CLI attempts to install it for you if missing, but a working internet connection and permission to run the Bun install script are required for that to succeed. You can also install Bun yourself beforehand from bun.sh.