My attempt to resurrect the old LW Power Reader is facing an obstacle just before the finish line, due to current LW's API limitations. So this is a public appeal to the site admins/devs to relax the limit.
Specifically, my old code relied on LW1 allowing it to fetch all comments posted after a given comment ID, but I can't find anything similar in the current API. I tried reproducing this by using the allRecentComments endpoint in GraphQL, but due to the offset parameter being limited to <2000, I can't fetch comments older than a few weeks. The Power Reader is part designed to allow someone to catch up on or skim weeks/months worth of LW comments, hence the need for this functionality.
As a side effect of this project, my AI agents produced a documentation of LW's GraphQL API from LW's source code. (I was unable to find another API reference for it.) I believe it's fairly accurate, as the code written based on it seems to work well aside from the comment-loading limit.
Thanks for taking a look! I've removed the large programmatically generated file (src/generated/graphql.ts) from the repository to improve auditability and reduce diff noise.
I've also added these security mitigations for the development environment:
npm audit --audit-level=high into the build pipeline to automatically block builds with critical vulnerabilities.vite-plugin-monkey version to mitigate potential supply chain risks.Re: color mixing - noted! It's currently good enough for this use case, but I... (read more)