Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Deno
This package works with Deno
JSR Score88%
Downloads36/wk
Publisheda month ago (0.3.1)

A framework for creating ActivityPub bots

T
AcceptEventHandler

An event handler invoked when a follow request the bot sent is accepted.

T
FollowEventHandler

An event handler for a follow request to the bot.

T
LikeEventHandler

An event handler for a like of a message.

T
MentionEventHandler

An event handler for a message mentioned to the bot.

T
MessageEventHandler

An event handler for a message shown to the bot's timeline. To listen to this event, your bot needs to follow others first.

T
QuoteEventHandler

An event handler for a quote of the bot's message.

T
ReactionEventHandler

An event handler for an emoji reaction to a message.

T
RejectEventHandler

An event handler invoked when a follow request the bot sent is rejected.

T
ReplyEventHandler

An event handler for a reply to the bot.

T
SharedMessageEventHandler

An event handler for a message shared by the bot. To listen to this event, your bot needs to follow others first.

T
UndoneReactionEventHandler

An event handler for undoing an emoji reaction to a message.

T
UnfollowEventHandler

An event handler for an unfollow event from the bot.

T
UnlikeEventHandler

An event handler for undoing a like of a message.

T
VoteEventHandler

An event handler for a vote in a poll. This event is only triggered when the bot is the author of the poll, and the vote is made by another actor. Note that if the poll allows multiple selections, this event is triggered multiple times, once for each option selected by the actor.

T
CustomEmoji

A definition of a custom emoji. It can be either a remote image URL or a local image file.

I
CustomEmojiBase

The common interface for defining custom emojis.

I
CustomEmojiFromFile

The interface for defining custom emojis from a local image file.

I
CustomEmojiFromUrl

The interface for defining custom emojis from a remote image URL.

T
DeferredCustomEmoji

A deferred Emoji (provided by Fedify), which is a function that takes a Session and returns an Emoji. This is useful for creating emojis that depend on the session data.

T
Emoji

A branded type for a single emoji character (more exactly, a single Unicode grapheme cluster of emoji). This is used to represent a single emoji in a string format. It is not a full-fledged emoji object, but rather a string that is guaranteed to be a single emoji.

f
emoji

A tagged template literal function that creates an Emoji from a string. It is a simple wrapper around the String.raw function, but it also checks if the resulting string is a valid emoji.

f
isEmoji

A type guard that checks if a value is a single emoji character.

T
AcceptEventHandler

An event handler invoked when a follow request the bot sent is accepted.

T
FollowEventHandler

An event handler for a follow request to the bot.

T
LikeEventHandler

An event handler for a like of a message.

T
MentionEventHandler

An event handler for a message mentioned to the bot.

T
MessageEventHandler

An event handler for a message shown to the bot's timeline. To listen to this event, your bot needs to follow others first.

T
QuoteEventHandler

An event handler for a quote of the bot's message.

T
ReactionEventHandler

An event handler for an emoji reaction to a message.

T
RejectEventHandler

An event handler invoked when a follow request the bot sent is rejected.

T
ReplyEventHandler

An event handler for a reply to the bot.

T
SharedMessageEventHandler

An event handler for a message shared by the bot. To listen to this event, your bot needs to follow others first.

T
UndoneReactionEventHandler

An event handler for undoing an emoji reaction to a message.

T
UnfollowEventHandler

An event handler for an unfollow event from the bot.

T
UnlikeEventHandler

An event handler for undoing a like of a message.

T
VoteEventHandler

An event handler for a vote in a poll. This event is only triggered when the bot is the author of the poll, and the vote is made by another actor. Note that if the poll allows multiple selections, this event is triggered multiple times, once for each option selected by the actor.

I
FollowRequest

A follow request to the bot.

I
AuthorizedMessage

An authorized message in the ActivityPub network. Usually it is a message published by the bot itself.

I
AuthorizedSharedMessage

An authorized shared message in the ActivityPub network. Usually it is a message shared by the bot itself.

I
Message

