webmention-handler-netlify-blobs
v0.3.0
Published
Netlify Blobs storage to work with webmention-handler
Downloads
20
Maintainers
Readme
Webmention Storage using Netlify Blobs
Netlify Blobs storage that works with webmention-handler.
This project was built alongside webmention-receiver so that you can host your own webmentions on Netlify. You can see a fully working sample at the serverless-webmentions repo.
Installation
npm install webmention-handler-netlify-blobs --saveUsage
import BlobStorage from 'webmention-handler-netlify-blobs'
const storage = new BlobStorage({
siteID: 'netlify-site-id', // optional
token: 'netlify-personal-access-token' // optional
})By default, siteID and token are not required as it will use your current site for your blobs. You can optionally
add those values if you have a specific siteID you would like to use or while developing locally. For the token
value, you need to create a Netlify personal access token.
import { WebmentionHandler } from 'webmention-handler'
const wmHandler = new WebmentionHandler({
storage
})