sciencefair-land / sciencefair

The futuristic, fabulous and free desktop app for working with scientific literature :microscope: :book:
https://sciencefair-app.com
MIT License
604 stars 52 forks source link

Package management system #19

Open blahah opened 8 years ago

blahah commented 8 years ago

Possibly we can just rip apm from electron?

Basically we just want a wrapper around npm, with ~/.sciencefair/packages as the install location, and with a nice interface for finding, installing and managing the packages.

And we'll need to structure the API with extensibility in mind.

blahah commented 8 years ago

I'm starting to think about this in detail. Here's what I've got...

We can then build out a simple interface for searching npm for @sciencefair scoped packages and installing / removing them.

Longer term we could make a dat-backed distributed npm registry exclusively for handling sciencefair packages.

Thoughts?

blahah commented 8 years ago

Looking at the pre-post middleware hook pattern, for which there are a bunch of fairly simple packages:

max-mapper commented 8 years ago

my two cents is this sounds hard to maintain and would add a lot of API surface area and therefore technical debt, seems more like a v2 kind of feature

blahah commented 8 years ago

I was hoping there would be a pluggable thing like apm we could use. But I can't find one.

Agree it's probably a v2 thing - and ideally an 'offload the problem to a separate project' thing.