Skip to content

A simple Node Module to read a Feed.xml and run discovery X number of posts to send Webmentions to refrencing links

License

Notifications You must be signed in to change notification settings

DR-DinoMight/webmention-rss-discovery-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to webmention-rss-discovery-sender 👋

Version Maintenance License: MIT Twitter: DR_DinoMight

A simple webmention discovery and sender tool, that reads feed.xml and sends webmentions to the mentioned links of a post

Install

npm install

Add options to the file or page that you want to process the webmentions for.

  const options : WebmentionOptions = {
    postCount: Number(process.env.WEBMENTION_POST_COUNT) || 1, // Number of posts to process
    feedUrl: process.env.WEBMENTION_FEED_URL, // Eg. https://example.com/feed.xml
    logFileLocation: process.env.WEBMENTION_LOG_LOCATION, // Default: '/webmention-discovery.log'
    domainsToIgnoreString: process.env.WEBMENTION_IGNORED_DOMAINS, // Eg. 'example.com,example.org'
    // dryRun: true // Will not actually post webmentions but will do eveyrthing else including discovery and logging
  }

And call the function:

  const webmentionData = await webmentionDiscovery(options);

Run tests

npm run test

Author

👤 Matthew Peck-Deloughry [email protected] (https://deloughry.co.uk)

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2022 Matthew Peck-Deloughry [email protected] (https://deloughry.co.uk).
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

About

A simple Node Module to read a Feed.xml and run discovery X number of posts to send Webmentions to refrencing links

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published