All Projects → rsslove → rss-to-email

rsslove / rss-to-email

Licence: other
Generate HTML emails from your RSS feeds.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to rss-to-email

Responsive Html Email Template
A free simple responsive HTML email template
Stars: ✭ 10,831 (+11672.83%)
Mutual labels:  html-emails, email-template
responsive-html-email-templates
Collection of Free responsive HTML templates for Startups
Stars: ✭ 187 (+103.26%)
Mutual labels:  html-emails, email-template
Maizzle
Official Maizzle starter project.
Stars: ✭ 921 (+901.09%)
Mutual labels:  html-emails, email-template
Html Email Templates
Responsive HTML email templates by MySigMail Card
Stars: ✭ 154 (+67.39%)
Mutual labels:  html-emails, email-template
Html Email Templates
Free HTML Email Templates created using the Postcards - https://designmodo.com/postcards/
Stars: ✭ 178 (+93.48%)
Mutual labels:  html-emails, email-template
easy-email
React.js Drag-and-Drop Email Editor based on MJML. Transform structured JSON data into major email clients compatible HTML. Written in Typescript and supported both in browser and Node.js.
Stars: ✭ 449 (+388.04%)
Mutual labels:  email-template, mjml
React Email Editor
Drag-n-Drop Email Editor Component for React.js
Stars: ✭ 3,131 (+3303.26%)
Mutual labels:  html-emails, email-template
mjml-server
MJML wrapped in Express for use over HTTP
Stars: ✭ 31 (-66.3%)
Mutual labels:  email-template, mjml
php rss telegram bot
A simple "RSS to Telegram" bot written in PHP.
Stars: ✭ 18 (-80.43%)
Mutual labels:  rss
plugin-grapesjs-builder
GrapesJS HTML and MJML integration for Mautic
Stars: ✭ 42 (-54.35%)
Mutual labels:  mjml
jsitemapgenerator
Java sitemap generator. This library generates a web sitemap, can ping Google, generate RSS feed, robots.txt and more with friendly, easy to use Java 8 functional style of programming
Stars: ✭ 38 (-58.7%)
Mutual labels:  rss
email-template-generator
Simple and useful web app to generate e-mails for any reason you want!
Stars: ✭ 51 (-44.57%)
Mutual labels:  email-template
awesome-emails
List of tools, articles and videos about email design and development
Stars: ✭ 19 (-79.35%)
Mutual labels:  email-template
eventsourcing-go
Event Sourcing + CQRS using Golang Tutorial
Stars: ✭ 75 (-18.48%)
Mutual labels:  rss
gosquito
gosquito ("go" + "mosquito") is a pluggable tool for data gathering, data processing and data transmitting to various destinations.
Stars: ✭ 25 (-72.83%)
Mutual labels:  rss
feedpushr
A simple feed aggregator daemon with sugar on top.
Stars: ✭ 222 (+141.3%)
Mutual labels:  rss
meta-extractor
Super simple and fast html page meta data extractor with low memory footprint
Stars: ✭ 38 (-58.7%)
Mutual labels:  rss
Feed-on-Feeds
FeedOnFeeds is a lightweight server-based RSS feed aggregator and reader
Stars: ✭ 52 (-43.48%)
Mutual labels:  rss
zahper
Zahper - The power of MJML into Laravel newsletters
Stars: ✭ 13 (-85.87%)
Mutual labels:  mjml
JARR
JARR is a web news aggregator.
Stars: ✭ 99 (+7.61%)
Mutual labels:  rss

rss-to-email

Generate HTML emails and mjml templates from one or more RSS feeds.

Note: This project is pre-version 1.0.0, so breaking changes may occur. Use at your own risk or lock down to a specific version using NPM.

GitHub workflow codecov npm GitHub stars License

                                _                                   _ _ 
             _ __ ___ ___      | |_ ___         ___ _ __ ___   __ _(_) |
            | '__/ __/ __|_____| __/ _ \ _____ / _ \ '_ ` _ \ / _` | | |
            | |  \__ \__ \_____| || (_) |_____|  __/ | | | | | (_| | | |
            |_|  |___/___/      \__\___/       \___|_| |_| |_|\__,_|_|_|
                                                                        

rss-to-email example

Table of Contents

Usage

Node

The recommended way to use this package is as an npm package. To install and save it to your project's dependencies, run:

npm install rss-to-email --save

After installing, call the RssToEmail factory with a config object. Use the resulting rssToEmail object to get emails in mjml or html formats:

const RssToEmail = require('rss-to-email');
const config = {
  // See #Configuration section of the docs below
};
const rssToEmail = RssToEmail(config);

rssToEmail.getEmail('html').then((email) => {
  console.log(email); // The HTML version of your email
});

rssToEmail.getEmail('mjml').then((email) => {
 console.log(email); // The MJML version of your email
});

Command Line

You can install this package globally and run it as a command line tool as well. First install it:

npm install -g rss-to-email

Then run the tool:

rss-to-email <config-file-path> <output-folder-path>

The path should be relative to your current directory. For example, if your config file is at ./config.json and you want to output the resulting files to a directory ./output, you would run:

rss-to-email ./config.json ./output

Configuration

For an example config file, see config.example.json.

  • accentColor: A hex or html-safe color code.
  • filename: The base name of the output files to generate (do not include extensions).
  • header: Configuration for the header section of the email:
    • banner: (optional) An image url for the banner at the top of the email.
    • link: A link for the header image or text.
    • title: Shown if the banner is not set or as an alt tag on the image.
  • intro: The first line of the email. Can use HTML or plain text.
  • feeds: An array of RSS feeds you'd like to include. Only url is required:
    • url: The url to the RSS feed.
    • title: (optional) A custom feed title. Will use the RSS feed's embedded one by default.
    • description: (optional) A short custom feed description. Will use the RSS feed's embedded one by default.
    • limit: (optional) Truncate items greater than a given limit.
    • publishedSince: (optional) Filter out posts published before this date.
    • parserOptions: (optional) Custom RSS parser options outlined in the Node rss-parser documentation.
  • outro: The last line of the email. Can use HTML or plain text.
  • templateUrl: (optional) A handlebars/mjml template. For more details, see Templates section.

Templates

In order to compose custom emails, you can build your own MJML templates with Handlebars. If you don't specify a template URL, the library defaults to this file.

Many of the config file's variables are exposed in the templates including:

  • header
  • intro
  • outro

The feeds variable contains an array of all of the feeds with an array of all of the items in each. For example, the following is a basic template that will loop through all the RSS feeds and items, displaying the title and content of each:

{{#each feeds}}
  <!-- Feed -->
  <mj-section>
    <mj-column>
      <mj-text>{{this.title}}</mj-text>
      <mj-text>{{this.description}}</mj-text>
    </mj-column>
  </mj-section>
  {{#each items}}
    <!-- Item -->
    <mj-section>
      <mj-column>
        <mj-text>
          <a href="{{this.link}}">{{this.title}}</a>
        </mj-text>
        <mj-text>{{{this.content}}}</mj-text>
      </mj-column>
    </mj-section>
  {{/each}}
{{/each}}

You can also use any helper in the handlebars-helpers library:

{{#is intro "A certain intro"}}
  <p>A certain intro was used.</p>
{{/is}}

Contributing

All patches, fixes, and ideas welcome! Please read contributing.md for furthers details.

License

License

Copyright 2021, Hughes Domains, LLC.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].