Your community. Your website. Your data.
Simple Comment is a free, open-source commenting system for websites and blogs. Add threaded discussions to your site without handing your visitors' comments over to a proprietary commenting platform or maintaining a traditional application server.
Try the live demo · Install Simple Comment · Documentation
Try posting a comment, replying to a discussion, or formatting a comment with Markdown in the live demo.
Threaded discussions — illustrated interface.
A comment section should be part of your website, not someone else's platform.
- Keep control of your data. Your installation stores comments and accounts in a MongoDB database you control. You choose where to host the software and how to operate it.
- No server to maintain. The default deployment uses serverless functions and a hosted database, making it a practical option even for static websites.
- Make it your own. Configure participation and moderation policies, customize the frontend, or build your own client against the documented API.
- Free as in freedom. You can inspect, modify, and run the software under its open-source license.
- Free as in beer. Simple Comment costs nothing, and all the services needed to run it have free tiers.
| Joining the conversation | Formatting comments |
|---|---|
| Moderating a discussion | On mobile |
|---|---|
Explore the live demo yourself.
The default installation uses Netlify for hosting and serverless functions, and MongoDB for persistent storage. You will need a GitHub account, a MongoDB database, a Netlify account, and a website served over HTTPS. All of these can be obtained for free, making it possible to run Simple Comment at no cost.
- Fork this repository.
- Set up a MongoDB database.
- Connect your fork to Netlify and configure the required environment variables.
- Deploy Simple Comment.
- Add the comment widget to your website.
Once your installation is configured, include the widget's stylesheet, container, and JavaScript module on your page:
<link rel="stylesheet" href="/css/simple-comment-style.css" />
<div id="simple-comment"></div>
<script type="module" src="/js/simple-comment.js"></script>These paths assume that the generated frontend assets are available on your website. Keep the module's supporting files from the same build alongside it. See the installation guide for asset placement, API URL configuration, and cross-origin deployments. You can customize the appearance with your own CSS.
Hosting costs: Simple Comment is free software. Netlify and MongoDB Atlas offer free tiers that may be sufficient for smaller sites; hosting, database and optional email costs depend on your providers and usage.
The widget runs in the reader's browser and communicates with the Simple Comment API. Your database stores comments and accounts, while the optional email provider delivers notifications.
flowchart TD
subgraph Browser["Your website — in the browser"]
Widget["Simple Comment widget"]
end
Widget <-->|HTTPS / JSON| API["Simple Comment API<br/>Netlify Functions"]
API <--> DB[("MongoDB<br/>Your database")]
API -.-> Email["Email provider (optional)"]
The supplied frontend is built with Svelte and TypeScript, using Vite. The backend runs on Node.js and Netlify Functions. An OpenAPI 3 specification describes the interface between client and server.
Simple Comment is designed for website owners and developers who want to run their own comment section, particularly personal websites, blogs, static sites and smaller online communities.
It is not a fully managed commenting service. You are responsible for configuring your installation, managing access to your hosting and database accounts, moderating your community, and arranging backups and upgrades. If you need a point-and-click hosted service, extensive social-login integrations or a dedicated moderation dashboard, another solution may suit your needs better.
See the alternatives survey for other approaches to website commenting.
| Guide | Description |
|---|---|
| Installation and configuration | Deployment, environment variables, embedding and troubleshooting. |
| Styling | Customize the widget with CSS and understand the styling approach. |
| MongoDB Atlas setup | Set up a hosted database. |
| Moderation | Automatic holds, review controls, private terms and upgrade guidance. |
| Comment formatting | Supported Markdown syntax and rendering behavior. |
| Email notifications | Configure Resend or SendGrid, or leave notifications disabled. |
| Participation and access policies | Configure guest access, account permissions and comment length. |
| API reference | Endpoint overview and links to the API specification. |
| Development guide | Local development, testing and build workflows. |
| Contributing | Reporting issues, proposing changes and submitting pull requests. |
Simple Comment is actively developed. Pull requests are validated through automated linting, formatting checks, TypeScript type checking, builds, backend tests, and frontend unit and component tests. Contributors can run the same required validation path locally with yarn run ci:local. Cypress browser tests are also available as a separate check.
See the GitHub Actions validation workflow and the development guide for details.
Security-related behavior includes server-side input validation, authentication, and origin restrictions on cookie-authenticated writes. Please report vulnerabilities privately using the contact options in the security policy.
Before updating an existing installation, review the moderation upgrade guidance and back up your database. In particular, older versions do not respect moderation holds, so rolling back across the moderation release can expose unpublished comments.
Bug reports, suggestions, documentation improvements and code contributions are welcome.
- Open an issue or browse existing discussions.
- Read the contribution guide for how to participate and submit changes.
- See the development guide for local setup and validation instructions.
- Review the contributor license agreement before submitting code.
If you use Simple Comment, you are welcome to display this badge on your website:
Simple Comment is licensed under the GNU Affero General Public License, version 3.