npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

feedhunter

v0.4.4

Published

A Node.js package that looks for a feed, starting with the address of an HTML file.

Downloads

1

Readme

feedHunter

A Node.js package that looks for a feed, starting with the address of an HTML file.

How to

const feedhunter = require ("feedhunter");
const htmlUrl = "http://bullmancuso.com";
feedhunter.huntForFeed (htmlUrl, undefined, function (feedUrl) {
	if (feedUrl === undefined) {
		console.log ("Couldn't find a feed for this page.");
		}
	else {
		console.log ("feedUrl == " + feedUrl);
		}
	});

Note: The second parameter to feedhunter.huntForFeed allows you to replace our set of standard feed locations with your own list.

What it does

When the user subscribes to an HTML file in FeedLand, first we look for all the <link> elements in the HTML that point to feeds. We look at each feed in turn, and if we find one that can be read and parses as a feed, we subscribe to that feed and display its Feed Info page. We do that with a call to feedhunter.huntForFeed.

We also use a set of common feed locations we found by studying the feed list of the indieblog site (a great resource for our work, thanks!), and by studying the feeds people have subscribed to on feedland.org.

I put this code in a separate package, because it seemed it might be useful in other contexts and people may have other ideas for standard feed locations we could add to the search.

Experiment in FeedLand

If you want to try an experiment, choose To one feed from the Subscribe sub-menu in FeedLand's main menu, and enter http://bullmancuso.com.

I put a copy of a very old feed in a weird location, one of the places feedhunter looks.

If it's working we'll find the feed anyway. :smile:

Questions, comments?

Create an issue here.