Start dev server Firstly, create a .env file:
DB_URL=file:./db.sqlite USERNAME=admin PASSWORD=password JWT_SECRET=ofcourseistillloveyou
(use bash, not zsh, or use npm)
$ yarn
$ yarn dev Now open http://localhost:3000 and signin with admin and password
yarn dev is using SQLite by default. If you want to develop with PostgreSQL, first change DB_URL in .env to your db connection url:
DB_URL=postgres://xxx ... Then use yarn dev:pg to start the dev server.
$ yarn widget The widget demo will run on http://localhost:3001
Change the attributes of the widget in widget/index.html (Don't commit this file if you only modify something for testing).
Modify schema Database schema is defined in prisma/$DB_TYPE/schema.prisma.
Cusdis is an open-source, lightweight (~5kb gzip), privacy-friendly alternative to Disqus.
Contact me if you want to buy/acquire this project 💖
If you like Cusdis, please consider sponsoring us to help us be sustainable.
- Lightweight comment widget, with i18n, dark mode.
- Email notification
- Webhook
- Easy to self-host
- Many integrations
Cusdis is not designed to be a complete alternative to Disqus. It's aim is to implement a minimalist and embeddable comment system for small websites (such as your static blog).
Given below are the pros and cons of Cusdis:
- Cusdis is open-source and self-hostable. Hence, you own your data.
- The SDK is lightweight(~5kb gzipped).
- Cusdis doesn't require your user to sign in to make a comment.
- Cusdis doesn't use cookies at all.
- Cusdis is on the early stages of its development.
- There is no spam filter, hence, you will have to manually moderate your comment section and comments won't be displayed until you approve them.
- Disqus is a company, we aren't.
If you are going to make a PR, remember to choose dev
as the base branch.
GNU GPLv3