Feature modules: each owns one responsibility and exposes a public class/function.
i18n.js— translation loader/resolver (en/ru dictionaries underassets/i18n/).theme-manager.js— light/dark/auto theme with persistence + system preference sync.search-engine.js— Lunr.js full-text search over the post index.search-ui.js— search UI wiring (input, results, keyboard nav).image-optimizer.js— responsive WebP/AVIF srcset helpers.social-sharing.js— share-target wiring.subscription.js— newsletter/feed subscription with fallback.prefetch.js— Vector D: knowledge-graph-driven predictive prefetch (injectable_doc/_fetch, pure_buildAdjacency). Tested (tests/unit/prefetch.test.js).vector-search.js— Vector C: dependency-free TF-IDF cosine semantic search over the Content Model. Tested (tests/unit/vector-search.test.js).
crdt-sync.js— convergent CRDT (vector clocks + LWW). Tested (19).graph-sync.js— P2P replication over a transport bus. Tested.webrtc-transport.js— real WebRTCDataChanneltransport. Tested.bci-controller.js— BCI neuro-control abstraction (intent decode). Tested.eeg-adapter.js— EEG WebSocket →NeuroSampleadapter. Tested.
Layer: depends on config/utils/core/services via explicit interfaces.