The curated source pack and toolchain for WORD (comicsplug-cmd/word-reader),
an Android-first novel and fanfiction reader.
This is not a fork of lnreader-plugins. It imports only the sources WORD
chooses and owns:
- which sources ship,
- what metadata they report,
- how source health is measured,
- what happens when a site changes its domain,
- when the app receives a source update.
WORD runs on React Native/Hermes. Hermes cannot execute Rust or WebAssembly. Source bundles are therefore JavaScript and stay LNReader-compatible. Rust owns the toolchain: probing, classification, manifest generation, hashes, health state and domain monitoring.
Plugins report raw labels. The app maps those labels through a per-source
crosswalk into exactly one anchor genre plus detail tags. A mapped fanfiction
tag moves a work to the Fanfiction space. Taxonomy IDs never appear in a source
bundle, and fanfiction is never inferred from a domain or title.
src/ Rust CLI (`word`)
crates/taxonomy/ taxonomy + crosswalk library
taxonomy/ canonical anchors/tags and JSON schemas
plugins/<lang>/<id>/ per-source crosswalk.json
sources/<id>/ source.toml + bundle.js + NOTICE
probes/ headless Node runner for LNReader bundles
matrix/ probe and domain reports
dist/ built app-facing artifacts (committed)
cargo run -- validate
cargo run -- probe --sources sources
cargo run -- probe --only storyseedling
cargo run -- import --id storyseedling --tier a --enabled
cargo run -- classify --plugin storyseedling --raw "Comedy, Fantasy, Romance"
cargo run -- build
cargo run -- verify --local-root dist
cargo run -- domainsprobe needs Node 22+ and the probe dependencies:
npm ci --prefix probesready is the only status that means search, novel metadata and a readable
chapter all worked. gated means the site reached us but requires a captcha,
Cloudflare check or WebView verification; it remains a valid source and is
shipped with needsVerification: true. empty means the site responded but the
probe query found nothing. degraded means the pipeline works but the chapter
text is thin. unreachable and broken are retried before a source is removed.
blocked means authentication or a subscription is required.
dist/sources.manifest.json is the app-facing contract. Each source row carries:
- identity:
id,name,version,language,site,mirrors - execution:
bundleUrl,sha256,size,tier,rateLimitMs - classification:
crosswalkUrl,crosswalkSha256 - health:
status,statusReason,lastChecked,needsVerification,verificationHint,challengeMarkers - behaviour:
enabledByDefault,requiresCookies,wordMetadata
The manifest also pins the taxonomy asset (taxonomyUrl, taxonomySha256).
The app verifies hashes before executing a bundle.
taxonomy/master.json is the canonical anchor/tag list. Every work gets exactly
one anchor. Tags are details, not anchors. A crosswalk rule maps one source
label (or a list of equivalent labels) to at most one anchor, optional tags, and
an optional weight.
Resolution order for each raw label:
- an explicit crosswalk rule,
- a taxonomy label or synonym,
- the crosswalk wildcard (normally the
unsortedtag).
The anchor is chosen by highest rule weight, then the source's own label order,
then taxonomy order. general is the final fallback. A tag with
route: "fanfic" sets space to fanfiction; otherwise it is novel.
Every descriptor has a canonical site and optional mirrors. The daily
domains job follows redirects, checks DNS/TLS, verifies a page marker and
records moveCandidate when a source redirects to a new host. A move is only
accepted after the full probe passes on the new host. The app then receives the
new site through dist/sources.manifest.json; no APK update is needed.
MIT for the toolchain and Word-authored crosswalks. Imported plugin code retains
its upstream MIT license and is listed in NOTICE and each
sources/<id>/NOTICE. Upstream copyright remains with the original authors.
See HANDOVER.md for the current state, decisions and next steps.