Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@11ty/eleventy-activity-feed
Advanced tools
Create one centralized RSS feed for all of the content you create across the web (aggregates from Twitter, RSS, Atom, Mastodon, YouTube)
Activity feed lets you build one centralized RSS feed that pulls in new entries from a bunch of different social networking sites. Support for (one or more) YouTube, RSS or Atom for existing blogs, Mastodon (via RSS), and your Twitter account (contributions for more are welcome!).
This allows you to encourage folks to subscribe in one location and you can control how that feed is populated later.
As a completely hypothetical example, if/when Twitter dies in a burning fire and you want to remove that channel from your centralized feed, you can do so and still keep all of your existing subscribers!
Limitations:
Caching Notes:
netlify-plugin-cache
plugin to persist your API fetch call cache across builds. You can see an example of this on the Eleventy Fetch docs. You can control the maximum frequency at which new fetches are made to the APIs using feed.setCacheDuration("4h");
You can subscribe to the following Eleventy feed in your RSS reader of choice to see it in action:
npm install @11ty/eleventy-activity-feed
Twitter User activity requires a TWITTER_BEARER_TOKEN
environment variable (you can put this in a .env
file).
follow-feed.11ty.cjs
in an ESM project (if "type": "module"
in your package.json
)follow-feed.11ty.js
in a CommonJS projectmodule.exports = class {
data() {
return {
// Controls where the file is written
permalink: "/follow.rss"
}
}
async render() {
const { ActivityFeed } = await import("@11ty/eleventy-activity-feed");
let feed = new ActivityFeed();
feed.setCacheDuration("4h");
// YouTube
feed.addSource("youtubeUser", "YouTube", "UCskGTioqrMBcw8pd14_334A");
// Blog
feed.addSource("atom", "Blog", "https://www.11ty.dev/blog/feed.xml");
// Mastodon
feed.addSource("rss", "Mastodon", "https://fosstodon.org/users/eleventy.rss");
// Twitter
feed.addSource("twitterUser", "Twitter", "eleven_ty", "949639269433380864");
return feed.toRssFeed({
title: "Eleventy’s Activity Feed",
language: "en",
url: "https://www.11ty.dev/follow/",
subtitle: "One centralized feed of Eleventy activity across the web.",
});
}
};
Add to the <head>
of your page to show it in RSS readers:
<link rel="alternate" href="/follow.rss" title="Eleventy’s Activity Feed" type="application/rss+xml">
Happy to accept PRs for better HTML display of different feed entries (YouTube needs URL-><a>
linkified descriptions and Twitter could use @-username links on content) and addition of more types of data! Feel free to contribute!
Check out the issue tracker.
FAQs
Create one centralized RSS feed for all of the content you create across the web (aggregates from Twitter, RSS, Atom, Mastodon, YouTube)
We found that @11ty/eleventy-activity-feed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.