🔥 This Project will be renamed and you can expect some bigger features soon. (Updated: 16/08/2022)
:zap: A blazing fast, lightweight, and open source comment system for your static website, blogs
You can visit the Below demo blog post to see the SupaComments in action.
SupaComments js bundle is less than 25kb and CSS bundle is less than 5kb.
Static Blog or Website
git clone https://github.com/mcnaveen/supacomments.git
cd supacomments
yarn install
cp .env.example .env
comments
id - int8
name - text
email - text
postURL - text
comment - text
created_at - timestamp
show - boolean
show
should be true
.env
and change the values copied from the above stepExample
SUPACOMMENT_SUPABASE_URL=https://xxxxxxxxxxxx.supabase.co SUPACOMMENT_SUPABASE_ANON_KEY=xxxxxxxxxxxxxxxxx
Once you have the environment variables set, run the following command to start the build process.
yarn build
This will create a comments.js
& comments.css
files under the pubic/build
directory.
Copy and paste the two files to root of your static website or blog.
comments.js
& comments.css
file, paste the below code before </head>
closing tag.<script src="./comments.js">
<link rel="stylesheet" href="./comments.css" />
yoursite.com
to your website URL. (No https:// or http:// or / at the end)mysupacomments.com
<div id="comments" data-url="yoursite.com" clickToLoad="false"></div>
clickToLoad
attribute to true
to disable autoloading of comments, the User has to click Load Comments button. (Default is false
)Now, If you open your static website or blog, you will see the comments section like below.
These are the planned features, if you have any feature request, please open an feature request on Github
Checkout the Contributing Guide
:warning: Use it with caution, Breaking changes ahead!
You can add features and fixes but please don't claim this project as your own.
This project uses Supabase for the database, Svelte for the frontend and Tailwind CSS for the styling and Demo is built with Next.js
I hope you find this project useful. If you have any questions, please create an issue.
Copyright (c) 2022 SupaComments