Skip to content

About

Simple Comment is a free, open-source commenting platform for websites and blogs. Run it yourself. Own your data. Shape your community.

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

427 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Comment logo

Simple Comment

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.

License: AGPL v3 Netlify Status OpenAPI 3.0 Validator

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.

Illustration of a discussion with nested replies

Threaded discussions — illustrated interface.

Why Simple Comment?

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.

Features

Feature What it offers
Flexible integration Add Simple Comment to any website you own.
Threaded discussions Nested replies, comment editing and deletion.
Privacy-conscious design Your users' data stays with you, not with an opaque third-party service.
Self-hosted Run your own independent installation. Choose your own hosting and database providers.
Data ownership Direct access to your user and comment data, with the freedom to query, export, back up and migrate it.
Serverless architecture No traditional application server to maintain.
Zero-cost deployment Run smaller installations entirely on free hosting tiers.
Open source (AGPLv3) Inspect, modify and freely use the software.
No vendor lock-in Change hosting providers or move your installation without losing your community.
Configurable participation policies Decide who can read, register and participate.
Human moderation Manually review, hide, approve and remove comments directly in discussions.
Link moderation Automatically hold comments for review if they contain links.
Custom moderation filters Automatically hold comments for review if they contain words or phrases you specify.
Guest participation Optionally let readers comment without registering.
Registered accounts Give regular contributors a persistent identity and control over their own comments.
User account management Let registered users manage their own profiles, data, and participation.
Lightweight frontend Minimize the overhead imposed on your host website.
OpenAPI 3 specification Integrate with the well documented REST API to develop your own alternative frontends and backends.
Full customizability Adapt the appearance, functionality and behavior to suit your website.
Markdown formatting Format comments with emphasis, lists, quotations, inline code, visible links and Unicode emoji.
Email notifications Optionally receive notifications about new comments and edits through Resend or SendGrid.
Responsive layout Accommodate mobile and desktop readers.

A closer look

Joining the conversation Formatting comments
Illustration of a visitor composing a comment Illustration of a comment with Markdown formatting
Moderating a discussion On mobile
Illustration of a held comment and moderation actions Illustration of a discussion on a mobile device

Explore the live demo yourself.

Getting started

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.

  1. Fork this repository.
  2. Set up a MongoDB database.
  3. Connect your fork to Netlify and configure the required environment variables.
  4. Deploy Simple Comment.
  5. 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.

How it works

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)"]
Loading

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.

Is Simple Comment right for you?

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.

Documentation

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.

Reliability and development

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.

Contributing

Bug reports, suggestions, documentation improvements and code contributions are welcome.

If you use Simple Comment, you are welcome to display this badge on your website:

Powered by Simple Comment

License

Simple Comment is licensed under the GNU Affero General Public License, version 3.

About

Simple Comment is a free, open-source commenting platform for websites and blogs. Run it yourself. Own your data. Shape your community.

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages