Skip to content

benjifs/webmention-handler-netlify-blobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 --save

Usage

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
})

About

Netlify Blobs storage to work with webmention-handler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published