Skip to content

Start with an example

create-chkit scaffolds a working chkit project by downloading a curated example from the chkit repository and wiring it up against your chosen package manager. Use this path when you want a known-good project as a starting point.

  • Node.js 20+ or Bun 1.3.5+
  • A ClickHouse endpoint (CLICKHOUSE_URL, optionally CLICKHOUSE_USER, CLICKHOUSE_PASSWORD)

Run the package without arguments to be prompted for a project name and to pick from the list of bundled examples.

$ bun create chkit@latest

Pass a project directory and pick an example explicitly:

$ bun create chkit@latest my-chkit-app --example clickbench
FlagDescription
[project-directory]Target directory. Prompted if omitted.
-e, --example <name>Example name or full GitHub URL. Prompted with the list of bundled examples if omitted.
-m, --package-manager <pm>npm, pnpm, yarn, or bun. Auto-detected from the invoking package manager.
--skip-installSkip installing dependencies after scaffolding.
NameDescription
clickbenchFull ClickBench schema and dataset load against ObsessionDB or ClickHouse.

More examples will land in the examples/ directory over time.

Once the scaffold completes:

Terminal window
cd my-chkit-app
export CLICKHOUSE_URL=http://localhost:8123
# export CLICKHOUSE_PASSWORD=...
bun run migrate