Skip to main content
Deno 2 is finally here 🎉️
Learn more

Aoba

deno.land/x/aoba deno compatibility

🍃 Fediverse Integration for Lume & Hono.

Lume Integration

NodeInfo

Set up static nodeinfo for your site.

import nodeinfo from 'aoba/lume/plugins/nodeinfo.ts'
site.use(nodeinfo())

Webfinger

Set up static webfinger for your site.

import webfinger from 'aoba/lume/plugins/webfinger.ts'
site.use(webfinger())

_headers

Set up _headers file for your site. (Netlify and Cloudflare Pages)

import headers from 'aoba/lume/plugins/headers.ts'
site.use(headers())

_redirects

Set up _redirects file for your site. (Netlify and Cloudflare Pages)

import redirects from 'aoba/lume/plugins/redirects.ts'
site.use(redirects())

Hatsu Integration

Hatsu Integration is consistent with the latest version of Hatsu, so it does not follow semver.

For Hatsu users.

Lume Plugin

Copy the .well-known/* file from the Hatsu instance and set the link alternate for matched page.

import hatsuPlugin from 'aoba/lume/plugins/hatsu.ts'
site.use(
  hatsuPlugin({
    instance: new URL('https://hatsu.local'),
  }),
)

Lume Server Middleware

Redirecting .well-known/* and activity+json requests.

import hatsuMiddleware from 'aoba'
server.use(
  hatsuMiddleware({
    instance: new URL('https://hatsu.local'),
    location: site.options.location,
  }),
)

License

Licensed under MIT.