Initialize the runtime and build the jsdom context.
Optional configuration.
Optionalota?: OtaManagerAn OtaManager to source the bundle text from. When omitted, a default manager is created (using the cache, then the bundled fallback asset).
Rebuild the jsdom context from the (possibly updated) bundle.
Re-reads the parser bundle via the OtaManager and recreates the jsdom window from scratch. Call this after an OTA update so the new parsers take effect.
Release the jsdom window. Safe to call more than once.
Return the catalog of available sources as raw parser metadata objects.
The descriptors exactly as emitted by
NyoraParsers.getAllSources() (camelCase keys), or an empty array if the
bundle returns something other than an array.
Invoke one parser method and return its decoded result.
The source identifier, with or without the parser:
prefix.
One of popular, latest, search, details, or
pages.
Method arguments (e.g. page, query, url, manga,
branch, filter) passed through to the parser.
The parser result as native JS objects.
ParserRuntimeError If the parser is missing, the method is unknown, or the parser/engine fails.
Run Nyora's bundled JavaScript parsers inside an embedded jsdom window.
A single instance owns one jsdom
windowwith the evaluatedNyoraParsersglobal. Parser calls are dispatched through a tolerant ParserContext that proxies HTTP to Node's nativefetchand HTML parsing to jsdom.Example