-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we bundle js-ipfs
?
#6
Comments
What is the concern over bundling a node? Only size? Or other things like cpu and bandwidth too? At the very least, if the bundled node is removed, the tool should clearly spell out the recommended steps to installing a node when one is not discovered. Aside from this particular decision, in general I recommend always assuming the user does not have a node running as the starting point in our architecture and design. |
My main concern was the bundle size and time it would take to install
Yes, why not? Also, I don't see why many people would want to cohost websites on an offline node.
I agree. Why not using |
The problem with bundling js-ipfs with ipfs-cohost is that we kinda encourage running multiple nodes as the default instead of incentivizing users to install js-ipfs/go-ipfs/ipfs-desktop. I believe we should default to trying HTTP API first:
As for the bundle size, we need to pick one of below options: (A) keep cli and lib together
Potential problem is that CLI needs (B) move cli or lib to a separate packageWe could go with Thoughts? |
I wouldn't mind to separate them, but I would be careful about the namings. Perhaps we could even keep them both on the same repository for the sake of simplicity. I don't want to have people run |
Something else worth nothing: |
Yep, it use It would be great if we could lazily fetch js-ipfs if needed. Running from npx is crushingly slow due to the js-ipfs dep. |
I've noticed that, right now,
ipfs-cohost
is bundlingjs-ipfs
with it. If we look at it as a library, it does not make sense to have it as a dependency because it will only add up in size.Also, as a standalone executable, I wonder if we need
js-ipfs
. I believe most people using this tool will already have an IPFS node running and it might not make much sense to be spinning a new one just to cohost a website, which, by default, will be a lazy cohost (see #5)./cc @lidel @autonome
The text was updated successfully, but these errors were encountered: