vibrancy icon indicating copy to clipboard operation
vibrancy copied to clipboard

Extract `open-graph.js` to separate library

Open jamietanna opened this issue 3 years ago • 3 comments
trafficstars

As you're aware, I'm planning on migrating my Micropub endpoint to Vibrancy at some point.

In the meantime, I've spotted that this would be a good pipe for OpenGraph to i.e. Microformats2, as it'd allow me to make use of this from my current Micropub server, which doesn't have a library handy for OpenGraph parsing.

I'm happy doing this myself, as the code is MIT'd, but thought I'd check with you before doing this in case you'd like to create/maintain the underlying library.

jamietanna avatar Mar 14 '22 11:03 jamietanna

I've picked this up btw, currently at https://www.npmjs.com/package/@jamietanna/opengraph-mf2, and if you're happy I can get a PR raised to integrate this back into Vibrancy. There are some breaking changes (i.e. I return an MF2 Object with a type)

I'm also happy to discuss this being shared ownership / owned by the IndieWeb org.

jamietanna avatar Mar 14 '22 14:03 jamietanna

No worries, @jamietanna. Feel free to do so. I hadn't read about pipes - I like the concept 😄

barryf avatar Mar 14 '22 20:03 barryf

Awesome! Mind if I keep this issue open as a reminder to loop back and migrate this? Or shall I raise a separate issue?

jamietanna avatar Mar 14 '22 20:03 jamietanna