Examples

See Awesome Comment in action. Try the live demo below or embed it in your own site.

Live Demo

This is a real Awesome Comment widget. Try leaving a comment!

Embed Code

Copy the code below to add Awesome Comment to your website.

terminal
<link rel="stylesheet" href="https://unpkg.com/@roudanio/awesome-comment@latest/dist/style.css">
<script type="module">
  import {getInstance} from 'https://unpkg.com/@roudanio/awesome-auth@latest/dist/awesome-auth.js';
  import Comment from 'https://unpkg.com/@roudanio/awesome-comment@latest/dist/awesome-comment.js';

  const auth = getInstance({
    googleId: "YOUR_GOOGLE_CLIENT_ID",
    root: "https://awesomecomment.org/api/site/auth",
  });

  Comment.init(document.querySelector('#comment'), {
    postId: location.pathname,
    siteId: "YOUR_SITE_ID",
    apiUrl: "https://awesomecomment.org",
    awesomeAuth: auth,
    locale: navigator.language,
  });
</script>

<div id="comment"></div>