0.0.1-alpha.7 • Published 4 months ago

@fedikit/host-meta v0.0.1-alpha.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@fedikit/host-meta

Implement Web Host Metadata in a simple way.

Usage

/.well-known/host-meta /.well-known/host-meta.* (simpleHostMeta)
import { simpleHostMeta } from '@fedikit/webfinger'
import { Hono } from 'hono'

const app = new Hono()

// GET https://example.com/.well-known/host-meta (accept json)
// GET https://example.com/.well-known/host-meta.json
// GET https://example.com/.well-known/host-meta.jrd
// {
//   "links": [
//     {
//       "rel": "lrdd",
//       "type": "application/jrd+json",
//       "template": "https://example.com/.well-known/webfinger?resource={uri}"
//     }
//   ]
// }
// GET https://example.com/.well-known/host-meta
// GET https://example.com/.well-known/host-meta.xrd
// <?xml version="1.0" encoding="UTF-8"?>
// <XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
//   <Link rel="lrdd" type="application/jrd+json" template="https://example.com/.well-known/webfinger?resource={uri}" />
// </XRD>
app
  .get('/.well-known/host-meta', ({ req }) => simpleHostMeta(req.raw))
  .get('/.well-known/host-meta.*', ({ req }) => simpleHostMeta(req.raw))
0.0.1-alpha.7

4 months ago

0.0.1-alpha.6

6 months ago

0.0.1-alpha.4

6 months ago

0.0.1-alpha.3

6 months ago