@shootpub/activitypub-types
v3.1.5
Published
ActivityPub types with guards and FEP-2277 support
Maintainers
Readme
ActivityPub Types
ActivityPub types package with support for FEP-2277 Activitypub core types (duck typing).
import { isAPObject } from "activitypub-types/object";
import { isAPNote } from "activitypub-types/common/note";
const note = { type: "Note", content: "hi!" };
isAPObject(note); // true
isAPNote(note); // true
const actor = { inbox: "https://example.com/inbox" };
isAPActor(actor); // true
isAPObject(actor); // falseInstallation
npm i @shootpub/activitypub-typesCredits
This was originally a fork of siranweb/activitypub-types however now deviates too greatly from upstream.
