Skip to content

Installation

@fullhaus/rivet is published to the private FULLHAUS registry.

  • Node ≥ 24 or Bun ≥ 1.3
  • A valid token for npm.fullhaus.dev (FH_PRIVATE_NPM_TOKEN)

Add an .npmrc to your project so the @fullhaus scope points at the private registry:

.npmrc
@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):

Terminal window
export FH_PRIVATE_NPM_TOKEN="your-token"
Terminal window
# Bun
bun add @fullhaus/rivet
# pnpm
pnpm add @fullhaus/rivet
# npm
npm install @fullhaus/rivet

Rivet exposes two entry points:

ImportContents
@fullhaus/rivetComponent runtime: createRivet, defineComponent, signals
@fullhaus/rivet/loggerStandalone 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.

Continue to the Quick Start to mount your first component.