I recently put Pasteros up on Github [link], the text storage service. What was once a singular file is now a collection of models, views and controllers. You can see it running here: paste.gelat.in. Feel free clone the repo and use it for your own projects.

Of course, it's not made as a turnkey solution so tables need to be created. Pastes can be forked and also compared to the parent paste (diff). It' has also been a huge stepping stone to not writing such terrible code, at least that's what I think.