Webmentions for Deno llms.txt

/ 1 Frimaire 232
One minute / 74 words
in short: Discover webmention endpoints and oll them with Deno.

This is a straightforward webmention sending and endpoint discovery implementation.

It has a single “external” dependency, which is Deno DOM. It uses this library to find the webmention endpoint within a page.

It passes the test suite listed at webmention.rocks.

You can check it out here.

Usage

import {
  getEndpoint,
  webmention,
} from "https://deno.land/x/webmention/mod.ts";

getEndpoint("https://webmention.rocks/test/1");
// Returns "https://webmention.rocks/test/1"

webmention(source, target);

// Returns with:
//{
//    status: response.status,
//    source: source,
//    target: response.url,
//};

Tip Jar

Select a network to open a wallet link or show a QR code.

Ethereum icon Ethereum (Mainnet)
Ethereum QR code

ethereum:pay-0x0cA8353644465a21BAeFdE854A442fE94708a54c@1

0x0cA8353644465a21BAeFdE854A442fE94708a54c (Copy)

Polygon icon Polygon (Mainnet)
Polygon QR code

ethereum:pay-0x0cA8353644465a21BAeFdE854A442fE94708a54c@137

0x0cA8353644465a21BAeFdE854A442fE94708a54c (Copy)

Bitcoin icon Bitcoin (Taproot)
Bitcoin QR code

bitcoin:bc1pu34s92tpl0j3cp7dfvm87zgyn4mdkp5nx5ckaeczuhunpsf7qgcshf4ptg

bc1pu34s92tpl0j3cp7dfvm87zgyn4mdkp5nx5ckaeczuhunpsf7qgcshf4ptg (Copy)

Comments