Commit e2883d5519

e2883d55195748272501d7d9e0a8e2f6f5f9bd35

parent: e9a7a9077f

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-10-17 11:45 UTC

library

Layout: unified · split

docs/.vitepress/configs/markdown/index.ts +10
@@ -50,6 +50,7 @@ export function configureMarkdown(md: MarkdownRenderer) {
5050 })
5151 md.use(attrs)
5252 renderMirrorTooltip(md)
53 renderLibrarySize(md)
5354 renderTooltip(md)
5455 renderInlineTooltip(md)
5556 md.use(markdownSteps)
@@ -59,6 +60,15 @@ export function configureMarkdown(md: MarkdownRenderer) {
5960 renderHighlight(md)
6061}
6162
63function renderLibrarySize(md: MarkdownRenderer) {
64 md.use(
65 MdReg(/==l:(.+?)==/, ([, name]: string[]) => {
66 const site = name.trim().replace(/"/g, '&quot;')
67 return `<LibrarySize name="${site}" />`
68 })
69 )
70}
71
6272function renderInlineTooltip(md: MarkdownRenderer) {
6373 md.use(
6474 MdReg(
docs/.vitepress/theme/components/LibrarySize.vue added +48
@@ -0,0 +1,48 @@
1<script setup lang="ts">
2
3import { onMounted, ref } from 'vue'
4
5const props = defineProps<{ name: string }>()
6
7const LIBRARY_URL = 'https://library-sizes.duckling.workers.dev/'
8
9interface Entry {
10 size: string
11 updated: string
12}
13type Library = { anime: Record<string, Entry>; manga: Record<string, Entry> }
14
15// One shared request per page, regardless of how many markers are used.
16let pending: Promise<Library> | null = null
17
18function load(): Promise<Library> {
19 if (!pending) {
20 pending = fetch(LIBRARY_URL)
21 .then(res => (res.ok ? res.json() : Promise.reject(res.status)))
22 .catch(() => ({ anime: {}, manga: {} }) as Library)
23 }
24 return pending
25}
26
27const normalize = (s: string) => s.toLowerCase().replace(/[^a-z0-9]/g, '')
28
29function lookup(lib: Library, name: string): string | undefined {
30 const wanted = normalize(name)
31 for (const section of [lib.manga, lib.anime]) {
32 for (const [site, entry] of Object.entries(section ?? {})) {
33 if (normalize(site) === wanted) return entry.size
34 }
35 }
36 return undefined
37}
38
39const size = ref('')
40
41onMounted(async () => {
42 size.value = lookup(await load(), props.name) ?? ''
43})
44</script>
45
46<template>
47 <span class="library-size">{{ size }}</span>
48</template>
docs/.vitepress/theme/globalComponents.ts +2
@@ -6,6 +6,7 @@ import Collapsible from './components/Collapsible.vue'
66import Fb from './components/Fb.vue'
77import Feedback from './components/Feedback.vue'
88import Highlight from './components/Highlight.vue'
9import LibrarySize from './components/LibrarySize.vue'
910import LinkInline from './components/LinkInline.vue'
1011import MirrorTooltip from './components/MirrorTooltip.vue'
1112import ScrapeTable from './components/ScrapeTable.vue'
@@ -22,6 +23,7 @@ export function registerGlobalComponents(app: App) {
2223 app.component('Authors', Authors)
2324 app.component('Tooltip', Tooltip)
2425 app.component('MirrorTooltip', MirrorTooltip)
26 app.component('LibrarySize', LibrarySize)
2527 app.component('Feedback', Feedback)
2628 app.component('fb', Fb)
2729 app.component('Collapsible', Collapsible)
docs/websites.md +29 −29
@@ -23,19 +23,19 @@ outline: 2
2323
2424| Websites | Library ==Library== | Login | Tracking | Sub |
2525|----------|---------------------|-------|----------|-----|
26| [Re:ANIME](https://reanime.to/home) ==m:https://reindex.to== ==ReANIME== | 6.4k | :yes: | :sync::ie::msync: | :cc: |
27| [AnimeStream](https://anime.uniquestream.net/) ==AnimeStream== | 3.4k | :yes: | :no: | :cc: |
28| [Animotvslash](https://www.animotvslash.org/) ==m:https://animotv.ru== ==Animotvslash== | 2.9k | :yes: | :no: | :cc::oc: |
26| [Re:ANIME](https://reanime.to/home) ==m:https://reindex.to== ==ReANIME== | ==l:reanime== | :yes: | :sync::ie::msync: | :cc: |
27| [AnimeStream](https://anime.uniquestream.net/) ==AnimeStream== | ==l:uniquestream== | :yes: | :no: | :cc: |
28| [Animotvslash](https://www.animotvslash.org/) ==m:https://animotv.ru== ==Animotvslash== | ==l:animotvslash== | :yes: | :no: | :cc::oc: |
2929| [ani.pm](https://ani.pm/) ==anipm== | 8.9k | :yes: | :sync::ie::msync: | :cc::oc: |
30| [MKissa](https://mkissa.to/anime) ==MKissa== | 11.9k | :yes: | :msync: | :oc: |
30| [MKissa](https://mkissa.to/anime) ==MKissa== | ==l:mkissa== | :yes: | :msync: | :oc: |
3131
3232<more>
3333
34| [AniHQ](https://anihq.cc/home/) | 5.8k | :yes: | :no: | :oc: |
35| [AnimePahe](https://animepahe.pw/) ==Animepahe== | 6.5k | :no: | :msync: | :oc: |
36| [Anime Nexus](https://anime.nexus/) ==AnimeNexus== | 2.1k | :yes: | :sync::ie::msync: | :cc: |
37| [AniZone](https://anizone.to/) ==AniZone== | 2.3k | :no: | :msync: | :cc: |
38| [KickassAnime](https://kaa.lt/) ==KAA== | 3.8k | :yes: | :msync: | :cc: |
34| [AniHQ](https://anihq.cc/home/) | ==l:anihq== | :yes: | :no: | :oc: |
35| [AnimePahe](https://animepahe.pw/) ==Animepahe== | ==l:animepahe== | :no: | :msync: | :oc: |
36| [Anime Nexus](https://anime.nexus/) ==AnimeNexus== | ==l:animenexus== | :yes: | :sync::ie::msync: | :cc: |
37| [AniZone](https://anizone.to/) ==AniZone== | ==l:anizone== | :no: | :msync: | :cc: |
38| [KickassAnime](https://kaa.lt/) ==KAA== | ==l:kaa== | :yes: | :msync: | :cc: |
3939| [AnimeX](https://animex.one/home) :scrpr: | - | :yes: | :sync::ie: | :cc::oc: |
4040| [Miruro](https://www.miruro.to/) :scrpr: ==m:https://www.miruro.com== | - | :yes: | :sync::msync: | :cc::oc: |
4141
@@ -147,32 +147,32 @@ Some content may not be available depending on your region.
147147
148148| Websites | Library ==Library== | Tracking | Sources | Layout | Social |
149149|----------|---------------------|----------|---------|--------|--------|
150| [Kagane](https://kagane.si/) ==m:https://kagane.org/== ==Kagane== | 90k | :msync: | :ms::up: | :sp::dp::ls: | :cmnt: |
151| [MangaDot](https://mangadot.net/) ==Mangadotnet== | 47k | :sync::ie: | :ms::up: | :sp::dp::ls: | :cmnt::frm: |
152| [Toonkotsu](https://toonkotsu.com/) ==Toonkotsu== | 85k | :sync::ie: | :ms: | :sp::dp::ls: | :cmnt: |
153| [Comix](https://comix.to/) [:alt:](https://comix.ws/) ==Comix== | 79k | :sync::ie::msync: | :ms::up: | :sp::dp::ls: | :cmnt: |
154| [Weeb Central](https://weebcentral.com/) ==WeebCentral== | 11k | :msync: | :ss: | :lsg: | :cmnt::frm: |
155| [Atsumaru](https://atsu.moe/) ==Atsumaru== | 27k | :sync::ie::msync: | :ps: | :sp::dp::ls: | :cmnt::frm: |
150| [Kagane](https://kagane.si/) ==m:https://kagane.org/== ==Kagane== | ==l:kagane== | :msync: | :ms::up: | :sp::dp::ls: | :cmnt: |
151| [MangaDot](https://mangadot.net/) ==Mangadotnet== | ==l:mangadotnet== | :sync::ie: | :ms::up: | :sp::dp::ls: | :cmnt::frm: |
152| [Toonkotsu](https://toonkotsu.com/) ==Toonkotsu== | ==l:toonkotsu== | :sync::ie: | :ms: | :sp::dp::ls: | :cmnt: |
153| [Comix](https://comix.to/) [:alt:](https://comix.ws/) ==Comix== | ==l:comix== | :sync::ie::msync: | :ms::up: | :sp::dp::ls: | :cmnt: |
154| [Weeb Central](https://weebcentral.com/) ==WeebCentral== | ==l:weebcentral== | :msync: | :ss: | :lsg: | :cmnt::frm: |
155| [Atsumaru](https://atsu.moe/) ==Atsumaru== | ==l:atsumaru== | :sync::ie::msync: | :ps: | :sp::dp::ls: | :cmnt::frm: |
156156
157157<more>
158158
159| [MangaBall](https://mangaball.net/) | 155k | :msync: | :ps::up: | :ls: | :cmnt: |
160| [MangaFire](https://mangafire.to/) ==MangaFire== | 78k | :sync::ie::msync: | :ps: | :sp::dp::ls: | :no: |
161| [OniSaga](https://onisaga.com/home) ==OniSaga== | 77k | :ie: | :ss::up: | :sp::dp::ls: | :no: |
162| [MangaK](https://mangak.io/home) | 41k | :no: | :ss: | :sp::ls: | :cmnt: |
163| [XComic](https://xcomic.me/) ==m:xcomic== ==XComic== | 94k | :no: | :ps: | :ls::lsg: | :no: |
164| [MKissa](https://mkissa.to/manga) | 63k | :msync: | :ss: | :sp::dp::ls: | :cmnt::frm: |
165| [MangaKatana](https://mangakatana.com/) | 28k | :ie::msync: | :ss: | :ls: | :cmnt: |
166| [Mangahub](https://mangahub.io/) | 79k | :msync: | :ss: | :ls: | :cmnt: |
159| [MangaBall](https://mangaball.net/) | ==l:mangaball== | :msync: | :ps::up: | :ls: | :cmnt: |
160| [MangaFire](https://mangafire.to/) ==MangaFire== | ==l:mangafire== | :sync::ie::msync: | :ps: | :sp::dp::ls: | :no: |
161| [OniSaga](https://onisaga.com/home) ==OniSaga== | ==l:onisaga== | :ie: | :ss::up: | :sp::dp::ls: | :no: |
162| [MangaK](https://mangak.io/home) | ==l:mangak== | :no: | :ss: | :sp::ls: | :cmnt: |
163| [XComic](https://xcomic.me/) ==m:xcomic== ==XComic== | ==l:xcomic== | :no: | :ps: | :ls::lsg: | :no: |
164| [MKissa](https://mkissa.to/manga) | ==l:mkissa manga== | :msync: | :ss: | :sp::dp::ls: | :cmnt::frm: |
165| [MangaKatana](https://mangakatana.com/) | ==l:mangakatana== | :ie::msync: | :ss: | :ls: | :cmnt: |
166| [Mangahub](https://mangahub.io/) | ==l:mangahub== | :msync: | :ss: | :ls: | :cmnt: |
167167
168168<more>
169169
170| [Dynasty Reader](https://dynasty-scans.com/) ==DynastyReader== | 4k | :msync: | :ss::up: | :sp: | :frm: |
171| [MangaGo](https://www.mangago.me/) | 20k | :no: | :ss::up: | :sp::ls: | :frm: |
172| [MangaVyVy](https://mangavyvy.com/) [:alt:](https://mangavyvy.net/) | 82k | :no: | :ss: | :sp::ls: | :cmnt::frm: |
173| [Like Manga](https://likemanga.ink/) ==m:like-manga== | 40k | :msync: | :ss: | :ls: | :cmnt: |
174| [Yaoi.me](https://yaoi.me/) | 45k | :ie: | :ms: | :sp::dp::ls: | :cmnt::frm: |
175| [ZinManga](https://www.zinmanga.net/) [:alt:](https://www.zazamanga.com/) | 90k | :no: | :ss: | :ls: | :cmnt: |
170| [Dynasty Reader](https://dynasty-scans.com/) ==DynastyReader== | ==l:dynastyscans== | :msync: | :ss::up: | :sp: | :frm: |
171| [MangaGo](https://www.mangago.me/) | ==l:mangago== | :no: | :ss::up: | :sp::ls: | :frm: |
172| [MangaVyVy](https://mangavyvy.com/) [:alt:](https://mangavyvy.net/) | ==l:vyvymanga== | :no: | :ss: | :sp::ls: | :cmnt::frm: |
173| [Like Manga](https://likemanga.ink/) ==m:like-manga== | ==l:likemanga== | :msync: | :ss: | :ls: | :cmnt: |
174| [Yaoi.me](https://yaoi.me/) | ==l:yaoi== | :ie: | :ms: | :sp::dp::ls: | :cmnt::frm: |
175| [ZinManga](https://www.zinmanga.net/) [:alt:](https://www.zazamanga.com/) | ==l:zinmanga== | :no: | :ss: | :ls: | :cmnt: |
176176
177177== Download
178178