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

n8n-nodes-open5e

v0.1.2

Published

n8n community node for the Open5e API - D&D 5e SRD content

Readme

n8n-nodes-open5e

NPM Version

This is an n8n community node that lets you access D&D 5th edition SRD content from the Open5e API in your n8n workflows.

n8n is a fair-code licensed workflow automation platform.

Installation Operations Credentials Compatibility Usage Resources Limitations License

Installation

Follow the installation guide in the n8n community nodes documentation.

Manual Installation

npm install n8n-nodes-open5e

Operations

The Open5e node provides access to 12 different D&D 5e resources through the Open5e API. Each resource supports three operations:

  • Get Many: Retrieve multiple items with optional filters and pagination
  • Get: Retrieve a single item by its identifier (slug or key)
  • Search: Search for items by name or description

Credentials

No credentials required! The Open5e API is completely free and public. No API key or authentication is needed.

Compatibility

  • Minimum n8n version: unknown - the node was developed and tested on n8n 2.7, but should be compatible with earlier versions as well
  • Tested with n8n version: 2.7

Usage

Resources

The node provides access to the following D&D 5e resources:

  1. Monsters - Creatures and NPCs
  2. Spells - Magic spells
  3. Magic Items - Magical equipment
  4. Weapons - Weapon stats
  5. Armor - Armor types and stats
  6. Feats - Character feats
  7. Conditions - Status conditions
  8. Races - Player character races
  9. Classes - Player character classes
  10. Backgrounds - Character backgrounds
  11. Planes - Planes of existence
  12. Sections - Rules and lore sections

Example Workflows

1. Random Encounter Generator

Create random encounters by fetching monsters filtered by challenge rating:

  1. Add an Open5e node to your workflow
  2. Select Resource: Monster
  3. Select Operation: Get Many
  4. In Filters, add:
    • Challenge Rating: 5
    • Document Source: wotc-srd
  5. Toggle Return All ON to get all matching monsters
  6. Connect to a Function node to randomly select 3-5 monsters
  7. Format the output as needed (Discord message, email, etc.)

2. Spell Lookup Bot

Build a Discord bot that looks up spell information:

  1. Use a Discord Trigger node to listen for commands
  2. Add a Function node to extract the spell name from the command
  3. Add an Open5e node:
    • Resource: Spell
    • Operation: Search
    • Search Term: ={{ $json.spellName }}
  4. Add a Function node to format the spell details
  5. Send the formatted spell info back to Discord

3. Item Database Search

Search for magic items and weapons by name:

  1. Add an HTTP Request trigger or Form trigger to accept search queries
  2. Add an Open5e node:
    • Resource: Magic Item (or Weapon)
    • Operation: Search
    • Search Term: ={{ $json.query }}
    • Limit: 10
  3. Format and return the results

Filters and Options

Common Filters (All Resources)

  • Document Source (document__slug): Filter by source book
    • Examples: wotc-srd (official SRD), tob (Tome of Beasts), cc (Creature Codex)
  • Ordering: Sort results
    • Options: name (A-Z), -name (Z-A)

Resource-Specific Filters

Monsters:

  • Challenge Rating: e.g., 5, 1/2, 0
  • Type: e.g., dragon, humanoid, undead
  • Size: Tiny, Small, Medium, Large, Huge, Gargantuan

Spells:

  • Level: 0-9 (0 = cantrip)
  • School: e.g., evocation, abjuration, necromancy
  • Class: e.g., wizard, cleric, druid

Weapons & Armor:

  • Category: e.g., simple, martial (weapons); light, medium, heavy (armor)

Magic Items:

  • Type: e.g., weapon, armor, wondrous item
  • Rarity: common, uncommon, rare, very rare, legendary

Pagination

  • Return All: When enabled, automatically fetches all pages of results
  • Limit: When Return All is off, specify how many results to return (1-100)

The node automatically handles pagination by following the API's next links.

Resources

Limitations

Global Search Not Supported

The Open5e API's global search endpoint (/v1/search/) returns HTML instead of JSON, so it is not supported by this node. Use the Search operation on individual resources instead.

Self-Hosted Instances Not Supported

The node only connects to the public Open5e API at api.open5e.com. Self-hosted Open5e instances are not supported in v1.

Advanced Filtering

Only the most commonly used filters are exposed in the node UI. For advanced filtering needs, use the HTTP Request node directly with the Open5e API.

Development

# Install dependencies
npm install

# Build the node
npm run build

# Run in development mode
npm run dev

# Lint the code
npm run lint

# Fix linting issues
npm run lint:fix

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

  • Report issues at: https://github.com/garritfra/n8n-nodes-open5e/issues
  • Join the n8n community: https://community.n8n.io/