Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It seems like almost every project I work on could benefit from a general-purpose library for storing JSON documents along with a change history, including the change timestamp and author. Also the ability to merge two divergent branches and flag merges that need manual attention. I feel like this has been re-invented again and again. It's a bit like embedding git in your application---and maybe that's even the best way to go. It would sure be useful! So I wonder if this Wiki project will have some way to extract just that bit of functionality. The distributed nature makes me thing probably not, but who knows?


Check out PouchDB. That's exactly what it's designed for: JSON document storage with remote synchronization capabilities.


Isn't that tightly-coupled with CouchDB though?


PouchDB uses the CouchDB sync protocol to sync to multiple servers (or other PouchDB databases). PouchDB is also planning on offering a lightweight server-side PouchDB that runs in Node.

FWIW any database could potentially implement the CouchDB sync protocol. http://dataprotocols.org/couchdb-replication/


There actually is a PouchDB Node server already: https://github.com/pouchdb/pouchdb-server/. Installing it is as easy as `npm install -g pouchdb-server`

Also, Drupal recently announced that they're going to offer a CouchDB-compatible server. So yeah, anybody can implement the sync protocol. :) http://wearepropeople.com/blog/a-content-staging-solution-fo...


Thanks! How did I miss this?


Thanks! This would definitely make it vastly more popular!


Camlistore seems like it would serve as a great foundation for something like that (or Ward's federated wiki).

It was created with a similar goal in mind (stop writing CMSes over and over) by Brad Fitzpatrick (of LiveJournal/memcached/etc).

https://camlistore.org/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: