hstack (local stack)
Setup
Install hstack, choose a workspace, and initialize main/dev checkouts.
Prerequisites
- Node.js
- Yarn
- Docker (recommended if you plan to use
happier-serverfull flavor) - Tailscale (optional, but recommended for phone/remote access)
Install and initialize
hstack can be run either:
- as an installed CLI (recommended once published), or
- via
npx(good for one-off setup), or - from a local checkout (maintainers / when the npm package isn’t published yet).
Guided setup (recommended)
Development profile (recommended for contributors):
hstack setup --profile=devSelf-host profile (stable / production-ish):
curl -fsSL https://happier.dev/self-host | bashDirect hstack flow (same guided installer):
hstack self-host installEnable auto-updates (opt-in) at install time:
hstack self-host install --auto-update --auto-update-at=03:15You can also update the schedule after install:
hstack self-host config set --auto-update --auto-update-at=03:15Legacy alias (still supported):
hstack setup --profile=selfhostChoose a workspace directory
The workspace is where hstack stores:
main/(stable checkout; treat as read-only)dev/(dev branch checkout for development)- categorized worktrees:
pr/…local/<owner>/…tmp/<owner>/…
You can set it explicitly:
hstack setup --profile=dev --workspace-dir=~/Documents/Development/happierOr by env var:
export HAPPIER_STACK_WORKSPACE_DIR=~/Documents/Development/happierDeveloping hstack itself (local CLI root)
When you’re iterating on the hstack source code inside the monorepo, you can point the installed shim at your local checkout:
export HAPPIER_STACK_CLI_ROOT_DIR=~/Documents/Development/happier/dev/apps/stack
hstack helpTo confirm what hstack is actually using on your machine, run:
hstack where