npm i pubkit
-
npm i pubkit
(write + run federation tests on your code using up-to-date activities from popular software collated from https://pubkit.net)
-
@dansup so does that mean pubkit runs locally?
-
purple 💜replied to Samuel Hautamäki on last edited by
@[email protected] @[email protected] everything runs locally if you hack hard enough
-
Samuel Hautamäkireplied to purple 💜 on last edited by
@purple @dansup Lol, from what I've seen PubKit is some proprietary online service that dansup really hyping. When in reality we need programs and tools like these to run locally, because development happens locally and not on prod. From what I can see I don't actually benefit at all from pubkit when developing my own activitypub server.
-
@sirobsidian @purple PubKit does run locally yes, but you need to be able to test against production servers and handle the errors accordingly. You can’t expect a local test to be the same as one testing a production server!
-
-
@dansup
Not sure if you already spoke with @J12t, but I think this could be an important tool for [email protected] -
@[email protected] thank you for asking the important questions.
Seems like @[email protected] and @[email protected] approach the task of testing from different angles.
It sounds like PubKit is a framework you write your tests against (or hook your libs into? Who knows.) and it makes calls against a real live production server hosted by PubKit, and I can imagine that isn't free.
Whereas @[email protected] is building out a local-first system that is platform agnostic (as long as it uses his own as-yet proprietary UBOS launcher).
Not sure where I land on either approach but am thankful work on testing is being thought of at all.