https://github.com/peekbehind/common-peekbehind
Common PeekBehind Server stores user activity recorded on a web page in a shared database.
Run the unit tests in the tests/ folder using nodejs, and read the source code and comments to get familiar with the implementation in the code/ folder.
You can then customize the implementation, for example adding your own functions to store and retrieve ghosts data using a different type of database software.
JavaScript (node.js)
http://nodejs.org/
SQL (PostgreSQL)
http://www.postgresql.org/
Eric Bréchemier
http://eric.brechemier.name
for
PeekBehind.com
http://peekbehind.com
MIT License for the code and documentation
LICENSE.txt