HnKRocks-Router

HnK.Rocks-Router

A Cloudflare Worker script for the Houseki no Kuni community, using Cloudflare KV to redirect chapter numbers to MangaDex links, among a few other redirecting services.

Many routes have convenience aliases, displayed in the tables of each route. You are free to use any of the listed aliases as they’re functionally identical.

All routes are relative to the base URL https://hnk.rocks.

Table of Contents


Houseki no Kuni on MangaDex

/

Redirects to the MangaDex title page for Houseki no Kuni.

Usage: https://hnk.rocks


/c/[number] /chapter/[number] /chapters/[number]

Redirects to the MangaDex reader for the chapter in question. If the chapter doesn’t exist, redirects to the MangaDex title page for Houseki no Kuni.

Requires providing a chapter number.

Parameters:

Example: https://hnk.rocks/chapter/1

/p/[pageNumber] /page/[pageNumber] /pages/[pageNumber]

Parameters:

Redirects to the MangaDex reader at the given page for the chapter in question. If the chapter doesn’t exist, redirects to the MangaDex title page for Houseki no Kuni. If the page doesn’t exist, MangaDex will display the first page by default.

Requires providing a chapter number.

Example: https://hnk.rocks/chapter/1/page/2

/i

Provides a specially formatted HTML response which will be rendered as an image embed of the specified page number.

Requires providing a chapter and a page number.

Example: https://hnk.rocks/chapter/1/page/2/i


/latest /newest /new

Redirects to the latest released chapter as scanlated by the MangaDex user Tissal.

Note that this link will always redirect to the newest chapter, so it is not suitable as a permanent link to any one chapter.

Example: https://hnk.rocks/latest

/p/[pageNumber] /page/[pageNumber] /pages/[pageNumber]

Redirects to the MangaDex reader at the given page for the latest released chapter as scanlated by the MangaDex user Tissal. If the page doesn’t exist, MangaDex will display the first page by default.

Parameters:

Requires providing a page number.

Example: https://hnk.rocks/latest/page/1

/i

Provides a specially formatted HTML response which will be rendered as an image embed of the specified page number.

Requires providing a page number.

Example: https://hnk.rocks/latest/page/1/i


Countdown to the next Chapter

/next

Provides a countdown to the (estimated) next chapter release. The exact hours, minutes, and seconds aren’t perfectly accurate, but give a broad picture.

Supports Social Media link previews, so just sending the link to e.g. Discord will show the remaining time.

Usage: https://hnk.rocks/next


Time since the last Chapter release

/since

Provides a counter of the time elapsed since the last chapter was released, as scanlated by the MangaDex user Tissal.

Usage: https://hnk.rocks/since


Houseki no Kuni (Minimalist Coloured version)

/minimalist

Redirects to the MangaDex title page for the Houseki no Kuni Minimalist Coloured version fan project.

Example: https://hnk.rocks/minimalist


Houseki no Kuni (Coloured version)

/color /colored /colour /coloured

Redirects to the MangaDex title page for the Houseki no Kuni Coloured version fan project.

Example: https://hnk.rocks/colour


The uselessphos Discord emote

/uselessphos

Shows the uselessphos Discord Emote.

Usage: https://hnk.rocks/uselessphos


Feedback form

/feedback

Redirects to a Google Form to provide feedback and bug reports about HnK.rocks.

Usage: https://hnk.rocks/feedback


Overview over all available Redirects

/about

Redirects to this Redirection Overview.

Usage: https://hnk.rocks/about


Fandub project

/fandub /fandub/playlist

Redirects to the YouTube Playlist for the Houseki no Kuni Fandub Project.

Example: https://hnk.rocks/fandub

/fandub/e/[number] /fandub/episode/[number] /fandub/episodes/[number]

Redirects to the YouTube video for the Fandub episode in question. If the episode doesn’t exist, redirects to the YouTube Playlist for the Fandub Project.

Parameters:

Requires providing an episode number.

Example: https://hnk.rocks/fandub/episode/1


