Siderite / Siderite/lichessTools

User request: study stats

Open
#362 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependency enhancement
Dominant language
JavaScript
Stars
92
Forks
20
Avg merge
19h 59m
Merged PRs (30d)
1

Description

It would be nice if you could see the statistics for a study, for example the total number of moves, time since created, etc...

It could work in general, too. Like counting the number of moves in a PGN in Analysis board.

lichess.analysis.study.data contains (amongst other things):

  • likes
  • createdAt
  • secondsSinceUpdate

Unfortunately, this doesn't apply to the study list because there are no useful APIs for getting this information. If a study is private, it will say it's private even if you are a contributor. One option is to execute a call at https://lichess.org/study/{studyId} and parse the included JSON, but it seems wasteful to do that for each study on a page.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how the study list and Analysis board currently obtain data, including lichess.analysis.study.data. Compare that with the study/{studyId} response described in the issue, then define which statistics should appear and verify the result for public and private studies.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.