Replacing WordPress with GitHub Issues-like blog comments

This is obviously inspired by the recent Replacing Disqus with GitHub Comments post on HN.

I wanted to share something similar I've done with my blog. You're looking at it now. It's not using Disqus or any heavyweight 3rd party solution for comments.

Instead, I've created something very simple, similar to GitHub Issues frontend UI and backend, and used that. The backend is completely pluggable (it's an interface), so it can be implemented by talking to real GitHub API, or any custom implementation you want. My blog uses a simple JSON files implementation, so I can avoid a heavyweight database dependency.

When I first created it, I was using yet another issues.Service implementation that was exposing my original WordPress blog (via its export as XML functionality). But eventually I migrated that into the current filesystem-backed store, which lets me edit and create new blog posts easily.

Oh, and I've also implemented reactions. Not just 6, all of them.

You're welcome to test out comments here, similar to https://github.com/dwilliamson/donw.io/issues/1. I rely on GitHub for authentication (I didn't want to make people come up with yet another password).

(Update on 2020-03-02: By now, you can also sign in via IndieAuth or RelMeAuth. See issue 34 for details.)

Comments

dmitshur closed this 7 years ago
dmitshur commented 7 years ago

This is a comment.

Write Preview Markdown
dmitshur commented 7 years ago

This is another comment.

Write Preview Markdown
dmitshur commented 7 years ago · edited

This is a comment with some markdown...

  • Listy
  • Listo
  1. Jumble
  2. Sale

Boldit or Italicit or strikeit

heading

hashtag

something something

var x = 3
Write Preview Markdown
rezhajulio commented 7 years ago

Really cool, dude!

Write Preview Markdown
rizkyramadhan commented 7 years ago

test

Write Preview Markdown
motyar commented 7 years ago · edited by dmitshur

Testing it for a link https://example.com

Write Preview Markdown
motyar commented 7 years ago

Wow

Write Preview Markdown
macleodsawyer commented 7 years ago

This is a brilliant way to do this. Absolutely love it - especially for the way developer blogs work.

Write Preview Markdown
kentbrew commented 7 years ago · edited

I was wondering when somebody would get around to doing this.

Write Preview Markdown
citrusui commented 6 years ago

Testing 123 (sorry if this sends you an email!)

Write Preview Markdown
citrusui commented 6 years ago · edited

[dupe]

Write Preview Markdown
citrusui commented 6 years ago · edited

[dupe]

Write Preview Markdown
citrusui commented 6 years ago · edited

[dupe]

Write Preview Markdown
dmitshur commented 6 years ago · edited

Hi @citrusui.

I do get notified about replies here, via notifications (not email). Is it working as you expected? Did you mean to post 4 comments?

Write Preview Markdown
citrusui commented 6 years ago

@shurcooL No, I didn’t. Sorry! I wish you could delete comments.

Write Preview Markdown
dmitshur commented 6 years ago · edited

No worries. Deleting comments isn't implemented yet, but maybe in the future. I'm tracking it in this issue. At least you can edit them, hehe.

In case your 4 posts were an accident, I think it might be because of this. I definitely want to fix that.

Write Preview Markdown
dmitshur commented 6 years ago

This is just a test comment to check something...

Write Preview Markdown
dmitshur commented 6 years ago

Another test comment to conclude my testing.

Write Preview Markdown
tural-esger commented 6 years ago

how are you doing, Gopher?

Write Preview Markdown
dmitshur commented 6 years ago

Doing well! How about yourself, @tural-esger? ;)

Write Preview Markdown
nopynoop commented 5 years ago

This looks really cool! :)

Write Preview Markdown
dmitshur reopened this 4 years ago
dmitshur commented 4 years ago

I've decided to publish this post on the blog front page now, so re-opening.

Write Preview Markdown
to comment.