CODING_STANDARDS.md— coding, plugin, multisrc migration, and PR review standards (consult during review and before adding/migrating plugins).package.json— authoritative scripts (lint,format:check,build:compile,build:full,dev:start,check:plugin,check:sites,test:plugin-error,test:live-check).README.md,docs/quickstart.md,docs/docs.md,docs/testing.md,docs/plugin-template.ts— setup, plugin API, live checker, and starter template.
plugins/<language>/*.ts: standalone plugins (grouped by full language name).plugins/multi/: intrinsically multi-language or server-based plugins.plugins/multisrc/<generator>/: generator, template,sources.json, and custom assets (plugins/<language>/*[*].tsare disposable generated outputs).public/static/src/<language-code>/<plugin-id>/: 96x96 PNG icons (short language code, e.g.en).src/types/plugin.ts,src/libs/: canonical plugin interfaces and@libs/*runtime helpers.src/: React/Vite playground;scripts/: build, manifest, publishing, and live-check tooling.BLACKLIST.json: disallowed sources.
- Use Node.js 22+ locally (CI runs Node 20 and 24).
- Repo docs and CI use
npm/npm ci; keeppackage-lock.jsonuntouched unless dependencies change. - Copy
.env.templateto.envonly for local manifest serving; keep.envuncommitted.
- Hermes runtime: Plugins compile for ES5/Hermes/React Native — use
@libs/fetch(not@/lib/fetch) and avoid Node/browser-only globals. - Host
@libs/*whitelist:tsconfig.production.jsoncompiles with"noResolve": true("noCheck": true), leavingrequire("@libs/*")calls unbundled for the Android host'spluginManager.tswhitelist; any new@libs/*module (such as@libs/pluginError) must either exist in the app'spackagesmap or be inlined inscripts/terser.js. - Finding multisrc plugins: Search
plugins/multisrc/*/sources.jsonby domain or ID;plugins/<language>/only holds generated[generator]files afterbuild:multisrc(which strip spaces, hyphens, and dots fromsourceName). - Trailing slashes on migrated paths: Multisrc generators such as Fictioneer produce
novelPathvalues with trailing slashes (novels/<slug>/). Normalize leading and trailing slashes inparseNovelwhen migrating to standalone so existing library entries resolve cleanly. - Validation: Choose checks from
package.jsonproportionate to the change. For standalone plugins, runeslint,prettier --check,build:compile, andcheck:plugin -- plugins/<language>/<plugin>.ts. Incheck:plugin,FAILrequires investigation whileINCONCLUSIVEusually indicates remote site blocking or downtime.