Giter Club home page Giter Club logo

equine's Introduction

equine ๐Ÿด

Minimal Lichess API Client for Node.js

Documentation

Visit https://equine.vercel.app to view the full documentation.

Contributing

Please see our contributing.md.

Good First Issues

We have a list of good first issues that contain bugs that have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.

equine's People

Contributors

dependabot[bot] avatar devjiwonchoi avatar nicholasdejong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

equine's Issues

Find better way to test the assets

Currently, we are using my own account devjiwonchoi and devjiwonchoi_equine to test the assets. We should find a better way to test this.

feat: users

  • users/status
  • player
  • player/top/{nb}/{perfType}
  • user/{username}
  • user/{username}/rating-history
  • user/{username}/perf/{perf}
  • user/{username}/activity
  • users - POST
  • #5
  • streamer/live
  • crosstable/{user1}/{user2}
  • autocomplete
  • user/{username}/note - POST
  • user/{username}/note - GET
// berserk

client.users.get_realtime_statuses โœ… 
client.users.get_all_top_10 โœ… 
client.users.get_leaderboard โœ… 
client.users.get_public_data โœ… 
client.users.get_activity_feed โœ… 
client.users.get_by_id โœ… 
client.users.get_by_team โ“ 
client.users.get_live_streamers โœ… 
client.users.get_rating_history โœ… 
client.users.get_crosstable โœ… 
client.users.get_user_performance โœ… 

feat: challenge

I'm assuming that by adding challenge, we'll be able to test against board.

Fetcher is limited in endpoints and JSON

What is the Issue?

Fetcher only supports endpoints starting with /api

The LICHESS_API_URL constant starts with /api, which I am assuming is for convenience. This means that any provided endpoint must start with /api to be used by the fetcher. However, while working on the Study API, I noticed that the study.studies() method is not compatible with the current fetcher structure because its endpoint does not start with /api.

Fetcher only supports JSON endpoints

Moreover, the study.chapter() and study.chapters() methods return PGN, which is in string format. These responses cannot be JSON parsed. The current fetcher implementation always parses the response as JSON, which means that these methods are also not compatible with the current fetcher.

My proposal

In order to support these exceptions in the current fetcher, and to be more futureproof, why don't we add an additional parameter fetchOptions to the fetcher? Here, we can define a custom API url (in case it does not start with the lichess API url, for example), state whether the response should be parsed through JSON, or, perhaps in the future, whether the response is in nd-json format and needs to be streamed instead. I can self-assign this issue (with your approval, of course) since I am already busy with the Study API.

feat: board

contribution: increasing coverage of lichess API, parsers, better error handling

Hi,

Hope you're doing great. I wanted to ask whether you're open to contributions, and whether the following additions you'd consider useful:

  • Increasing the Coverage of Lichess API: there're some endpoints that I was missing
  • Zod Parsers for Data Sanity: This would help make sure our data's always in the right shape and give us clearer error messages when it's not. Plus, I'd like to implement it in a way where we could skip this step if needed.
  • Better Error Messages: Building on the parsers to help us figure out whether the responses are as expected.

If all, or some of these, are interesting to you, I'd be happy to implement them. I already have some of the code for my personal project. If not, of course, no worries.
And, lastly, I'd like to ask whether there are any contribution guidelines, standards you'd like pull requests to meet (tests, coding style, whatever).

Hope all is good with you, cheers!
Lukas

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.