hack.foo
Recipes

Recipes

The commands and configuration on this page were audited against v5.0.0-next.14. The execution notes below come from the newer recipe source revision; the examples were not rerun with the pinned binary.

Step-by-step setups for using Hack with other tools and for everyday workflows. Each recipe has a complete project under examples/recipes or examples/configs, and each page says what was tested and what was not.

They all use the supported building blocks: lifecycle hooks and processes, managed env and overlays, hack run, hack exec and hack host exec. They run on the default Compose backend.

Other tools

Everyday workflows

Copy-paste setups

  • Config examples: complete .hack/ setups for a web app with Postgres, an API with a worker and a queue, a monorepo, a Python app, a static site, and a dev server on your machine.

When something goes wrong

  • Common pitfalls: small, easy-to-hit problems and what to do instead.
  • Run hack doctor and follow its advice.

Source: Recipe corrections (next.14 compatible) · docs/recipes/README.md.

On this page