ap-components

By

1 min read

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.

Evan Prodromou
Evan Prodromou
@evanprodromou@socialwebfoundation.org

Research Director at the Social Web Foundation.

Current editor of the ActivityPub and Activity Streams 2.0 specifications at the Social Web Community Group of the W3C.

Author of “ActivityPub: Programming for the Social Web” by O’Reilly Media.

77 posts
824 followers
Fediverse reactions

6 responses to “ap-components”

  1. Thiago Skárnio Avatar

    @evanprodromou Wow!! Great!

    1.  Avatar
      Evan Prodromou

      @skarnio 👍🏼

  2. Sean Tilley Avatar

    @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?

    1. Evan Prodromou Avatar

      That’s exactly right!

  3. marius Avatar

    @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

    1.  Avatar
      Evan Prodromou

      @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?