Installation
@fullhaus/rivet is published to the private FULLHAUS registry.
Requirements
Section titled “Requirements”- Node ≥ 24 or Bun ≥ 1.3
- A valid token for
npm.fullhaus.dev(FH_PRIVATE_NPM_TOKEN)
Configure the registry
Section titled “Configure the registry”Add an .npmrc to your project so the @fullhaus scope points at the private
registry:
@fullhaus:registry=https://npm.fullhaus.dev///npm.fullhaus.dev/:_authToken=${FH_PRIVATE_NPM_TOKEN}Set the token as an environment variable (e.g. in your shell or CI):
export FH_PRIVATE_NPM_TOKEN="your-token"Install the package
Section titled “Install the package”# Bunbun add @fullhaus/rivet
# pnpmpnpm add @fullhaus/rivet
# npmnpm install @fullhaus/rivetImport paths
Section titled “Import paths”Rivet exposes two entry points:
| Import | Contents |
|---|---|
@fullhaus/rivet | Component runtime: createRivet, defineComponent, signals |
@fullhaus/rivet/logger | Standalone logger (independent of the runtime) |
import { createRivet, defineComponent, signal } from "@fullhaus/rivet";import { createLogger, logger } from "@fullhaus/rivet/logger";The package is pure ESM ("type": "module"), ships type declarations, and is
sideEffects: false — tree-shaking works out of the box.
Next step
Section titled “Next step”Continue to the Quick Start to mount your first component.