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

Discover rel="payment" links. #48

Open
qubyte opened this issue Feb 10, 2018 · 4 comments
Open

Discover rel="payment" links. #48

qubyte opened this issue Feb 10, 2018 · 4 comments

Comments

@qubyte
Copy link
Contributor

qubyte commented Feb 10, 2018

Prompted by #2, but since this suggestion should probably not be the primary means of determining a payment URL (favouring something explicit in package.json would be better in my opinion) I've moved it to this issue to avoid adding noise to #2.

In the wild there's a microformat to make payment URIs discoverable within a webpage. The gist is that any link or anchor with a rel="payment" contains a payment href (and ideally also a title attribute to describe it) which resolves to a means to donate. I've made a scraper for these in this module (only checks HTTPS pages by default).

The package file contains a couple of opportunities to use this. The homepage field would be useful for project-level donations, and author info which includes a URL could be used for personal donations.

Pending the outcome of #2, and if you think it's an idea worth persuing, I'd be happy to open a pull request.

@feross
Copy link
Owner

feross commented Feb 14, 2018

Cool, didn't know about this spec. I definitely think that explicit package.json is the way to go, but I'll leave this open until that's implemented to see how it goes.

@qubyte
Copy link
Contributor Author

qubyte commented Feb 14, 2018

Yup, it definitely makes sense to favour explicit links.

@qubyte qubyte closed this as completed Feb 14, 2018
@qubyte qubyte reopened this Feb 14, 2018
@qubyte
Copy link
Contributor Author

qubyte commented Feb 14, 2018

Argh, sorry. Creaking browser and poor aim with my clicking.

@jimmywarting
Copy link

jimmywarting commented Sep 29, 2019

should start reading links from .github/FUNDING.YML
should be the the go to method of adding themself into the list instead of sending PR to add themself, easier then parsing readme rel links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants