A Disqus alternative https://posativ.org/isso/
Go to file
2012-10-28 00:39:20 +02:00
isso use highly sophisticated '2 weeks ago' dates including microformats 2012-10-28 00:39:20 +02:00
specs limit to 20 by default 2012-10-24 23:56:52 +02:00
Makefile refactor JS and add YUI compression. 2012-10-25 16:20:50 +02:00
Readme.md add Hacking section to README.md 2012-10-25 16:20:52 +02:00
setup.py begin dashboard using mako templates 2012-10-24 19:53:56 +02:00

Isso Ich schrei sonst

You love static blog generators (especially Acrylamid *cough*) and the only option to interact with the community is Disqus. There's nothing wrong with it, but if you care about the privacy of your audience you should better use a comment system that is under your control. This is, were Isso comes into play.

Current status: nosetests specs/. Ran 11 tests in 0.570s.

Features/Roadmap

  • transparent and lightweight backend (SQLite or plain text files)
  • simple JSON API (hence comments are JavaScript-only)
  • create comments and modify/delete within a time range
  • Ping/Trackback support (not implemented yet)
  • simple admin interface (work in progress)
  • easy integration, similar to Disqus (work in progress)
  • spam filtering using http:bl (not implemented yet)

Hacking

You'll need 2.6 ≤ python ≤ 2.7, ender.js and YUI Compressor. Then run:

$ git clone https://github.com/posativ/isso.git && cd isso/
$ make init
$ make js
$ isso --test

Then go to http://localhost:8000/static/post.html to write a comment.

Installation

Still a TODO, but later on it's simply easy_install isso.

Migrating from Disqus

Go to disqus.com and export your "forum" as XML. If you use Firefox and you get a 403, try a webkit browser, Disqus did something very weird with that download link. Next:

$ isso import /path/to/ur/dump.xml

That's it. Visit your admin page to see all threads. If it doesn't work for you, please file in a bug report *including* your dump.

API

To fetch all comments for a path, run

$ curl -H "Accept: application/json" http://example.org/comment/foo-bar/

To write a comment, you have to POST a JSON dictionary with the following key-value pairs. Text is mandatory otherwise you'll get a 400 Bad Request. You'll also get a 400 when your JSON is invalid.

Let's say you want to comment on /foo-bar/

$ curl http://example.org/comment/foo-bar/new -H "Accept: application/json" -X POST -d \
    '{
        "text": "Lorem ipsum ...",
        "name": "Hans", "email": "foo@bla.org", "website": "http://blog/log/"
    }'

This will set a cookie, that expires in a few minutes (15 minutes per default). This cookie allows you do modify or delete your comment. Don't try to modify that cookie, it is cryptographically signed. If your cookie is outdated or modified, you'll get a 403 Forbidden.

For each comment you'll post, you get an unique cookie. Let's try to remove your comment:

$ curl -H ... -X DELETE http://example.org/comment/foo-bar/1

If your comment has been referenced by another comment, your comment will be cleared but not deleted to retain depending comments.

Alternatives