Skip to content

ra9r/dnd5-srd

This branch is 1 commit ahead of soryy708/dnd5-srd:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c5cafd4 · Aug 23, 2022
Mar 13, 2017
Sep 27, 2019
Nov 15, 2019
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Nov 15, 2019
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Nov 15, 2019
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022
Aug 23, 2022

Repository files navigation

dnd5-srd

Dungeons & Dragons (5th edition) System Reference Document in node module form, as JSON.

Fork of a project by adrpadua.

Documentation

How to use?

As a simple example, lets display how many hit points an Aboleth has. There are two ways to access the data about monsters:

Approach 1:

const monsters = require('dnd5-srd/monsters');
const aboleth = monsters.find(monster => monster.name === 'Aboleth');
console.log(aboleth.hit_points);

Approach 2:

const dnd = require('dnd5-srd');
const monsters = dnd.data.monsters;
const aboleth = monsters.find(monster => monster.name === 'Aboleth');
console.log(aboleth.hit_points);

Reference

Currently there's no documentation for how the data looks like. You'll have to explore the JSON files to figure that out. The following data types are available:

  • abilityScores
  • classes
  • conditions
  • damageTypes
  • equipment
  • equipmentCategories
  • features
  • languages
  • levels
  • magicSchools
  • monsters
  • proficiencies
  • races
  • skills
  • spellcasting
  • spells
  • startingEquipment
  • subclasses
  • subraces
  • traits
  • weaponProperties

About

5th edition Dungeons & Dragons SRD JSON database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%