giscus embeds comments and reactions on static or dynamic sites using GitHub Discussions for storage. Visitors sign in through GitHub; no separate comment database is required.
Overview
giscus is a comments widget that connects a public web page to a GitHub Discussions thread. When the widget loads, it uses the Discussions search API to find or create a discussion mapped to the page URL, pathname, title, or other configured key. Comments and reactions live in GitHub rather than in a custom backend.
Visitors authorize the giscus GitHub App to post on their behalf via OAuth, or they can comment directly on GitHub where moderators already have familiar tools. The widget supports custom themes, many interface languages, lazy loading, reactions on the main post, and extensive mapping and category options for new threads.
Embedding is done with a script tag or through component libraries for React, Vue, and Svelte. The project is open source, avoids ads and tracking, and can be self-hosted for teams that want to run their own instance. Features may shift as GitHub evolves the Discussions API.
Sites that previously used issue-based comment systems can migrate issues to discussions and re-point mappings so giscus picks up existing threads.
Key features
- GitHub Discussions as data store
- OAuth via giscus GitHub App
- Configurable page-to-thread mapping
- Custom and bundled themes
- Multi-language interface
- Lazy-loaded comment embedding
- Reactions on main discussion post
- React, Vue, and Svelte components
Use cases
- Blog and docs site comments
- Open-source project feedback
- Static site visitor discussion
- GitHub-centric community pages