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 🙏

© 2024 – Pkg Stats / Ryan Hefner

dungeonworld-data

v0.0.8

Published

An NPM module to grab and work with Dungeon World text as JSON. Moves, classes, monsters, items, spells etc.

Downloads

126

Readme

Dungeon World Data

A NodeJS project to put all Dungeon World's data into a JSON file and an npm module.

Getting the JSON

Raw JSON: https://raw.githubusercontent.com/Vindexus/DungeonWorldData/0.0.4/json/game_data_raw.json
Basic JSON: https://raw.githubusercontent.com/Vindexus/DungeonWorldData/0.0.4/json/game_data_basic.json

Raw vs Basic

The raw JSON file includes the unparsed handlebar helpers such as Take +1 forward to {{move 'defy_danger'}}.
The basic JSON file has had those parsed through basic helpers, so it would become Take +1 forward to Defy Danger.

Getting the Module

npm install dungeonworld-data

Example Code

var dw = require('dungeonworld-data')
console.log("Bard base HP: " + dw.basicData.classes.bard.base_hp)

Example Projects

NodeJS Sample Scripts

Some simple command line tools for grabbing Dungeon World data.

Discord Bot

A bot for Discord that responds to commands with Dungeon World content.

Compiled from Source

The JSON is compiled from the files and folders in the source folder using the npm module I've written called rpgparser-data.

Preview/Excerpt of Data

This is a preview of the structure; the actual data has more text.

{ 
  classes: {
    bard: {
      name: 'Bard',
      description: 'The poems say an adventurer’s life is all open road.'
      base_hp: 6,
      base_load: 9,
      starting_moves: [
        {
          name: 'Arcane Art',
          key: 'arcane_art'
          description: "When you weave magic into music, roll+CHA and pick one\n - Heal an ally\n - Give an ally +1 forward"
        }
      ]
    }
  },
  tags: {
    near: {
      name: 'Near',
      description: 'It’s useful for attacking if you can see the whites of their eyes.',
    }
  },
  equipment: {
    ragged_bow: {
      name: 'Ragged Bow',
      tags: ['near']
    }
  },
  moves: {
    spout_lore: {
      key: 'spout_lore',
      name: 'Spout Lore',
      description: 'When you consult your accumulated knowledge about something, roll+Int. On a 10+, the GM will tell you something interesting and useful about the subject relevant to your situation. On a 7–9, the GM will only tell you something interesting—it’s on you to make it useful. The GM might ask you “How do you know this?” Tell them the truth, now.'
    }
  }
}

Contributing

Clone this project to your computer and start adding files into the source folder to add content. You'll need to install and run the proper NodeJS files to get it to compile.

cd /path/to/where/you/want/to/work
git clone [email protected]:Vindexus/DungeonWorldData .
npm install
npm run watch

When you do npm run watch it will watch for any changes to source files and automatically update the two JSON files. Create a new pull request when you want to add the data you've added.