Daggerheart

@randsum/daggerheart

Daggerheart RPG system support with hope and fear dice mechanics.

Installation

npm install @randsum/daggerheart
# or
bun add @randsum/daggerheart

Examples

Basic Usage

import { roll } from "@randsum/daggerheart"

// Basic roll with modifier
roll({ modifier: 5 })

// Roll with advantage
roll({
  modifier: 5,
  rollingWith: "Advantage"
})

// Roll with disadvantage
roll({
  modifier: -2,
  rollingWith: "Disadvantage"
})

Installation

npm install @randsum/daggerheart
# or
bun add @randsum/daggerheart

About Daggerheart

The @randsum/daggerheart package provides mechanics for Daggerheart , a fantasy tabletop RPG featuring hope and fear dice mechanics.

This package implements the unique hope and fear dice system, where players roll both hope dice (d12) and fear dice (d12), creating dynamic and dramatic outcomes.

For more information, see the package source code .