All Projects → dyu → comments

dyu / comments

Licence: Apache-2.0 license
A real-time, markdown-enabled comment engine powered by leveldb with oauth support

Programming Languages

HTML
75241 projects
CSS
56736 projects
java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to comments

Suri
Your own link shortener that's easily deployed as a static site (for free)
Stars: ✭ 249 (+315%)
Mutual labels:  self-hosted, static-site
Jamstack Comments Engine
An example of a comments engine you could add to any JAMstack site hosted on Netlify
Stars: ✭ 112 (+86.67%)
Mutual labels:  static-site, comments
Isso
a Disqus alternative
Stars: ✭ 4,488 (+7380%)
Mutual labels:  self-hosted, commenting
Remark42
comment engine
Stars: ✭ 3,365 (+5508.33%)
Mutual labels:  self-hosted, commenting
urlzap
⚡️ Your own static URL shortener
Stars: ✭ 57 (-5%)
Mutual labels:  self-hosted, static-site
Swiftycomments
UITableView based component designed to display a hierarchy of expandable/foldable comments.
Stars: ✭ 200 (+233.33%)
Mutual labels:  discussion, comments
grav-plugin-comments
Grav Comments Plugin
Stars: ✭ 52 (-13.33%)
Mutual labels:  discussion, comments
recursive-comments
Build recursive, nested or threaded commenting system using laravel and vuejs
Stars: ✭ 13 (-78.33%)
Mutual labels:  comments, commenting
html-comment-regex
Regular expression for matching HTML comments
Stars: ✭ 15 (-75%)
Mutual labels:  comments
kloudi
Universal Command Line for a developer's tools (self-hosted)
Stars: ✭ 22 (-63.33%)
Mutual labels:  self-hosted
readme-in-static-site
💎 Transform and insert your GitHub readme in your static site.
Stars: ✭ 24 (-60%)
Mutual labels:  static-site
nodejsdesignpatterns.com
Source for Website for Node.js Design Patterns, book by Mario Casciaro and Luciano Mammino, published by Packt (https://nodejsdp.link/buy)
Stars: ✭ 27 (-55%)
Mutual labels:  static-site
waline
💬 A Simple, Safe Comment System
Stars: ✭ 1,145 (+1808.33%)
Mutual labels:  self-hosted
roll.urown.net
How to roll your own private self-hosted internet services.
Stars: ✭ 63 (+5%)
Mutual labels:  self-hosted
nitter scraper
Scrape Twitter API without authentication using Nitter.
Stars: ✭ 31 (-48.33%)
Mutual labels:  self-hosted
domain-monitor
Self-hosted server to monitor WHOIS records for specified domains.
Stars: ✭ 36 (-40%)
Mutual labels:  self-hosted
gifcc
Tiny c compiler
Stars: ✭ 51 (-15%)
Mutual labels:  self-hosted
saber-theme-tailsaw
A Saber theme for blogging, based on Jigsaw's Blog Template.
Stars: ✭ 53 (-11.67%)
Mutual labels:  static-site
Anything
Digital asset organizing tool for creators.
Stars: ✭ 19 (-68.33%)
Mutual labels:  self-hosted
krashna-site
Website for Krashna Musika - Student Society for Classical Music in Delft
Stars: ✭ 17 (-71.67%)
Mutual labels:  static-site

comments app

A real-time comment engine with support for anonymous or authenticated posts

Quickstart

mkdir -p target/standalone && cd target/standalone
wget https://cdn.jsdelivr.net/npm/[email protected]/bin/comments-linux-standalone-x64.tar.gz
tar -xzf comments-linux-standalone-x64.tar.gz
./start.sh

screenshot

The demo is running on a $2.5 vultr plan located in SG, with the app configured to use a max memory of 128mb (to leave most of the available memory to the filesystem cache).

Instant comments on your site/blog

Put this anywhere in the html body (although it is advisable to put it last)

<div id="comments"></div>
<script>
window.comments_config = {
  collapse_depth: 7, // the depth where comments get collapsed by default
  limit_depth: 10, // max: 127
  //auth_host: 'https://api.dyuproject.com', // if you prefer authenticated comments
  ws_enabled: true, // real-time updates
  ws_host: 'wss://rpc.dyuproject.com/sub',
  rpc_host: 'https://rpc.dyuproject.com'
}
</script>
<script src="https://netlify-comments.dyuproject.com/dist/build.js"></script>
<link rel="stylesheet" href="https://netlify-comments.dyuproject.com/dist/build.css" />

Note: Uses the same instance powering the demo. No tracking whatsoever.

  1. The css is 7.1kb minified, built with pavilion core.
  2. The js is 91.8kb minified, built with:

Server runtime dependencies

  • jdk7

Dev requirements

  • node 6.9.0 or higher
  • yarn (npm install -g yarn)
  • jdk7 (at /usr/lib/jvm/java-7-oracle)
  • maven
  • protostuffdb (downloaded below)

Setup

mkdir -p target/data/main
echo "Your data lives in user/ dir.  Feel free to back it up." > target/data/main/README.txt

# download protostuffdb
yarn add [email protected] && mv node_modules/protostuffdb/dist/* target/ && rm -f package.json yarn.lock && rm -r node_modules

wget -O target/fbsgen-ds.jar https://repo1.maven.org/maven2/com/dyuproject/fbsgen/ds/fbsgen-ds-fatjar/1.0.10/fbsgen-ds-fatjar-1.0.10.jar
./modules/codegen.sh
mvn install

npm install -g http-server clean-css-cli
cd comments-ts
yarn install

Dev mode

# produces a single jar the first time (comments-all/target/comments-all-jarjar.jar)
./run.sh

# on another terminal
cd comments-ts
# serves the ui via http://localhost:8080/
yarn run dev

If your dev machine is a MacOS, protostuffdb currently does not have binary distributions for it (no MacOS machine to test/build against).

On the other hand, you can still do development on the client-side part with this temporary workaround:

  1. Edit comments-ts/index.html
  2. Replace window.rpc_host = 'http://127.0.0.1:5020' with window.rpc_host = 'https://rpc.dyuproject.com'

Production mode

cd comments-ts
# produces a single js and other assets in comments-ts/dist/
yarn run build
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].