A message in the ActivityPub network. It is a thin wrapper around a Fedify object: an Article, a ChatMessage, a Note, or a Question.

T
MessageClass

A possible message class.

I
MessageShareOptions

Options for sharing a message.

T
MessageVisibility

The visibility of a message.

I
SharedMessage

A shared message in the ActivityPub network. It is a thin wrapper around an Announce, which is a Fedify object.

I
Poll

An interface representing a poll.

I
Vote

An interface representing a vote in a poll. Note that if the poll allows multiple selections, the options are represented as multiple Vote objects, each with a single option.

I
AuthorizedLike

An authorized like of a message. Usually it is a like that the bot itself made.

I
AuthorizedReaction

An authorized emoji reaction to a message. Usually it is a reaction that the bot itself made.

I
Like

A like of a message. It is a thin wrapper around a Like, which is a Fedify object.

I
Reaction

An emoji reaction to a message. It is a thin wrapper around an EmojiReact, which is a Fedify object.

I
KvStoreRepositoryPrefixes

The prefixes for key-value store keys used by the bot.

c
MemoryCachedRepository

A repository decorator that adds an in-memory cache layer on top of another repository. This is useful for improving performance by reducing the number of accesses to the underlying persistent storage, but it increases memory usage. The cache is not persistent and will be lost when the process exits.

I
RepositoryGetFollowersOptions

Options for getting followers from the repository.

I
RepositoryGetMessagesOptions

Options for getting messages from the repository.

T
Uuid

A UUID (universally unique identifier).

I
SessionGetOutboxOptions

Options for getting messages from the bot's outbox.

I
SessionPublishOptionsWithClass

Options for publishing a message with a specific class.

I
SessionPublishOptionsWithQuestion

Options for publishing a question with a poll.

f
code

Applies <code> tag to a text. You can use this function to create a CodeText tree.

c
CodeText

A text tree that renders a inline code. You normally don't need to instantiate this directly; use the code function instead.

f
customEmoji

Renders a custom emoji. You can use this function to create a CustomEmojiText tree.

c
CustomEmojiText

A text tree that renders a custom emoji. You normally don't need to instantiate this directly; use the customEmoji function instead.

f
em

Applies <em> tag to a text. You can use this function to create an EmText tree.

c
EmText

A text tree that renders an <em> text. You normally don't need to instantiate this directly; use the em function instead.

f
hashtag

Creates a hashtag. You can use this function to create a HashtagText tree.

c
HashtagText

A text tree that renders a hashtag. You normally don't need to instantiate this directly; use the hashtag function instead.

f
isText

Checks if a value is a Text tree.

c
LinkText

A text tree that renders a link. You normally don't need to instantiate this directly; use the link function instead.

f
markdown

Renders a Markdown text. You can use this function to create a MarkdownText tree. The mentions in the Markdown text will be rendered as links unless the mentions option is set to false.

c
MarkdownText

A text tree that renders a Markdown text. You normally don't need to instantiate this directly; use the markdown function instead.

I
MarkdownTextOptions

The options for rendering a Markdown text.

f
mention

Mentions an actor by its fediverse handle. You can use this function to create a MentionText tree. The label of the mention will be the same as the handle.

f
mentions

Checks if a given actor is mentioned in a text.

c
MentionText

A text tree that renders a mention. You normally don't need to instantiate this directly; use the mention function instead.

c
PlainText

A text tree that renders a plain text. You normally don't need to instantiate this directly; use the plainText function instead.

f
plainText

A function that creates a PlainText tree. It only does two simple things:

f
strong

Applies <strong> tag to a text. You can use this function to create a StrongText tree.

c
StrongText

A text tree that renders a <strong> text. You normally don't need to instantiate this directly; use the strong function instead.

c
TemplatedText

A text tree that renders a template string with values. You normally don't need to instantiate this directly; use the text function instead.

I
Text

A tree structure representing a text with formatting. It does not only render the text but also extract tags (e.g., mentions) from it.

f
text

A template string tag that creates a Text tree.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.