Bun monorepo. Packages live in packages/* and run TypeScript directly (no build step).
- Runtime / package manager: Bun (
bun@1.3.14) - Framework: Effect v4 (
4.0.0) - Testing: Vitest +
@effect/vitest - Lint / format: oxlint + oxfmt (120 col, no semicolons)
- Effect editor tooling:
@effect/tsgowith the@effect/language-serviceTS plugin.tscand oxlint are patched for Effect diagnostics via thepreparescript (effect-tsgo patch --typescript --oxlint --force).
bun install— install deps (also patches TypeScript for Effect diagnostics)bun run test/bun run test:watch— run testsbun run typecheck— typecheck every packagebun run lint/bun run lint:fix— oxlint (with the@effect/tsgorecommended preset), then the typed rules intools/typed; seetools/oxlint/README.mdbun run format/bun run format:check— oxfmt
Shared versions are pinned once in the Bun catalog (workspaces.catalog in package.json);
packages reference them with "<pkg>": "catalog:". Bump the version in the catalog, not per package.
packages/effect-branded-id(@humanlayer/effect-branded-id) provides Effect schemas and generators for type-safe, prefixed CUID2 identifiers.packages/vitest-config(@humanlayer/fold-vitest-config) is the internal shared Vitest config.
This repo targets Effect v4 — its API differs from the widely-documented v3, and from the v4 release
candidates (e.g. effect/unstable/http became effect/http). The v4 source is the effect repo:
- In Riptide worktree tasks it is checked out as a sibling at
../effect. - Locally it lives at
~/projects/effect.
When unsure about a v4 API, read the source there rather than relying on v3 knowledge or docs.