Skip to content
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

Easy pinning of websites #581

Closed
victorb opened this issue Sep 17, 2018 · 4 comments
Closed

Easy pinning of websites #581

victorb opened this issue Sep 17, 2018 · 4 comments
Labels
status/deferred Conscious decision to pause or backlog

Comments

@victorb
Copy link
Member

victorb commented Sep 17, 2018

Would be amazing if ipfs-companion could automatically see that it's a dnslink-hosted website and provide some means for pinning the website when visiting.

Bonus-points if directories within a website could be pinned as well, so users don't have to pin an entire archive, just the parts the user cares about.

Credit to wongarsu on HN for this idea https://news.ycombinator.com/item?id=18008450

@lidel
Copy link
Member

lidel commented Sep 18, 2018

I am quite sure Companion.. already does that :) ?

When you are on any IPFS-enabled site (/ipfs/ or /ipns/) clicking below item will create a recursive pin for the current path. In case of IPNS it will pin the current snapshot (following pin is not yet a thing)

screenshot_24

I agree UI may not be intuitive enough: any ideas how we could improve it?
We were thinking about replacing low-level pins with MFS directory that could be managed via new WebUI.

FYI we are gathering thoughts on UI for user-facing "pinning" in ipfs/ipfs-gui#10

@victorb
Copy link
Member Author

victorb commented Sep 18, 2018

Cool, did not see that at first!

Two questions regarding it.

  1. Does it allow you to pin sub-resources? For example, the Stack Exchange archive is huge, and I might just want to pin one directory inside of it.

  2. Does it detect dnslink websites? https://ipfs.io for example

@lidel
Copy link
Member

lidel commented Sep 18, 2018

That is a signal we should do better job listing all the features :)
Will try to surface things like this in Q4, maybe in video/gif form.

Answering your questions:

  1. Clicking on it will create a recursive pin for the current path, so if you are in a subdirectory it will only pin from that level

  2. Yes, pinning IPNS will pin current snapshot

Right now all it does is simple ipfs pin add -r <window.location.pathname2ipfsPath> but after the Files manager lands with new WebUI we plan to make it easier to manage and change this pinning UI to add "pinned" stuff to MFS folder instead.

@lidel lidel added the status/deferred Conscious decision to pause or backlog label Sep 22, 2018
@lidel
Copy link
Member

lidel commented Sep 22, 2018

I think we've answered all questions :)
Mentioned pinning changes will continue in #415

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/deferred Conscious decision to pause or backlog
Projects
None yet
Development

No branches or pull requests

2 participants