Drarig29 / brackets-viewer.js

A simple library to display tournament brackets (round-robin, single elimination, double elimination).
https://drarig29.github.io/brackets-docs
MIT License
177 stars 45 forks source link

Add a compatibility layer for Toornament #34

Closed Drarig29 closed 3 years ago

Drarig29 commented 3 years ago

This would enable the library to display Toornament data.

Make another project which will be able to showcase this, with an API call to get data. And the compatibility layer would be used to convert this data to something usable for the viewer. Both schemas are really close to each other.

If I add this in this library, I have to make sure to export this compatibility layer in another file, so that it's not shipped with the base of the library.

qlaffont commented 3 years ago

In fact, to use Toornament API you need to pay to use it. But I'm currently working to integrate your library in a project who is similar to Toornament. Ping me on Twitter if you are interested to work on it 😜 (@qlaffont)

Drarig29 commented 3 years ago

It's weird because I'm already using Toornament API for another project and I don't have to pay... maybe it's because we do a small number of requests.

And if your project is not open source or can't be self-hosted, it doesn't interest me. 😅

I created these libraries so that we can use it locally in a LAN party.

qlaffont commented 3 years ago

Maybe but it's quite weird, I ask access to API for a no-profit organization, they ask me around 400e if I remember well --".

No problem, I will try to use it and integrate it ^^". Thanks anyway ^^

Drarig29 commented 3 years ago

Done here: https://github.com/Drarig29/brackets-toornament-layer