LibraryOfCongress / bagger-js

Upload BagIt-format deliveries to S3 entirely in the browser
https://libraryofcongress.github.io/bagger-js/
Other
32 stars 7 forks source link

npm package for node.js #29

Open nuest opened 8 years ago

nuest commented 8 years ago

Hi! Have you considered or tested your code for server-side JavaScript, i.e. an npm package for node.js?

acdha commented 8 years ago

I haven't – perhaps @edsu or @dbrunton might be familiar with any existing node.js implementations. I would want to reconsider some parts of the design because there would be far more straight-forward to do things like the crypto operations without having to work within the restricted browser environment, not to mention having things like high-performance hashing available directly without having to use asm.js in a web worker.

edsu commented 8 years ago

Yeah, I'm not sure. I had thought it might be useful to provide an atom/electron package for bagger-js to run it as a desktop app. But it doesn't sound like that's the use case you are thinking of?

acdha commented 8 years ago

@edsu: @eikeon and I talked about using Electron very casually but I think that would be a great way to deprecate the old Java desktop app and avoid needing to maintain two separate codebases for both light and heavy users.

edsu commented 8 years ago

Yes, I was thinking the same thing :-D I guess that would be a separate issue. @nuest were you thinking of bagit library for node like bagit-js?

nuest commented 8 years ago

Yes, @edsu that was what I was thinking of. However, the package bagit-js you link to is basically empty. I would like to develop a node application that handles bagit containers.

nuest commented 8 years ago

My apologies for leaving this thread kind of open ended. So I'm involved in a research project that has just started, where we will look into using BagIt to package both source code and runtimes (via containers) of research analyses. Right now we're just starting, but I can imagine that we will implement our components with node.js, and if we do I'd really like to collaborate with you guys on this.

Until then: Are you aware of Google Summer of Code? Maybe you'd consider mentoring a student that could work on this topic. For information see https://summerofcode.withgoogle.com/

acdha commented 6 years ago

It looks like there are now multiple projects on NPM. Given how much this depends on browser APIs which aren’t relevant to server apps does it seem like there is much reason to keep this issue open?