Skip to content

fix(luascans): rebuild luacomic.org on heancms (migrated to Next.js + JSON API) - #436

Merged
AgentKush merged 3 commits into
masterfrom
fix/luacomic-heancms
Aug 5, 2026
Merged

fix(luascans): rebuild luacomic.org on heancms (migrated to Next.js + JSON API)#436
AgentKush merged 3 commits into
masterfrom
fix/luacomic-heancms

Conversation

@AgentKush

Copy link
Copy Markdown
Collaborator

luacomic.org migrated off the keyoapp theme to a heancms-style stack: a JSON API at api.luacomic.org plus a Next.js client-rendered reader. The old keyoapp jsoup selectors got an empty page.

Change: re-base LuaScans on HeanCms (moved keyoapp/en -> heancms/en) with a custom getPages.

  • ListHeanCms /query API; verified the response fields match (id, series_slug, title, thumbnail, description, status, rating).
  • ChaptersHeanCms /chapter/query?series_id= API; verified live (chapter_name, chapter_slug, series.series_slug, created_at).
  • Pages — the Next.js reader embeds page-image URLs (escaped) in its server-sent flight data under /uploads/series/..., in order. getPages fetches the reader HTML (parseRaw), unescapes, and regex-extracts them in document order. Verified on a free chapter: 16 ordered images extracted, image loads 200 image/jpg.

Note: newer chapters are paid (coin-gated) and render no images until purchased/logged-in - the parser lists all chapters; free ones read normally, which matches the site.

AgentKush and others added 2 commits August 5, 2026 21:07
…+ JSON API

luacomic.org moved off keyoapp to a heancms-style stack (api.luacomic.org JSON API + a Next.js client-rendered reader). Re-based LuaScans on HeanCms (list via /query, chapters via /chapter/query - both verified live) and added a getPages override that extracts the ordered page-image URLs from the reader's Next.js flight data (/uploads/series/...). Verified against the live site: /query fields match, chapters parse, and a free chapter's 16 ordered page images extract and load (200 image/jpg).

@AgentKush AgentKush left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sound

@AgentKush
AgentKush merged commit 677d824 into master Aug 5, 2026
5 checks passed
@AgentKush
AgentKush deleted the fix/luacomic-heancms branch August 5, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant