New Project: XULFolio

This XULRunner-based application will be used for managing an online photography portfolio.

Overview

Currently supports Zenfolio's API. I may add Flickr and SmugMug support in the future, I am striving to keep the interfaces abstract so that it will be easy to plug in to other sites by writing a simple API Compatibility Layer.

Update: SmugMug isn't allowing anyone to obtain an api key at this time. This puts them indefinitely out of consideration for this project. Also, Flickr could end up owned by Microsoft. I am strongly apposed to this acquisition and I do not intend to develop anything for a Microsoft-owned site. As long as this is a possibility, I won't be working on Flickr support.

Interesting Developments

  • I developed a simple JSON-RPC library in javascript which uses Mozilla's new native JSON support.
  • ZenFolio uses SHA-256 hashes for their challenge-response authentication scheme. This took quite a while to work out but once I figured out how to use nsICryptoHash then it all went pretty smoothly.
  • I created a CRYPTO.jsm module to wrap up the hash generation functionality. In the process I got to play with the awesome new JavaScript code modules feature in XULRunner. This is similar to creating an XPCOM singleton component, however, it's much easier to implement.
I will post up the code on SVN soon. I think that the CRYPTO.jsm and my simple JSON-RPC code might be useful to someone.
Related Project:
XULFolio
AttachmentSize
CRYPTO.jsm3.01 KB
json-rpc.js.txt1.22 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

JSON-RPC component

Do you have your JSON-RPC component and/or library posted someplace? I'm doing something similar and would love to check out your implementation.

Attachment added

I added it as an attachment above. It's not very complete but feel free to use it under the terms of the MPL, GPL2 or LGPL2 (your choice) If you would like to help develop this further into a fully featured JSON-RPC library then I would be glad to set up a google code project and add you as a developer with SVN access.