Skip to content

Contributing

Hamur is built in the open at productdevbook/hamur. This page is the short way in; CONTRIBUTING.md in the repository has the same rules and links back here.

Set up

You need Bun 1.4.4 or newer.

sh
git clone https://github.com/productdevbook/hamur.git
cd hamur
bun install
bun run check

bun run check runs the typecheck, bun test and the dependency, ESM, API-docs, console, link and name checks. A pull request runs the same command in CI.

To try your changes in an app outside the repository, run bun run link in the checkout and add the packages with link:<name> specifiers; CONTRIBUTING.md has the steps. To try someone else's change, install its preview packages.

Propose a change

A bug or a small fix goes straight to a pull request. A large change, or a new public contract (a config key, a hook, a CLI command, a file convention), starts as an issue, opened with the "Feature request" form before you write code. It names the problem, the interface you would write and the errors it would give. Questions are not issues: ask on Discord. GitHub Discussions are not turned on for the repository.

Report a security problem privately, as SECURITY.md says, and never in a public issue.

The rules

  • dependencies stays empty in every published package. UI libraries and their compilers are adapter peerDependencies.
  • The core imports no UI library, and an adapter does not re-implement routing, payload, head or state.
  • A changed public interface changes its docs page and its samples in the same pull request. Every code sample on this site is a file that CI type-checks.
  • Code, messages and docs are in English.
  • Commits use Conventional Commits and the branch is <type>/<slug>. A commit ends with Refs #N or Fixes #N only for an issue of this repository.

Everyone taking part follows the Code of Conduct.

No telemetry

Hamur sends no usage data and makes no request you did not ask for. The requests the CLI can make, each with its reason, are listed in Which commands use the network; the one check for a newer version is off unless you turn it on.