npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lippelt/srd-dnd5e-2014

v0.1.3

Published

D&D 5e (2014) system module for @lippelt/srd-core — SRD 5.1, CC-BY 4.0

Readme

@lippelt/srd-dnd5e-2014

Módulo Dungeons & Dragons 5ª Edição (2014) para @lippelt/srd-core.

D&D® é trademark da Wizards of the Coast LLC. Este pacote usa mecânicas do System Reference Document 5.1 sob a Creative Commons Attribution 4.0 International License (CC-BY 4.0). Termos em PT-BR seguem a tradução oficial Galápagos Jogos.

O que inclui

  • d20 com vantagem/desvantagemroll('check' | 'd20', { modifier, advantage?, disadvantage? }). Vantagem e desvantagem se cancelam (regra do SRD).
  • Rolagem de ataque vs CAroll('attack', { modifier, targetAC?, advantage?, disadvantage? }). 20 natural sempre acerta; 1 natural sempre erra.
  • Teste de resistênciaroll('save', { modifier, dc?, advantage?, disadvantage? }).
  • Rolagem de danoroll('damage', { count, sides, modifier, critical? }). critical: true dobra os dados.
  • Utilitários exportados:
    • abilityMod(score)floor((score - 10) / 2)
    • spellSaveDC(proficiency, casterMod)8 + prof + mod
    • spellAttackBonus(proficiency, casterMod)prof + mod
  • 20 condições — Cego, Enfeitiçado, Surdo, Exaustão (níveis 1–6), Amedrontado, Agarrado, Incapacitado, Invisível, Paralisado, Petrificado, Envenenado, Caído, Contido, Atordoado, Inconsciente.
  • 3 campos de status — CA (Classe de Armadura), Mortes ✓, Mortes ✗.
  • 9 presets de dados — d20, d20 com vantagem/desvantagem, d4/d6/d8/d10/d12 (dano), d100.

Uso

import { register, getSystem } from '@lippelt/srd-core'
import { dnd5e2014, abilityMod, spellSaveDC } from '@lippelt/srd-dnd5e-2014'

register(dnd5e2014)

const sys = getSystem('dnd5e-2014')!

// Ataque com vantagem contra CA 16
const atk = sys.rules!.roll!('attack', { modifier: 6, targetAC: 16, advantage: true })
// → { total: 24, notes: ['vantagem', 'acertou (CA 16)'], ... }

// CD de magia pra um warlock CAR 18 com proficiência +3
const cd = spellSaveDC(3, abilityMod(18))   // 14

Testes determinísticos

import { setRoller, resetRoller } from '@lippelt/srd-dnd5e-2014'

setRoller(() => 20)         // todo d20 vira 20
const r = dnd5e2014.rules!.roll!('attack', { modifier: 5 })
// → crítico natural 20
resetRoller()

Licença

MIT (código). Mecânicas do SRD 5.1 sob CC-BY 4.0 (atribuição: Wizards of the Coast LLC).