verseluft-dnd-library
v0.2.0
Published
A small DnD utility library with reusable content modules, dice tools, and a name picker for apps and websites.
Maintainers
Readme
Verseluft DnD Library
A small JavaScript library for DnD-style apps and websites.
What is inside
corefor shared library setupmodulesfor game content such as spells, monsters, items, and classestoolsfor reusable gameplay helpers such as dice rollingcontentfor starter data that other apps can extend
Documentation
- Human docs
- AI docs
- Dice tool
- Name picker tool
- The published npm package includes both doc sets
- Build the standalone wiki with
npm run wiki:build
Example
import { createDnDLibrary, rollDice } from "./src/index.js";
const lib = createDnDLibrary({
name: "My Campaign Toolkit"
});
console.log(lib.info());
console.log(rollDice("2d6+3"));Next steps
This scaffold is ready to grow into a real package with richer rules, more content packs, and optional UI helpers.
