Hi Jon On Mon, Mar 24, 2014 at 5:34 PM, Jon Udell <[email protected]> wrote:
> OK I have an initial CouchDB adaptor that seems to work. > Congratulations, excellent news. > > https://gist.github.com/judell/9744381 > > This is obviously rough around the edges but it seems to work. (I'm > embarrassed to tell you how much debugging of nested async callbacks it > took me to get this going!) > I also found this syncy stuff quite a challenge to work with; there's a lot of pieces in the air at once. But your code looks good to me (modulo the debugging code), the two parts seem to have meshed together quite nicely. It would be good to change the title string at the top of the adaptor file to something like: $:/plugins/thali/couchdb/couchdbadaptor.js My interest here, as I mentioned, is to use this with our Thali project. > For that, I expect there will be different packaging and setup issues than > for the mainstream TiddlyWiki community. But I think the basic adaptor > should remain the same. Does it look reasonable to you folks? Is it > something the main project would like to use? If so how should I proceed? > It would be great if it were possible to make the couchdbadaptor be sufficiently configurable to be generic. We could have $:/plugins/tiddlywiki/couchdb containing the generic pouchdb adaptor, and $:/plugins/moth/thali containing the specific configuration to get it working with thali. We haven't worked through all the details of setting up a TW plugin library; in the meantime a reasonable thing to do would be to have the generic adaptor in the main tw5 repo, and keep the thali plugin in it's own repo (or codeplex). It might be handy to arrange a Skype/Hangout if you've time to discuss the details. This is very exciting, thanks for working with us on it. Best wishes Jeremy. > > Thanks, > > Jon > > > > On Tuesday, March 4, 2014 7:32:54 AM UTC-5, Danielo Rodríguez wrote: >> >> This looks promising! >> >> I'm very interested in this kind of implementation for TW. >> Please keep us posted. >> >> El martes, 4 de marzo de 2014 00:02:59 UTC+1, Yaron Goland escribió: >>> >>> BTW, just to a note from the peanut gallery but PouchDB support would >>> solve all our problems! As Jon mentioned we already use PouchDB as our >>> primary client. So switching it from 'server' mode to 'client' mode is >>> beyond trivial. >>> >>> >>> Also, to very briefly explain Thali. Thali is about letting users run >>> their own services on their own devices. So we would want to let someone >>> run TiddlyWiki on their phone. This wouldn't be static either. It would be >>> fully dynamic. They could edit to their heart's content and then using the >>> CouchDB protocol synch those changes either unidirectional (for a blog like >>> experience or to people who don't have edit permission) or bi-directionally >>> (for more of a Wiki style shared editing experience and for keeping their >>> own devices in sync, e.g. a change you make on your phone should show up on >>> your tablet, PC, etc.). >>> >>> >>> What Thali adds on top of vanilla CouchDB is our security model and >>> Tor support. The security model is, as Jon said, public keys. A user is a >>> public key. Period. That's it. >>> >>> >>> So when say my phone wants to synch some changes in my TiddlyWiki with >>> your tablet, my phone would open a mutual SSL/TLS auth connection. The >>> phone would present its public key as a client cert, the server would >>> present its public key as a server cert and now everyone knows who they are >>> talking to. Note that everything works the same in reverse. Your tablet >>> could reach out to my phone in which case the tablet is the client and the >>> phone is server. This is all done using self signed certs. No CAs. No DNS. >>> >>> >>> We use Tor to handle connectivity since Tor hidden services give us >>> the ability to penetrate firewalls/NATs and traffic analysis protection as >>> well. >>> >>> >>> There is more to the Thali vision than just the above (remind me to >>> explain MVC for apps someday or how we exchange public keys) but this is >>> the TiddlyWikiDev alias, not the Thali alias, so I'll stop now. :) >>> >>> >>> Thanks! >>> >>> >>> Yaron >>> >> -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywikidev. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
