Fix Kakuyomu Next.js crawling - #643
Merged
kanasimi merged 3 commits intoJul 18, 2026
Merged
Conversation
AlexbeatsZ
force-pushed
the
agent/kakuyomu-nextjs-support
branch
from
July 18, 2026 19:22
faa2dcf to
c30ec46
Compare
Do not inherit per-run regenerate state from cached work JSON, which otherwise repacks only the last chapter on a normal rerun.
kanasimi
approved these changes
Jul 18, 2026
kanasimi
marked this pull request as ready for review
July 18, 2026 23:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
tableOfContentsV2from the current Next.js__NEXT_DATA__Apollo state.https-proxy-agentfor Kakuyomu so HTTPS proxy CONNECT requests include SNI, with support for both proxy environment variables and the existingproxy=CLI argument.regenerateas per-run state instead of inheriting it from cached work JSON.AIREADME.md.Why
Kakuyomu's work page no longer exposes the legacy
widget-toc-*markup, so the crawler detected zero chapters. CeJS 4.5.10's built-in HTTPS proxy agent also opens TLS without SNI, which CloudFront rejects with a TLS handshake failure.After an EPUB regeneration, cached
regenerate: truewas inherited on the next normal run. The crawler then resumed from the last downloaded chapter and rewrote the OPF manifest and spine with only that chapter, making readers show only the final episode.Validation
node --check novel.ja-JP/kakuyomu.jsnpm ls cejs https-proxy-agent --depth=016818093080247863087: 136 of 136 episodes.7z treportedEverything is Okfor the generated EPUB.proxy=http://127.0.0.1:7897and confirmed the completed work was detected correctly.