I want to share some information about a repository we just published. ap-components is a set of Web Components for building interfaces for the ActivityPub API. I built it as I was making a sample application for handling the acct: URI scheme. I found myself making more and more components for the UI, and realised that they would probably be useful for other applications, too.
The library is available on npm at @socialwebfoundation/ap-components. It currently covers some of the simplest ActivityPub data, but I hope to expand it to give visibility to other types of objects and activities. Please feel free to try it out and let us know if it’s helpful for your work.
6 responses to “ap-components”
@evanprodromou Wow!! Great!
@skarnio 👍🏼
@evanprodromou Hey Evan, this is super interesting stuff! Am I correct in assuming that these could be used as templates to render ActivityPub objects in a Web application?
That’s exactly right!
@evanprodromou probably it’s not entirely useful, as this is my first attempt at building web components, but I’ve done similar work for one of my projects: https://git.sr.ht/~mariusor/oni/tree/master/item/src/js
@mariusor Wow. Looking this over, your classes are surprising close to the ones in ap-components. Should we try to join forces on this work?