Short Stories Fandub project

/stories-fandub /stories-fandub/playlist

Redirects to the YouTube Playlist for the Ichikawa Short Stories Fandub project.

Example: https://hnk.rocks/stories-fandub

/stories-fandub/[work]

Redirects to the YouTube video for the Ichikawa Short Stories Fandub episode in question. If the episode doesn’t exist, redirects to the YouTube Playlist for the Ichikawa Short Stories Fandub project.

Parameters:

Requires providing a work title.

Existing Episodes

Example: https://hnk.rocks/stories-fandub/on-pandora


Other works by Haruko Ichikawa

/other/[work] /etc/[work]

Redirects to other works by Haruko Ichikawa. Not all links redirect to MangaDex, as not all works are available there.

Requires providing a work, see list below.

Parameters:

All these work URLs are relative to https://hnk.rocks/other or https://hnk.rocks/etc.

“Pseudomorph of Love” (Artbook)

/artbook /pseudomorph /pseudomorph-of-love

Redirects to the Houseki no Kuni fandom wiki article with the Artbook.

Example: https://hnk.rocks/other/pseudomorph


“Freedom Love Hell” (Japanese Volume 10 Extra)

/freedom /love-freedom /love-freedom-hell /vol10-extra

Redirects to the Houseki no Kuni fandom wiki article with the Artbook. This includes the original Houseki no Kuni one-shot chapter.

Example: https://hnk.rocks/other/freedom


Original one-shot (Part of Japanese Volume 10 Extra)

/one-shot /oneshot

Redirects to the section of the Houseki no Kuni fandom wiki article with the Freedom Love Hell Artbook, which includes this one-shot chapter.

Example: https://hnk.rocks/other/one-shot


Lorebook (Japanese Volume 11 Extra)

/lorebook /hnk-lorebook /vol11-extra

Redirects to the Imgur post with the machine-translated, non-typeset version of the Volume 11 Lorebook extra.

Example: https://hnk.rocks/other/lorebook


“Party at the End” (Japanese Volume 12 Extra)

/party /party-at-the-end /vol12-extra

Redirects to the GitHub repository of the translated Volume 12 Extra book titled “Party at the End”.

Example: https://hnk.rocks/other/party


Works unrelated to Houseki no Kuni:

“25 Hour Vacation”

/25-ji-no-vacances /25-hour-vacation /vacances

Redirects to the MangaDex chapter reader for the story “25 Hour Vacation” in the Haruko Ichikawa Anthology.

Example: https://hnk.rocks/other/vacances


Haruko Ichikawa Anthology

/anthology /ichikawa-haruko-sakuhinshuu /sakuhinshuu

Redirects to the MangaDex title page for the Haruko Ichikawa Anthology.

Example: https://hnk.rocks/other/anthology


“Moshimo, Tokyo”

/moshimo /moshimo-tokyo

Redirects to the MangaDex title page for “Moshimo, Tokyo”, which includes a contribution by Haruko Ichikawa.

Example: https://hnk.rocks/other/moshimo


“Mushi to Uta”

/mushi /mushi-to-uta

Redirects to the MangaDex chapter reader for the story “Mushi to Uta” in the Haruko Ichikawa Anthology.

Example: https://hnk.rocks/other/mushi


“Ouji no Himitsu”

/ouji /ouji-no-himitsu

Redirects to the MangaDex title page for “Ouji no Himitsu”.

Example: https://hnk.rocks/other/ouji


“Saegusa-Sensei”

/saegusa /saegusa-sensei

Redirects to the MangaDex title page for “Saegusa-Sensei”.

Example: https://hnk.rocks/other/saegusa


Technical & Protected Routes

oEmbed Route

/oembed

oEmbed API to facilitate enhanced embedding of hnk.rocks links. Only useful for the redirection backend.


Updating /latest, /since, and /next

/submit

Protected Route. Used to add new chapter links and to update the /latest, /since, and /next endpoints.

hnk.rocks made by @majortanya on Discord.