JavaScript Library

Since about 3 years ago I’ve been off and on working on making a comprehensive library for wolfery’s api, I’ve finally just recently finished it after some motivation popped up out of nowhere, as it does.

It can be found on github at these links:

I am very open to help and/or comments about it, this projects was done over several years (with the majority of work being in the last month), so I am sure there are some glaring issues here and there. It would be real nice if there were some way to selfhost a realm to actually fully test things without having to either break shit or guess based on client code.

3 Likes

A funky quirk I’ve noticed is that all of players, bots, and tokens can get all of the info types (core.info, mail.info, note.info, report.info, support.info, tag.info, client.web.info) , awake characters (core.chars.awake), global teleports (core.nodes), and global tags (tag.tags)

However, only players can get tag groups (tag.groups)

I’ve also stumped on notices (auth.user.{id}.notices, identity.user.{id}.notices) since I, ya know, don’t have any to actually see the structure and can’t exactly create any at a moment’s notice (I believe a notice comes in when you get the supporter tag, but I’ve already done that and dismissed the notice before seeing its structure)