npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

simple-challonge-api

v1.0.1

Published

A challonge api for js

Downloads

5

Readme

challonge.js

Install

$ npm install simple-challonge-api

Get all use the API for your account

const Challonge = require('simple-challonge-api');

const client = new Challonge({
	"username" : "Your challonge username",
	"apiKey" : "Your API key", // https://challonge.com/settings/developer
	"tournamentID" : "The tournament id of the tournament you are using the API with" // https://challonge.com/<tournamentID>
})

API Client

Everything documented in the challonge API docs except the "Attatchment" section are available in this API

The commands for the API are sorted based on branches on the API docs. For example the match index command is called with client.matches.index() whereas the participants index command is client.participants.index()

To use the functions of the API with post data (i. e. the tournament show api call has the arguments include_participants and include_matches) just call the methods with arguments in order as they show on the challonge api documentation page or check the documentation for the api (in progress). Example:

client.tournements.show(0, 1) // Where 0 is the `include_participants` parameter and 1 is the `include_matches` parameter as indicated by https://api.challonge.com/v1/documents/tournaments/show

When using the create_bulk, create, and update functions of client.participants use the format used in client.participants.participant. On a similar note, when using the update and create methods of client.tournaments use the format used in client.tournaments.tournament

Everything here returns promises synchronously you can than acces with .then. Example:

client.matches.index().then(h => console.log(h)

Development

Install

 $ git clone https://github.com/NicoNekoru/challonge.js
 $ cd challonge.js
 $ npm install

Run Tests

Build Status

$ npm test

Issue Tracking

Issues are tracked on github: https://github.com/NicoNekoru/challonge.js/issues

Branching

master is the active development branch

live is the latest published build on npm