<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Web Infogap on Medium]]></title>
        <description><![CDATA[Stories by Web Infogap on Medium]]></description>
        <link>https://medium.com/@parkin-lin?source=rss-e4acf20b6951------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*D7DG98wxv_YYBEPLSI3aOQ.png</url>
            <title>Stories by Web Infogap on Medium</title>
            <link>https://medium.com/@parkin-lin?source=rss-e4acf20b6951------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:14:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@parkin-lin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Type vs Value: Understand Why Object Is NOT Of The Object Type?]]></title>
            <link>https://javascript.plainenglish.io/type-vs-value-understand-why-object-is-not-of-the-object-type-2970f77df49d?source=rss-e4acf20b6951------2</link>
            <guid isPermaLink="false">https://medium.com/p/2970f77df49d</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[frontend-development]]></category>
            <dc:creator><![CDATA[Web Infogap]]></dc:creator>
            <pubDate>Tue, 03 Jun 2025 06:51:20 GMT</pubDate>
            <atom:updated>2025-06-03T06:51:20.631Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quick Summary</h3><p>In this article, we’ll deep dive into the technical details about the Object with TypeScript source code, and explore the following issues:</p><ol><li><strong>Object = JS Constructor + TS Interface</strong></li><li><strong>Object is NOT of the </strong><strong>Object type</strong></li><li><strong>One class has two types</strong></li></ol><h3>JS Values vs TS Types</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qICvk2RbPWZSLuX6zOmdFQ.png" /><figcaption>Type vs Value</figcaption></figure><p>👇 In TypeScript, the Object represents two programming concepts:</p><ul><li><strong>A value</strong>: the JavaScript constructor at runtime</li><li><strong>A type</strong>: the TypeScript interface at compile-time</li></ul><p>Since the Object interface has the same name as the constructor, this might be confusing sometimes:</p><pre>let o1: Object = new Object()<br>// or<br>let o2: Object = Object.create()</pre><p>Above, the Object on the left-hand side represents a type (<strong>TypeScript interface</strong>), while the other one on the right-hand side represents a value (<strong>JavaScript constructor</strong>).</p><p>It seemed that it’s easy to differentiate these cases:</p><ul><li>If the Object appears in an expression, it should be the JavaScript constructor.</li><li>If the Object appears in a type annotation, it should be the TypeScript interface.</li></ul><p>However, things might be counter-intuitive in real-world code:</p><pre>let o1: InstanceType&lt;typeof Object&gt; = new Object()<br>// ⚠️ both of the Objects refer to the value here<br><br>let o2: Object = (o1 as Object).valueOf()<br>// ⚠️ both of the Objects refer to the type here</pre><p>When you feel confused about these, it’s useful to break them down based on the current context:</p><pre>// The code above can be broken down as follows:<br>let OValue = Object<br>type OType = Object<br><br>let o1: InstanceType&lt;typeof OValue&gt; = new OValue() // ✅<br>let o2: OType = (o1 as OType).valueOf() // ✅<br><br>let o3: InstanceType&lt;typeof OType&gt; // ❌</pre><p>In this way, it’s clear to figure it out.</p><h3>Object Is NOT Of The Object Type</h3><p>In JavaScript, we can use the typeof operator to get the runtime type.</p><p>Similarly, TypeScript also supports using the typeof operator[¹] for compile-time type query:</p><pre>let type = typeof Object<br>// =&gt; &#39;function&#39;, runtime type<br><br>type T = typeof Object<br>// =&gt; ObjectConstructor, compile-time type</pre><p>Above, the Object constructor is actually <strong>NOT</strong> of the Object type, even though their spellings are identical.</p><p>According to the ECMAScript Language Specification[²], a function is a callable object:</p><pre>&#39;call&#39; in Object // true<br><br>// Function literal type:<br>type Fn1 = (value: any) =&gt; any<br><br>// the shorthand above is equivalent to a function object type:<br>type Fn2 = {<br>  (value: any): any<br>  // ...<br>}</pre><p>👇 The code above demonstrates that:</p><ul><li>A function is an object that supports the #Call internal method.</li><li>A function type is an object type that supports a call signature. And a function type literal is shorthand for an object type containing only one single call signature.</li></ul><p>As an object, the Object() constructor has both inherited properties like Object.prototype.hasOwnProperty() and its own properties like Object.hasOwn().</p><p>Unfortunately, Object&#39;s own properties can&#39;t be described by the Object interface.</p><p>Therefore, TypeScript provides the built-in ObjectConstructor interface[³] to handle this:</p><pre>interface ObjectConstructor {<br>  // 1. call signature<br>  (value: any): any<br><br>  // 2. construct signature<br>  new (value?: any): Object<br><br>  // 3. other properties...<br>  create(o: object | null): any<br>}<br><br>declare var Object: ObjectConstructor</pre><p>As we’ve seen, the definition of the ObjectConstructor type includes three parts:</p><ul><li><strong>As a function</strong>: the call signature</li><li><strong>As a constructor</strong>: the construct signature</li><li><strong>As an object</strong>: other property signatures</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8maV88KIZ2lVn2yC_c4dkA.png" /><figcaption>ObjectConstructor interface</figcaption></figure><p>Also, the Object instance type is a built-in TypeScript interface:</p><pre>// es5.d.ts<br>interface Object {<br>  toString(): string<br>  valueOf(): Object<br>  // ...<br>}</pre><p>The Object interface describes all public properties of all Object instances including the Object.prototype, which can be accessed via the prototype chain.</p><p>So, what is the relationship between the Object type and the ObjectConstructor type?</p><p>Since a function is a derived instance of the Object() constructor, it’s easy to deduce that the ObjectConstructor type is a <strong>subtype</strong> of the Object type:</p><pre>let o1: Object = Object as ObjectConstructor // ✅<br>let o2: ObjectConstructor = Object as Object // ❌</pre><p>Above, the ObjectConstructor type is assignable to the Object type, but the reverse assignment is not allowed.</p><h3>One class has two types</h3><p>JavaScript has only one Object constructor or Promise class, but why does TypeScript declare two interfaces to describe them?</p><p>This is because TypeScript can not constrain a constructor type by simply implementing interfaces.</p><p>Imagine that we’re trying to DIY our own PromiseA class, and expecting it to align with the ES6 Promise. We might write it as follows:</p><pre>class PromiseA&lt;T&gt;<br>  implements Promise&lt;T&gt;, PromiseConstructor<br>{<br>  then(/** */) {}<br>  // ❌ `all` should be a static method, not an instance method<br>  all(/** */) {}<br>  // ...<br>}</pre><p>It seems that here we’ve implemented two interfaces, but the PromiseConstructor interface doesn’t constrain the static members of the PromiseA class correctly.</p><p>As a result, Promise.all() is implemented as Promise.prototype.all() in the wrong way.</p><p>⚠️ Note that the implements clause of a class is used to constrain the instance members, but it has no effect on the static members.</p><p>If we take a closer look at the definition of the PromiseConstructor interface, we’ll find that the property signatures don’t have static modifiers like static declarations in the class body:</p><pre>interface PromiseConstructor {<br>  // No `static` modifier here<br>  all(/** */): Promise<br>}</pre><p>This is because interfaces are meant to be designed as a public contract accessible from the outside, so interfaces do <strong>NOT</strong> support accessibility modifiers like private,static and so on.</p><p>To constrain the static members of a class, one solution is using type annotations:</p><pre>const PromiseA: PromiseConstructor = class PromiseA&lt;T&gt;<br>  implements Promise&lt;T&gt;<br>{<br>  then(/** */) {}<br>  // ✅ `all` implemented as a static method<br>  static all(/** */) {}<br>  // ...<br>}</pre><p>In fact, one class declaration introduces two types in TypeScript:</p><ul><li><strong>A class type</strong>: the type of the instance members</li><li><strong>A constructor type = constructor signature + static member type</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OU3MOb7AlKXu8IF0tN-aAA.png" /><figcaption>class type</figcaption></figure><pre>class PromiseA {<br>  // 1. constructor signature: new (cb: Function) =&gt; PromiseA<br>  constructor(cb: Function) {<br>    /** */<br>  }<br>  // 2. static member type<br>  static all(iter: any): PromiseA {<br>    /** */<br>  }<br>  // 3. class type for instances<br>  then(f1: Function, f2: Function): PromiseA {<br>    /** */<br>  }<br>}</pre><p>On the one hand, the class type having the same name as the class can be reused as a type directly.</p><p>On the other hand, the anonymous constructor type needs to be <strong>explicitly</strong> defined, which is common when using Factory Patterns:</p><pre>// use the built-in constructor type<br>const ObjectFactory = (Ctor: ObjectConstructor): Object =&gt; new Ctor()<br><br>// 1. use the PromiseA class type directly<br>// 2. use `typeof` to get the constructor type<br>typeof PromiseACtor = typeof PromiseA<br>const PromiseAFactory = (Ctor: PromiseACtor): PromiseA =&gt; new Ctor()</pre><h3>Conclusion</h3><p>In TypeScript, the Object represents both a JavaScript value at runtime and a TypeScript type at compile time.</p><p>However, it’s counter-intuitive that the Object() constructor is <strong>NOT</strong> of the Object type.</p><p>When we create a class, it results in a class type with the same name as the class and an anonymous constructor type. Note that a class implementing interfaces can only constrain the class type.</p><h3>Resources</h3><p>[¹]: <a href="https://www.typescriptlang.org/docs/handbook/2/typeof-types.html">typeof Operator</a></p><p>[²]: <a href="https://tc39.es/ecma262/multipage">ECMAScript Language Specification</a></p><p>[³]: <a href="https://github.com/microsoft/TypeScript/blob/f69580f82146bebfb2bee8c7b8666af0e04c7e34/src/lib/es5.d.ts">ObjectConstructor</a></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/@InPlainEnglish"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a> | <a href="https://differ.blog/inplainenglish"><strong>Differ</strong></a> | <a href="https://twitch.tv/inplainenglish"><strong>Twitch</strong></a></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2970f77df49d" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/type-vs-value-understand-why-object-is-not-of-the-object-type-2970f77df49d">Type vs Value: Understand Why Object Is NOT Of The Object Type?</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Use GitHub As A Free Comments System For Your Website?]]></title>
            <link>https://javascript.plainenglish.io/how-to-use-github-as-a-free-comments-system-for-your-website-57ad94400bbb?source=rss-e4acf20b6951------2</link>
            <guid isPermaLink="false">https://medium.com/p/57ad94400bbb</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[components]]></category>
            <category><![CDATA[giscus]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Web Infogap]]></dc:creator>
            <pubDate>Sun, 01 Jun 2025 16:34:31 GMT</pubDate>
            <atom:updated>2025-06-02T14:59:18.566Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4a-C7lfsiMBxTtEl_I5Kg.png" /></figure><h3>Quick Summary</h3><p>I want to add a comments system to my blog website so that visitors can leave comments and reactions.</p><p>I found that GitHub Discussions is an ideal solution, but the pain point is that I can’t port it to my website directly. Luckily, I discovered the free open-source giscus, which perfectly meets my needs.</p><p>In this article, we’ll learn how to port the GitHub Discussions feature to our personal websites as a comments system.</p><p>👇 The basic steps are as follows:</p><ol><li><strong>Install the giscus app on GitHub.</strong></li><li><strong>Enable the GitHub Discussions feature.</strong></li><li><strong>Configure and add the giscus </strong><strong>&lt;script&gt; tag.</strong></li><li><strong>Integrate giscus components into Vue/React frameworks.</strong></li></ol><h3>Why Giscus</h3><p>I don’t want users to go through a cumbersome authentication process just in order to leave a comment. I hope that users can authenticate via their existing social media accounts. The main content of my website is technical blogs, and my target audience consists mainly of developers, who usually have a GitHub account.</p><p>I also don’t want to implement a complex database to manage user data and comment data by myself.</p><p>Luckily, I discovered <strong>giscus</strong>, which perfectly solves my problems.</p><p>Giscus is a comments system powered by <strong>GitHub Discussions</strong>. It allows users to authenticate via GitHub, provides a GitHub-style comments component for users to leave comments, and writes the comment data to a GitHub repository.</p><p>If you want to know how giscus behaves, the <a href="https://giscus.app/"><strong>official giscus website</strong></a> itself is an example of a giscus-driven comments system. And the following is how giscus works on my blog site:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OHKHbLTdD5MlEdYOVU7vxg.png" /><figcaption>Comments System Example</figcaption></figure><p>Plus, giscus is 100% <strong>open-source and free</strong>, which means we can develop at zero cost.</p><p>If you want to add an out-of-box GitHub-style comments system to your website, giscus is a highly cost-effective choice.</p><h3>Install the giscus app on GitHub</h3><p>Giscus calls the GitHub API under the hood, so we first need to prepare a public GitHub repository to enable the Discussions feature and store the comment data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39JAs9vxuDYyBF2CobfFVA.png" /><figcaption>GitHub Public Repository</figcaption></figure><p>⚠️ <strong>Note that we can create a new repository or use an existing one, but the repository must be public</strong>. If it’s a private repository, users won’t neither access it nor leave comments. If your website is already a public repository, I recommend using that repository directly.</p><p>Next, we need to install the <a href="https://github.com/apps/giscus"><strong>giscus app</strong></a> on GitHub. Just click the link to install it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XSeD_LuHI1pBQkGEXQIimg.png" /><figcaption>Install Giscus App</figcaption></figure><p>The purpose of this step is that when users leave a comment on our website, the giscus app will automatically call the GitHub API to write the data to our repository so that we can read and display the comments on our website later.</p><p>In other words, the giscus app can be regarded as a library for interacting with the GitHub Discussions.</p><p>After giscus is installed, we also need to authorize it. There are two types of permissions:</p><ul><li><strong>Authorize giscus to access all GitHub repositories.</strong></li><li><strong>Authorize giscus to only access selected GitHub repositories.</strong></li></ul><p>Here, I authorize giscus to only access my blog repository. You can authorize it as needed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*faWOy2aHtS4YPokAy6nYAw.png" /><figcaption>Authorize Giscus App</figcaption></figure><p>After authorization, giscus has the right to access our public repository via the GitHub API.</p><h3>Enable the GitHub Discussions feature</h3><p>After installing and authorizing the giscus app, we need to enable GitHub Discussions for the repository.</p><p>Click on “<strong>Settings</strong>” and turn on the “<strong>Discussions</strong>” feature:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_oB33FPqbDDg-itfa569sA.png" /><figcaption>Enable GitHub Comments</figcaption></figure><p>Then, we can see the “<strong>Discussions</strong>” panel in the repository:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BjFuwU-1oD58mMgX1Sa-MA.png" /><figcaption>GitHub Comments Panel</figcaption></figure><p>Above, GitHub Discussions have some default categories. However, we also need to create a specific category for giscus.</p><p>Click on the <strong>pencil icon</strong> ✏️ and click on the “<strong>New category</strong>”：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BesjLANv93AjOWEJCevYBg.png" /><figcaption>New Discussions Category</figcaption></figure><p>The category can be any name (e.g., Giscus or Blog comments). Select the Discussion Format as “<strong>Open-ended discussion</strong>”, and then click “<strong>Create</strong>”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Yi0yQoQplWNauUk_jFGPg.png" /><figcaption>Create Discussions Category</figcaption></figure><p>Now, we’ve connected the GitHub Discussions with giscus. Next, we’ll connect our website with giscus.</p><h3>Configure and use giscus</h3><p>In essence, giscus is a script that calls the GitHub API, so we need to generate a &lt;script&gt; tag for our website.</p><p>First, go to the <a href="https://giscus.app/"><strong>giscus official website</strong></a> and input the public repository giscus will connect to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tekJOfi_tetBZsfd_MpVuw.png" /><figcaption>Choose Repository</figcaption></figure><p>Next, configure the “<strong>Page-Discussions Mapping</strong>”. Giscus maps different pages to corresponding GitHub Discussions. Here giscus provides multiple mapping options, and I select the “<strong>Discussion title contains page </strong><strong>URL</strong>&quot;.</p><p>This option means that if I have a blog with a URL of <a href="https://weblog-xe2.pages.dev/blog/hello-world"><strong>https://weblog-xe2.pages.dev/blog/hello-world</strong></a>, giscus will create and match a GitHub Discussion whose title contains the URL as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25GfAB2e11bkIKvqtEivrw.png" /><figcaption>Page-Discussions Mapping</figcaption></figure><p>Next, select the “<strong>Discussion Category</strong>”. Just select the “<strong>Giscus</strong>” category we created specifically for giscus, and also check &quot;<strong>Only search for discussions in this category</strong>&quot;. This means that giscus won&#39;t search other categories for better performance.</p><p>There are also some custom configurations. For example, you can choose your preferred light/dark theme and place the comment box above the comments.</p><p>I recommend enabling “<strong>Load the comments lazily</strong>” because the comment component is usually at the bottom of the blog, meaning that its request priority is not high.</p><p>Finally, add the generated &lt;script&gt; tag to your blog component or HTML template where you want the comments to appear, for example:</p><pre>&lt;main&gt;<br>  &lt;article&gt;Your article&lt;/article&gt;<br>  &lt;!-- comment box --&gt;<br>  &lt;div&gt;<br>    &lt;script<br>      src=&quot;https://giscus.app/client.js&quot;<br>      data-repo=&quot;your_username/your_repo&quot;<br>      data-repo-id=&quot;your_repo_id&quot;<br>      data-category=&quot;Giscus&quot;<br>      data-category-id=&quot;your_category_id&quot;<br>      data-mapping=&quot;url&quot;<br>      data-strict=&quot;0&quot;<br>      data-reactions-enabled=&quot;1&quot;<br>      data-emit-metadata=&quot;0&quot;<br>      data-input-position=&quot;top&quot;<br>      data-theme=&quot;dark&quot;<br>      data-lang=&quot;en&quot;<br>      data-loading=&quot;lazy&quot;<br>      crossorigin=&quot;anonymous&quot;<br>      async<br>    &gt;&lt;/script&gt;<br>  &lt;/div&gt;<br>&lt;/main&gt;</pre><h3>Integrate giscus into frameworks</h3><p>Generally speaking, using giscus via a &lt;script&gt; tag is an effective solution. However, in modern web development, we often use component-based development to build websites.</p><p>Luckily, the official giscus also provides an out-of-box component library, which supports both native HTML Web Components and popular frontend frameworks including Vue and React.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpShdGoIWgyFnURxHuAw_g.png" /><figcaption>giscus-component</figcaption></figure><p>I don’t use Web Components very much, so this article will demonstrate two component styles: React JSX and Vue SFC.</p><p>First, install the giscus component library with npm:</p><pre># for Vue SFC/JSX<br>npm i @giscus/vue<br><br># or, for React JSX<br>npm i @giscus/react</pre><p>In fact, I only need to install the Vue component library for my project, because Vue supports both SFC and JSX.</p><p>Similarly, if your project depends on other frameworks like React, install the corresponding component library as needed.</p><p>Then we can use the components of the corresponding framework directly. For example, the Vue SFC-style Giscus.vue component:</p><pre>&lt;script setup&gt;<br>  import Giscus from &#39;@giscus/vue&#39;<br>&lt;/script&gt;<br><br>&lt;template&gt;<br>  &lt;Giscus<br>    repo=&quot;your_username/your_repo&quot;<br>    repo-id=&quot;your_repo_id&quot;<br>    category=&quot;Giscus&quot;<br>    category-id=&quot;your_category_id&quot;<br>    mapping=&quot;url&quot;<br>    reactions-enabled=&quot;1&quot;<br>    emit-metadata=&quot;0&quot;<br>    input-position=&quot;top&quot;<br>    theme=&quot;dark&quot;<br>    lang=&quot;en&quot;<br>    loading=&quot;lazy&quot;<br>  /&gt;<br>&lt;/template&gt;</pre><p>Or the React JSX-style Giscus.jsx component:</p><pre>import Giscus from &#39;@giscus/vue&#39;<br><br>export default () =&gt; (<br>  &lt;Giscus<br>    repo=&quot;your_username/your_repo&quot;<br>    repoId=&quot;your_repo_id&quot;<br>    category=&quot;Giscus&quot;<br>    categoryId=&quot;your_category_id&quot;<br>    mapping=&quot;url&quot;<br>    reactionsEnabled=&quot;1&quot;<br>    emitMetadata=&quot;0&quot;<br>    inputPosition=&quot;top&quot;<br>    theme=&quot;dark&quot;<br>    lang=&quot;en&quot;<br>    loading=&quot;lazy&quot;<br>  /&gt;<br>)</pre><p><strong>⚠️ Note that the component properties must be the same as the </strong><strong>&lt;script&gt; attributes generated by the configuration on the giscus official website.</strong></p><p>⚠️ <strong>In addition, in the JSX-style </strong><strong>Giscus.jsx component, the native HTML custom attributes in the format of </strong><strong>data-foo-bar need to be formatted into camelCase notation </strong><strong>fooBar with the </strong><strong>data- prefix and dashes removed.</strong> For example, data-repo-id must be formatted as repoId.</p><p>Finally, add the giscus component to your HTML template or blog component:</p><pre>&lt;main&gt;<br>  &lt;article&gt;Your article&lt;/article&gt;<br>  &lt;!-- comment box --&gt;<br>  &lt;Giscus /&gt;<br>&lt;/main&gt;</pre><h3>Conclusion</h3><p>Giscus is an open-source and free comments system powered by the GitHub API. It allows users to authenticate via GitHub and leave comments and reactions just like GitHub Discussions.</p><p>Our website can connect to the comments system of a GitHub repository.</p><p>👇 Make sure that:</p><ul><li>✅ <strong>The GitHub repository is public.</strong></li><li>✅ <strong>The giscus app is installed and authorized.</strong></li><li>✅ <strong>The GitHub Discussions feature is enabled for the repository, and a corresponding category is created.</strong></li></ul><h3>Resources</h3><ul><li><a href="https://giscus.app/"><strong>Giscus Official Website</strong></a></li><li><a href="https://github.com/giscus/giscus"><strong>Giscus GitHub Repository</strong></a></li><li><a href="https://github.com/giscus/giscus-component"><strong>Giscus Component Library</strong></a></li></ul><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://x.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/@InPlainEnglish"><strong>YouTube</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a> | <a href="https://open.spotify.com/show/7qxylRWKhvZwMz2WuEoua0"><strong>Podcast</strong></a> | <a href="https://differ.blog/inplainenglish"><strong>Differ</strong></a> | <a href="https://twitch.tv/inplainenglish"><strong>Twitch</strong></a></li><li><a href="https://differ.blog/"><strong>Start your own free AI-powered blog on Differ</strong></a> 🚀</li><li><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Join our content creators community on Discord</strong></a> 🧑🏻‍💻</li><li>For more content, visit <a href="https://plainenglish.io/"><strong>plainenglish.io</strong></a> + <a href="https://stackademic.com/"><strong>stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57ad94400bbb" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/how-to-use-github-as-a-free-comments-system-for-your-website-57ad94400bbb">How To Use GitHub As A Free Comments System For Your Website?</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>