bgg-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.10.2 • Public • Published

bgg-sdk

NPM Version

WORK IN PROGRESS: NOT YET READY FOR USE

A modern SDK for interacting with the BoardGameGeek (BGG) XMLAPI2, written in TypeScript and inspired by BGG.

Core Features

  • Support for all BGG XMLAPI2 endpoints (see documentation)
  • Automatic conversion of responses from XML to JSON
  • Exponential retry for queued requests
  • Type safety for requests and responses
  • Support for both CommonJS and ES modules
  • Usable in both server and browser environments

Quickstart

    npm install bgg-sdk

Code Example

import { bgg } from "bgg-sdk";
// import bgg from "bgg-sdk";

const results = await bgg.search({ query: "scythe" });

TODO

  • Make typing more consistent across routes (ex: page param)
  • Create unit tests for all endpoints

Package Sidebar

Install

npm i bgg-sdk

Weekly Downloads

72

Version

0.10.2

License

MIT

Unpacked Size

210 kB

Total Files

9

Last publish

Collaborators

  • colcross