{"id":13674326,"url":"https://github.com/dyu/comments","last_synced_at":"2025-04-10T12:15:23.518Z","repository":{"id":57217935,"uuid":"90336403","full_name":"dyu/comments","owner":"dyu","description":"A real-time, markdown-enabled comment engine powered by leveldb with oauth support","archived":false,"fork":false,"pushed_at":"2023-04-28T09:06:04.000Z","size":830,"stargazers_count":63,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T11:07:45.614Z","etag":null,"topics":["commenting","comments","discussion","markdown","oauth2","real-time","self-hosted","static-blog","static-site","sveltejs"],"latest_commit_sha":null,"homepage":"https://dyu.github.io/comments/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-05-05T04:18:16.000Z","updated_at":"2024-06-20T19:46:36.000Z","dependencies_parsed_at":"2023-12-16T21:14:26.373Z","dependency_job_id":"7f6ae16c-fc14-4783-b2a2-bca5d4734363","html_url":"https://github.com/dyu/comments","commit_stats":{"total_commits":282,"total_committers":1,"mean_commits":282.0,"dds":0.0,"last_synced_commit":"cfd5c258277453e55043d0710122afbeb50eade6"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyu%2Fcomments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyu%2Fcomments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyu%2Fcomments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyu%2Fcomments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyu","download_url":"https://codeload.github.com/dyu/comments/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199077,"owners_count":21063641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commenting","comments","discussion","markdown","oauth2","real-time","self-hosted","static-blog","static-site","sveltejs"],"created_at":"2024-08-02T11:00:46.516Z","updated_at":"2025-04-10T12:15:23.483Z","avatar_url":"https://github.com/dyu.png","language":"HTML","readme":"# comments app\nA real-time comment engine with support for anonymous or authenticated posts\n\n### Quickstart\n```sh\nmkdir -p target/standalone \u0026\u0026 cd target/standalone\nwget https://cdn.jsdelivr.net/npm/dyu-comments@0.6.0/bin/comments-linux-standalone-x64.tar.gz\ntar -xzf comments-linux-standalone-x64.tar.gz\n./start.sh\n```\n\n![screenshot](https://github.com/dyu/comments/raw/master/screenshot.png)\n\nThe [demo](https://netlify-comments.dyuproject.com) is running on a $2.5 vultr plan located in SG, with the app [configured](ARGS.txt) to use a max memory of 128mb (to leave most of the available memory to the filesystem cache).\n\n## Instant comments on your site/blog\nPut this anywhere in the html body (although it is advisable to put it last)\n```html\n\u003cdiv id=\"comments\"\u003e\u003c/div\u003e\n\u003cscript\u003e\nwindow.comments_config = {\n  collapse_depth: 7, // the depth where comments get collapsed by default\n  limit_depth: 10, // max: 127\n  //auth_host: 'https://api.dyuproject.com', // if you prefer authenticated comments\n  ws_enabled: true, // real-time updates\n  ws_host: 'wss://rpc.dyuproject.com/sub',\n  rpc_host: 'https://rpc.dyuproject.com'\n}\n\u003c/script\u003e\n\u003cscript src=\"https://netlify-comments.dyuproject.com/dist/build.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"https://netlify-comments.dyuproject.com/dist/build.css\" /\u003e\n```\n\u003e Note: Uses the same instance powering the demo. No tracking whatsoever.\n\n1. The [css](https://dyu.github.io/comments/dist/build.css) is 7.1kb minified, built with [pavilion](https://github.com/getpavilion/pavilion) core.\n2. The [js](https://dyu.github.io/comments/dist/build.js) is 91.8kb minified, built with:\n   - [sveltjs](https://github.com/sveltejs/svelte)\n   - [showdown](https://github.com/showdownjs/showdown)\n   - [dompurify](https://github.com/cure53/DOMPurify)\n   - [string-hash](https://github.com/darkskyapp/string-hash)\n   - [color-hash](https://github.com/zenozeng/color-hash)\n\n## Server runtime dependencies\n- jdk7\n\n## Dev requirements\n- [node](https://nodejs.org/en/download/) 6.9.0 or higher\n- yarn (npm install -g yarn)\n- jdk7 (at /usr/lib/jvm/java-7-oracle)\n- [maven](https://maven.apache.org/download.cgi)\n- [protostuffdb](https://gitlab.com/dyu/protostuffdb) (downloaded below)\n\n## Setup\n```sh\nmkdir -p target/data/main\necho \"Your data lives in user/ dir.  Feel free to back it up.\" \u003e target/data/main/README.txt\n\n# download protostuffdb\nyarn add protostuffdb@0.14.0 \u0026\u0026 mv node_modules/protostuffdb/dist/* target/ \u0026\u0026 rm -f package.json yarn.lock \u0026\u0026 rm -r node_modules\n\nwget -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\n./modules/codegen.sh\nmvn install\n\nnpm install -g http-server clean-css-cli\ncd comments-ts\nyarn install\n```\n\n## Dev mode\n```sh\n# produces a single jar the first time (comments-all/target/comments-all-jarjar.jar)\n./run.sh\n\n# on another terminal\ncd comments-ts\n# serves the ui via http://localhost:8080/\nyarn run dev\n```\n\nIf your dev machine is a MacOS, **protostuffdb** currently does not have binary distributions for it (no MacOS machine to test/build against).\n\nOn the other hand, you can still do development on the client-side part with this temporary workaround:\n1. Edit ```comments-ts/index.html```\n2. Replace ```window.rpc_host = 'http://127.0.0.1:5020'``` with ```window.rpc_host = 'https://rpc.dyuproject.com'```\n\n## Production mode\n```sh\ncd comments-ts\n# produces a single js and other assets in comments-ts/dist/\nyarn run build\n```\n\n","funding_links":[],"categories":["Software","Communication systems"],"sub_categories":["Communication - Social Networks and Forums","Social Networks and Forums"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyu%2Fcomments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyu%2Fcomments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyu%2Fcomments/lists"}