You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specify at least these three properties of the options object, and then call tinyfeedreader.start.
feedUrls: an array of URLs of feeds to check.
newItemCallback: a function that's called when a new item is received.
secsBetwChecks: determines how often we check the feeds, will never check more frequently than once a minute.
New features?
You probably shouldn't ask for new features given the name of the project. :-)
But you can download the code and do whatever you like. It's a good place to get started with feed reading.
What kinds of feeds?
It uses the reallySimple package to read feeds which in turn uses the feedParser package, so we read the same feeds they do, which is a lot of them in all kinds of formats. But you will get a JavaScript object that flattens out all the differences.
If an item doesn't have a guid, we can't deal with it, and will never return it back to the caller. We use the guid to determine if an item is new or not. So we not only depend on its existence, we also depend on its uniqueness.
What's in an item?
{
"description": "The longest continuously updated <a href=\"https://scripting.com/rss.xml\">RSS feed</a> in the known universe.",
"pubDate": "2025-06-27T11:46:47.000Z",
"link": "https://scripting.com/2025/06/27.html#a114647",
"guid": "https://scripting.com/2025/06/27.html#a114647",
"permalink": "https://scripting.com/2025/06/27.html#a114647"
}
All data stored in memory
We don't use a database, all the information about the items we've seen is stored in memory and saved to disk in a JSON file, data/stats.json.
You can override the file path, by specifying its value in your options object, so you can store the stats file anywhere you like.