@cogita/plugin-comments provides optional third-party comments for article pages. The first release supports Giscus, backed by GitHub Discussions, and Utterances, backed by GitHub Issues.
The plugin has no database, does not call the GitHub API during the build, and does not bundle provider scripts into Cogita. Lucid loads a provider script dynamically only when the site has explicitly enabled comments and passed configuration validation.
enabled is off by default, so an incomplete GitHub setup never loads a third-party script accidentally.issueTerm: 'specific' also requires term.The virtual module contains only the resolved configuration and article route list. It never contains GitHub tokens, comment content, or local file paths. Provider authorization remains with Giscus, Utterances, and GitHub OAuth. A failed script load produces an accessible error state instead of an empty region.
The Knowledge demo uses the public wu9o/cogita-comments repository and its General Discussions category. Before enabling comments, install the Giscus GitHub App.
For the Chinese version, see 评论插件设计.