PlaidWeb / webmention.js

Client-side library for rendering webmentions from webmention.io
MIT License
112 stars 15 forks source link

Add endpoint configuration #16

Open fluffy-critter opened 3 years ago

fluffy-critter commented 3 years ago

There are alternate endpoints that support the webmention.io API, such as mention.tech. Make it easier to support them!

Ryuno-Ki commented 3 years ago

Perhaps @kevinmarks could help by documenting the API?

So far it looks like https://mention.tech/listmentions?target=&json=on (Now redirect to HTTPS version, too).

Its repo declares it as „webmention experiment”: https://github.com/kevinmarks/mentiontech

Ryuno-Ki commented 3 years ago

If we refactor

https://github.com/PlaidWeb/webmention.js/blob/1aff7d3daec51e17fbc7cabd6e68170c21b22d7b/static/webmention.js#L415-L419

into its own function, it could be made parametrised. That would like work via additional data-attribute on the script tag.