MCPcopy Index your code
hub / github.com/5e-bits/5e-database

github.com/5e-bits/5e-database @v5.10.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v5.10.0 ↗ · + Follow
52 symbols 231 edges 67 files 13 documented · 25%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

5e-database

Build Status Discord

Holds the database for the D&D 5th Edition API at http://dnd5eapi.co/

Talk to us on Discord!

How to run

With Docker

You should be able to build locally and then run the local Docker image. This can be done one of two ways:

  1. If you just need an image and you aren't running an M1:
docker run ghcr.io/5e-bits/5e-database:latest
  1. If you're running an M1 or you want to test changes that you've made to the Database:
docker build -t 5e-database .
docker run -i -t 5e-database:latest

Without Docker

First you need to make sure you have MongoDB installed locally.

You can load this data locally by running:

MONGODB_URI=mongodb://localhost/5e-database npm run db:refresh

API Issues

If you see anything wrong with the API and not the data, please open an issue or PR over here.

Contributing

  • Fork this repository
  • Create a new branch for your work
  • Push up any changes to your branch, and open a pull request. Don't feel it needs to be perfect — incomplete work is totally fine. We'd love to help get it ready for merging.
  • We use Semantic Release so here are the PR naming convetions:
Commit message Release type
fix(pencil): stop graphite breaking when too much pressure applied Patch Fix Release
feat(pencil): add 'graphiteWidth' option Minor Feature Release
perf(pencil): remove graphiteWidth option

BREAKING CHANGE: The graphiteWidth option has been removed.

The default graphite width of 10mm is always used for performance reasons. | Major Breaking Release

(Note that the BREAKING CHANGE: token must be in the footer of the commit) |

Code of Conduct

The Code of Conduct can be found here.

License

This project is licensed under the terms of the MIT license. The underlying material is released using the Open Gaming License Version 1.0a

Contributors

Extension points exported contracts — how you extend this code

IndexEntry (Interface)
(no doc)
scripts/dbRefresh.ts
LocaleDocument (Interface)
(no doc)
scripts/translationUtils.ts
TranslationContext (Interface)
(no doc)
scripts/update/processor.ts

Core symbols most depended-on inside this repo

getLocaleFromFilepath
called by 10
scripts/dbUtils.ts
buildTranslationDoc
called by 10
scripts/translationUtils.ts
getCollectionNameFromJsonFile
called by 6
scripts/dbUtils.ts
getIndexName
called by 6
scripts/dbUtils.ts
getEnglishSourcePath
called by 6
scripts/translationUtils.ts
readFileContent
called by 6
scripts/update/processor.ts
getCollectionPrefix
called by 5
scripts/dbUtils.ts
processTranslationEntries
called by 5
scripts/translationUtils.ts

Shape

Function 49
Interface 3

Languages

TypeScript100%

Modules by API surface

scripts/update/processor.ts16 symbols
scripts/dbRefresh.ts8 symbols
scripts/dbUtils.ts7 symbols
scripts/translationUtils.ts6 symbols
scripts/update/gitUtils.ts5 symbols
src/2024/tests/tables.test.ts3 symbols
src/tests/translationTestUtils.ts2 symbols
src/2014/tests/tables.test.ts2 symbols
src/2024/tests/schemas.test.ts1 symbols
src/2014/tests/schemas.test.ts1 symbols
scripts/dbUpdate.ts1 symbols

Datastores touched

(mongodb)Database · 1 repos
5e-databaseDatabase · 1 repos

For agents

$ claude mcp add 5e-database \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact