Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Evan Prodromou
@evanprodromou@socialwebfoundation.org  ·  activity timestamp 5 months ago

⁂ Article

ap-components

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.

  • Copy link
  • Flag this article
  • Block
marius
@mariusor@metalhead.club replied  ·  activity timestamp 5 months ago
@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

They are not zero dependency however, they are built with the help of lit.js.

  • Copy link
  • Flag this comment
  • Block
Sean Tilley
@deadsuperhero@social.wedistribute.org replied  ·  activity timestamp 5 months ago
@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?
  • Copy link
  • Flag this comment
  • Block
Thiago Skárnio
@skarnio@social.alquimidia.org replied  ·  activity timestamp 5 months ago
@evanprodromou Wow!! Great!
  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login