Coder Social home page Coder Social logo

curche / mangaplus-router Goto Github PK

View Code? Open in Web Editor NEW

This project forked from majortanya/hnkrocks-router

0.0 0.0 0.0 312 KB

A (WIP) Cloudflare Worker script for MangaPlus, mainly for better opengraph embeds

Home Page: https://majortanya.github.io/HnKRocks-Router/

TypeScript 100.00%

mangaplus-router's Introduction

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


"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.

mangaplus-router's People

Contributors

majortanya avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.