A .NET implementation of the Activity Streams vocabulary in the form of classes that can be serialized using System.Text.Json
The specifications can be seen here: https://www.w3.org/TR/activitystreams-vocabulary/
These types are famously used in the ActivityPub specification which is used in the Fediverse including Mastodon.
We have chosen that it should also implement the properties that are specific to ActivityPub as these don't change any of the existing properties and because they are very few.
- Classes for Core Types.
- Class for Object
- Class for Link
- Class for Activity
- Class for IntransitiveActivity
- Class for Collection
- Class for OrderedCollection
- Class for CollectionPage
- Class for OrderedCollectionPage
- Extended classes for Activity Types.
- Extended classes for Actor Types.
- Extended classes for Object and Link Types.
- Properties specific to ActivityPub
- Support for retrieving @context JSON-LD defintions.
- Support for serializing
This is used in the following repositories.
- KristofferStrube/ActivityPubBotDotNet: An implementation of a ActivityPub bot that can communicate with Mastodon servers.
- Blazor.FileSystem Search Mastodon Sample: A sample of using the ActivityStreams classes in Blazor to Deserialize the responses from an API.