hello,
this is a big topic and i am a late on the reply. fritzing should be, indeed, a web-application.
therefore we start to build a static fritzing-parts-api from the fritzing-parts-repository
you can check it out here:
it would be cool to get more people working on this. we already begun with a parts-viewer… let me know if you want to join the development