Skip to content

fractaloop/rpg-graph-experiments

Repository files navigation

RolePlayGateway Graphing Experiments

These are some basic tests for graphing data from RolePlayGateway.com

Start

$ npm install
$ npm start

Endpoints

All data for this project is derived from public JSON endpoints. The API is completely ephemeral during this period. Pay attention to file modification times. Old files are more likely to be broken.

Places

Places are locations within a Roleplay.

https://www.roleplaygateway.com/roleplay/the-multiverse/places?format=json

Returns an array of Place objects.

[
  {
    "id": "1",
    "name": "Mjötviðr; The Realms",
    "roleplay_id": "1",
    "owner": "4",
    "url": "the-realms"
  }
]

Exits

Exits connect locations within a Roleplay.

https://www.roleplaygateway.com/roleplay/the-multiverse/exits?format=json

[
  {
    "place_id": "49222",
    "destination_id": "16861",
    "direction": "east",
    "mode": "normal"
  }
]

There are 4 cardinal directions:

  • north
  • south
  • east
  • west

As well as 2 vertical directions:

  • up
  • down

Places can be contained within another:

  • in
  • out

And a parent-child relationship can be expressed:

  • ascend
  • descend

Local testing

npm install
beefy index.js

About

Graphing experiments for RolePlayGateway.com data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published