Is there an open source version of HN anywhere?

You might like lamernews[1], made by antirez, which uses redis.

[1]: https://github.com/antirez/lamernews