Giscus is a comment system that enables websites to host interactive discussion sections by leveraging GitHub Discussions as a backend. It functions as a web component that maps specific page URLs or metadata to discussion threads, allowing visitor messages and reactions to be stored and retrieved directly from a linked repository.
The system operates by injecting a sandboxed iframe into the host page, which isolates the interface from the parent website's styles while maintaining secure communication through browser messaging protocols. Configuration is handled declaratively via HTML data attributes, allowing for visual customization, theme selection, and localization to align the widget with the host site's design.
To maintain page responsiveness, the widget employs lazy loading to defer the initialization of the comment interface until the element enters the user's viewport. This approach allows for the integration of a functional commenting system on static or dynamic websites without the need for a dedicated database or external backend server.