Skip to main content
Works with
This package works with Cloudflare Workers, Node.js, Deno, BunIt is unknown whether this package works with Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
It is unknown whether this package works with Browsers
JSR Score100%
License
MIT
Downloads130/wk
Published22 hours ago (2.3.8)

WebFinger client library for ActivityPub

Functions

f
lookupWebFinger(
resource: URL | string,
options?: LookupWebFingerOptions
): Promise<ResourceDescriptor | null>

Looks up a WebFinger resource.

Interfaces

  • Whether to allow private IP addresses in the URL.

  • The maximum number of redirections to follow.

  • meterProvider: MeterProvider

    The OpenTelemetry meter provider used to record the webfinger.lookup counter and webfinger.lookup.duration histogram. If omitted, no metric measurements are emitted (the helper is opt-in to avoid touching the global meter provider for callers that do not use OpenTelemetry).

  • signal: AbortSignal

    AbortSignal for cancelling the request.

  • tracerProvider: TracerProvider

    The OpenTelemetry tracer provider. If omitted, the global tracer provider is used.

  • userAgent: GetUserAgentOptions | string

    The options for making User-Agent header. If a string is given, it is used as the User-Agent header value. If an object is given, it is passed to getUserAgent to generate the User-Agent header value.

I

Describes a resource. See also RFC 7033 section 4.4.

  • aliases: readonly string[]

    URIs that identify the same entity as the subject.

  • links: readonly Link[]

    Links to other resources.

  • properties: Readonly<Record<string, string>>

    Conveys additional information about the subject of this descriptor.

  • subject: string

    A URI that identifies the entity that this descriptor describes.

Type Aliases

T
WebFingerLookupResult =
"found"
| "not_found"
| "invalid"
| "network_error"
| "error"

The terminal classification of an outgoing lookupWebFinger call, recorded as the webfinger.lookup.result attribute on the webfinger.lookup counter and webfinger.lookup.duration histogram.

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.

Add Package

deno add jsr:@fedify/webfinger

Import symbol

import * as mod from "@fedify/webfinger";
or

Import directly with a jsr specifier

import * as mod from "jsr:@fedify/webfinger@^2.3.8";