mcnaveen / SupaComments

âš¡ A blazing fast, lightweight, and open source comment system for your static website, blogs powered by Supabase
https://supacomments.vercel.app/?ref=github-repo
Apache License 2.0
138 stars 13 forks source link
blog comment-system comments-widget gatsby hugo jekyll producthunt supabase supabase-client supabase-js svelte tailwindcss

SupaComments

🔥 This Project will be renamed and you can expect some bigger features soon. (Updated: 16/08/2022)

SupaComments

:zap: A blazing fast, lightweight, and open source comment system for your static website, blogs

build

SupaComments - A blazing fast comment system for your JamStack sites | Product Hunt

:rocket: Demo

You can visit the Below demo blog post to see the SupaComments in action.

https://supacomments.vercel.app/demo/

:magic_wand: Lightweight

SupaComments js bundle is less than 25kb and CSS bundle is less than 5kb.

SupaComments

Page Speed Insights

:package: Requirements

Static Blog or Website

:sparkles: Installation and Usage

git clone https://github.com/mcnaveen/supacomments.git
cd supacomments
yarn install
cp .env.example .env
id - int8
name - text
email - text
postURL - text
comment - text
created_at - timestamp
show - boolean

Table Structure

Example

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

:pen: Usage

<script src="https://github.com/mcnaveen/SupaComments/raw/main/comments.js">
<link rel="stylesheet" href="https://github.com/mcnaveen/SupaComments/blob/main/comments.css" />
<div id="comments" data-url="yoursite.com" clickToLoad="false"></div>

Now, If you open your static website or blog, you will see the comments section like below.

Comments Example

:white_check_mark: TODO/Features

These are the planned features, if you have any feature request, please open an feature request on Github

:books: Contributions

Checkout the Contributing Guide

Breaking Changes

:warning: Use it with caution, Breaking changes ahead!

Disclaimer

You can add features and fixes but please don't claim this project as your own.

:pray: Additional Information

This project uses Supabase for the database, Svelte for the frontend and Tailwind CSS for the styling and Demo is built with Next.js

:green_heart: Message

I hope you find this project useful. If you have any questions, please create an issue.

License

Copyright (c) 2022 SupaComments