Git Product home page Git Product logo

leaguelib's Introduction

LeagueLib

By Anshu Chimala, Tyrus Tenneson, and Gavin Saldanha.

LeagueLib is a Java library for the League of Legends RTMPS API, built on top of LoLRTMPSClient by Gabriel Van Eyck.

LeagueLib is built to power efficient, scalable, concurrent League of Legends web applications. Best served on a framework like Play.

This is the stuff we built to replace the backend that runs LoLTeam and LoLTalk. Our original code did its job, but wasn't scalable or efficient enough to meet our rising traffic. In response, we started building a new, highly scalable, massively concurrent framework for these applications, to serve tens of thousands of players all over the world. And we're making it open source so that other developers like us can make awesome League of Legends apps.

Features

  • Completely asynchronous API calls to the League of Legends RTMP server.
  • Synchronous API calls just as easily, for use in simple applications or on top of distributed, scalable, concurrent platforms like Akka.
  • Easy support for multiple League of Legends accounts for increased concurrency and minimal rate-limiting side effects.
  • Efficient design: request only as much information as you need, using the same API calls and structure that League of Legends uses internally.
  • Clean MVC patterns: Accounts can easily be marshaled to files or recorded in databases, distributed to different account queues for different servers, and a single LeagueSummoner model can contain references to real-time data across your application that updates in place.

Usage

We intend to put up a better form of documentation in the future, but until then, here are some basic implementation notes.

  • LeagueLib doesn't embed any kind of thread/job scheduling or distributed computing architecture. We figured more than enough of these exist and we instead chose to build something that could plug into any of them easily. For LoLTeam and LoLTalk, we simply wrote a layer on top of LeagueLib that plugs it into Play Framework's asynchronous job scheduling built on top of Akka, which runs on multiple processes distributed across the cloud via Heroku.
  • LeagueLib was designed with the primary goal of giving us scaffolding to build LoLTeam and LoLTalk on top of. As such, it is robust but not necessarily completely feature complete. We're going to keep adding on to it.
  • The LeagueSummoner object is the focus of everything in LeagueLib as it is right now. The very fundamental summoner service API calls return empty summoner containers with names and IDs and nothing else. As you request different types of information from different services, they get filled into your single summoner object in place. You should not be maintaining multiple copies of a summoner or throwing them away for no reason.

License

LeagueLib is licensed under the GNU GPL v3. You may use this code for commercial or non-commercial purposes.

You may:

  • Use LeagueLib in personal or commercial products, with attribution.
  • Modify and distribute LeagueLib, with attribution.

You may NOT:

  • Sell any portion of LeagueLib.
  • Use or distribute any portion of LeagueLib without the included licensing information, or without attribution.

Caution

LeagueLib is still currently in development. We would advise against using it in production applications until it's ready.

Code pulled off the master branch should always work correctly and pass all tests. We intend to put up sample code soon, but until then you should hopefully be able to figure out how to use LeagueLib by viewing MainTest.java or by reading through the comments on the LeagueConnection, LeagueAccount, and *Service.java classes.

leaguelib's People

Contributors

achimala avatar tyrust avatar

Watchers

Peter Son avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.