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 🙏

© 2026 – Pkg Stats / Ryan Hefner

unread

v1.1.1

Published

A package for parsing RSS and Atom feeds

Downloads

22

Readme

Unread

All Contributors Build Bundlephobia

NPM

A package for parsing RSS 2.0, Atom 1.0. Works on both Node.js and the browser.

Features

  • Small footprint
  • Query attributes helper (see below)
  • Cross-platform works on browser and Node.js
  • TypeScript ready

Installation

npm add unread

Usage

import { parse } from 'unread';

const res = await fetch('https://overreacted.io/rss.xml');
const rss = await res.text();

const output = await parse(rss);

// We support common attributes
const { feed, items } = output;
console.log(feed.title());
console.log(feed.feedLink());

// And you can also query custom ones (as long as we support that namespace)
console.log(item[0].get(['author', 'dc:creator'])); // returns first match or undefined
console.log(item[0].getMany(['atom:link[ref=enclosure]'])); // Array of nodes

Supported namespaces

We support the followings XML namespaces:

  • http://www.w3.org/2005/Atom (atom)
  • http://purl.org/rss/1.0/modules/content/ (content)
  • http://purl.org/dc/elements/1.1/ (dc)
  • http://purl.org/dc/elements/1.0/ (dc)
  • http://www.itunes.com/dtds/podcast-1.0.dtd (itunes)
  • http://search.yahoo.com/mrss/ (media)
  • http://www.w3.org/1999/xhtml (xhtml)
  • http://www.w3.org/XML/1998/namespace (xml)

Mapping

Feed

| Helper | RSS | Atom | | ------------- | -------------------------------------------------------- | ----------------------------- | | id() | | /feed/id | | title() | /rss/channel/title/rss/channel/dc:title | /feed/title | | description() | /rss/channel/description/rss/channel/itunes:subtitle | /feed/subtitle | | links() | /rss/channel/link | /feed/link/@href | | feedURL() | /rss/channel/atom:link[@rel="self"]/@href | /feed/link[@rel="self"]/@href | | updated() | /rss/channel/lastBuildDate/rss/channel/dc:date | /feed/updated | | published() | /rss/channel/pubDate | | | language() | /rss/channel/language/rss/channel/dc:language | /feed/@xml:lang | | image() | /rss/channel/image/rss/channel/itunes:image | /feed/logo | | generator() | /rss/channel/generator | /feed/generator |

Item

| Helper | RSS | Atom | | ------------- | ----------------------------------------------------------------- | ---------------------------------- | | id() | /rss/channel/item/guid | /feed/entry/id | | title() | /rss/channel/item/title/rss/channel/item/dc:title | /feed/entry/title | | description() | /rss/channel/item/description/rss/channel/item/dc:description | /feed/entry/summary | | content() | /rss/channel/item/content:encoded | /feed/entry/content | | links() | /rss/channel/item/link | /feed/entry/@href | | updated() | /rss/channel/item/dc:date | /feed/entry/updated | | published() | /rss/channel/item/pubDate/rss/channel/item/dc:date | /feed/entry/published | | image() | /rss/channel/item/media:thumbnail | | | enclosures() | /rss/channel/item/enclosure | /feed/entry/link[@rel=”enclosure”] |

Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

License

MIT © Ahmed T. Ali