Skip to main content
This release is 20 versions behind 1.4.0 — the latest version of @fedify/fedify. Jump to latest

Built and signed on GitHub Actions

An ActivityPub/fediverse server framework

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
94%
Published
3 months ago (1.2.0)

This module contains the runtime facilities for working with Activity Vocabulary objects, which are auto-generated from the IDL.

Classes

c
FetchError

Error thrown when fetching a JSON-LD document failed.

c
LanguageString

A language-tagged string which corresponds to the rdf:langString type.

Functions

f
exportMultibaseKey

Exports a public key in Multibase format.

f
exportSpki

Exports a public key in PEM-SPKI format.

f
fetchDocumentLoader

A JSON-LD document loader that utilizes the browser's fetch API.

f
getAuthenticatedDocumentLoader

Gets an authenticated DocumentLoader for the given identity. Note that an authenticated document loader intentionally does not cache the fetched documents.

f
importMultibaseKey

Imports a Multibase-encoded public key.

f
importSpki

Imports a PEM-SPKI formatted public key.

f
kvCache

Decorates a DocumentLoader with a cache backed by a Deno.Kv.

Interfaces

I
KvCacheParameters

The parameters for kvCache function.

I
RemoteDocument

A remote JSON-LD document and its context fetched by a DocumentLoader.

Type Aliases

T
AuthenticatedDocumentLoaderFactory

A factory function that creates an authenticated DocumentLoader for a given identity. This is used for fetching documents that require authentication.

T
DocumentLoader

A JSON-LD document loader that fetches documents from the Web.

Add Package

deno add jsr:@fedify/fedify

Import symbol

import * as mod from "@fedify/fedify/runtime";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@fedify/fedify/runtime";

Add Package

npx jsr add @fedify/fedify

Import symbol

import * as mod from "@fedify/fedify/runtime";

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

import * as mod from "@fedify/fedify/runtime";

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

import * as mod from "@fedify/fedify/runtime";

Add Package

bunx jsr add @fedify/fedify

Import symbol

import * as mod from "@fedify/fedify/runtime";