MCPcopy Index your code
hub / github.com/MrPrimate/ddb-proxy

github.com/MrPrimate/ddb-proxy @v0.0.25

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.25 ↗ · + Follow
47 symbols 101 edges 12 files 8 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ddb-proxy

This proxy allows for communication with DDB for use integrating content into Foundry VTT.

It provides the following backend functionality for ddb-importer

  • Characters
  • Spells
  • Items
  • Monsters

Setup

This proxy is updated to work with the latest version of DDB Importer as quickly as possible.

Run this as a nodeJS app the standard way.

Install:

yarn install

Run:

node index.js

You can also run this as a docker image, for details see Docker instructions

It must be proxied behind a service providing an SSL/TLS encryption if you are not running on your local machine. I would recommend Caddy.

If using DDB Importer v3.1.26 or higher you can enable the custom proxy and change the endpoint address in the settings menu.

If using an earlier version, in Foundry's developer console or the web browser's developer console (depending on how you're hosting Foundry) run the following commands:

game.settings.set("ddb-importer", "custom-proxy", true);
game.settings.set("ddb-importer", "api-endpoint", "YOUR_URL_HERE");

e.g. running locally

game.settings.set("ddb-importer", "custom-proxy", true);
game.settings.set("ddb-importer", "api-endpoint", "http://localhost:3000");

To revert to MrPrimate's proxy:

game.settings.set("ddb-importer", "api-endpoint", "https://proxy.ddb.mrprimate.co.uk");
game.settings.set("ddb-importer", "custom-proxy", false);

How can I see if the server is running?

Visit YOUR_URL_HERE/ping e.g. https://myddbproxy.example.com/ping

Why is x feature missing

This is a cut down, MVP implementation of the proxy, it is meant for individual use and does not implement caching. It should not be run as a service for others.

It does not include and features in development.

Support

No support is provided for this software.

Core symbols most depended-on inside this repo

exists
called by 21
cache.js
add
called by 3
cache.js
isValidData
called by 3
spells.js
filterByLevel
called by 3
spells.js
isValidData
called by 3
character.js
extractAlwaysKnownSpells
called by 2
spells.js
extractCasterLevel
called by 2
spells.js
getClassFeatures
called by 2
filterModifiers.js

Shape

Function 41
Method 4
Class 2

Languages

TypeScript100%

Modules by API surface

spells.js14 symbols
filterModifiers.js8 symbols
character.js7 symbols
cache.js6 symbols
monsters.js5 symbols
auth.js3 symbols
items.js2 symbols
lookup.js1 symbols
campaign.js1 symbols

For agents

$ claude mcp add ddb-proxy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact