Skip to content

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.

Notifications You must be signed in to change notification settings

MajorTanya/HnKRocks-Router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


Chapter Links

/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:

  • [number] - integers or decimals (don't add the brackets)

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

Page links for a specific chapter:

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

Parameters:

  • [pageNumber] - integers (don't add the brackets)

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

Page image embed (Discord, etc.) links for a specific page

/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 Chapter Link

/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

Page links for latest chapter

/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:

  • [pageNumber] - integers (don't add the brackets)

Requires providing a page number.

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

Page image embed (Discord, etc.) links for a specific page

/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

Episode links for the Fandub project

/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:

  • [number] - integers (don't add the brackets)

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

Episode links for the Short Stories Fandub project

/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:

  • [work] - titles of works as described below (don't add the brackets).

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:

  • [work] - titles of works as described below.

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

Works directly related to Houseki no Kuni

"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


"Statue" (Japanese Volume 9 Extra)

/statue /vol9-extra /vol09-extra

Redirects to the Pastebin with a fan translation of the text in the Volume 9 Statue Artbook extra. Translation by Discord user @anonymously5866.

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


"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


Drone Show for Volume 13 Release Countdown (2024-11-20)

/drones /drone-show /vol13-drone-show

Redirects to the past livestream on the official Kodansha YouTube channel of the Volume 13 Release Countdown Drone Show.

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


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


Special Illustration for Tsuritama's Anime Debut

/tsuritama /tsuritama-illustration

Redirects to a fan translation blog entry for an illustration and special message by Haruko Ichikawa, made for the Tsuritama anime debut in 2012.

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


Interviews

/interview/[language]/[interview] /interviews/[language]/[interview]

Redirects to interviews conducted about Houseki no Kuni or other projects of Haruko Ichikawa. Some may only be available in specific languages.

Requires providing a language AND an interview. Please refer to the listed interviews below for the correct parameters.

All these work URLs are relative to https://hnk.rocks/interviews or https://hnk.rocks/interview.

Parameters:

  • [language] - language shorthand (don't add the brackets). Currently only uses en for English language interviews.
  • [interview] - interview link as specified below (don't add the brackets)

Interview with Eureka (2010)

/en/eureka-2010 /en/eureka

Redirects to a fan translation of an interview conducted by Eureka in 2010.

Example: https://hnk.rocks/interviews/en/eureka-2010


Interview with Kono Manga ga Sugoi (2014) - Part 1

/en/kono-manga-2014-pt-1 /en/2014-pt-1

Redirects to a fan translation of part 1 of an interview conducted by Kono Manga ga Sugoi in 2014. This part of the interview is specifically about Houseki no Kuni.

Example: https://hnk.rocks/interviews/en/kono-manga-2014-pt-1


Interview with Kono Manga ga Sugoi (2014) - Part 2

/en/kono-manga-2014-pt-2 /en/2014-pt-2

Redirects to a fan translation of part 2 of an interview conducted by Kono Manga ga Sugoi in 2014. This part of the interview is about Haruko Ichikawa's works in general as well as her process and sources of inspiration.

Example: https://hnk.rocks/interviews/en/kono-manga-2014-pt-2


Interview with Current Obsession (2015)

/en/current-obsession-2015 /en/current-obsession /en/co-2015

Redirects to an interview with Haruko Ichikawa, conducted by the Dutch magazine Current Obsession via e-mail.

Note: The website credits text and translation to 2018 but the relevant issue of the magazine was released in 2015, so 2015 is used here.

Example: https://hnk.rocks/interviews/en/current-obsession-2015


Interview with Entertainment Week (2016)

/en/entertainment-week-2016 /en/entertainment-week /en/entertainment-2016

Redirects to a fan translation of an interview conducted by Entertainment Week in 2016. The Japanese interview was originally conducted by Entertainment Week, whose website was shut down in June 2024.

Example: https://hnk.rocks/interviews/en/entertainment-week-2016


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.

About

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.

Topics

Resources

Stars

Watchers

Forks