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

@undercroft/syndication

v1.0.2

Published

A lightweight, zero-dependency TypeScript library for generating RSS 2.0, Atom 1.0, and JSON Feed 1.1 syndication feeds.

Downloads

6

Readme

@undercroft/syndication

A lightweight, zero-dependency TypeScript library for generating RSS 2.0, Atom 1.0, and JSON Feed 1.1 syndication feeds.

Built for projects that prioritize clarity, maintainability, and privacy-conscious tooling. Whether you’re building a blog, newsletter, or publishing platform, this library helps you publish well-formed feeds without bloat.

Build Status Issues Status Pull Request Status NPM Version Status License Status Bundle Size Install Size codecov Known Vulnerabilities


Features

  • ✅ Supports RSS 2.0, Atom 1.0, and JSON Feed 1.1
  • ✅ Fully typed with TypeScript
  • ✅ Framework agnostic (Node.js, browser, static)
  • ✅ Small footprint with zero runtime dependencies
  • ✅ Works with import, require, and browser <script> tags

@undercroft/syndication Bundle Stats

| Metric | Value | |--------------------|---------------| | Bundle size | 5.5 kB | | Minified + Gzipped | 1.9 kB | | Download time | ~2 ms (Slow 3G) |

⚡️ Lightweight. Tree-shakable. Zero dependencies.


UMD Support

A UMD build is included in the dist/ folder and exposes the global Syndication object when used in the browser.

<script src="https://cdn.jsdelivr.net/npm/@undercroft/syndication/dist/index.umd.js"></script>
<script>
  const feed = new Syndication.JsonFeed({ title: "My Feed", ... }, []);
  console.log(feed.render());
</script>

CDNs

  • jsDelivr: https://cdn.jsdelivr.net/npm/@undercroft/syndication/dist/index.umd.js
  • unpkg: https://unpkg.com/@undercroft/syndication/dist/index.umd.js
  • Skypack: https://cdn.skypack.dev/@undercroft/syndication
  • esm.sh: https://esm.sh/@undercroft/syndication
  • jspm: https://jspm.dev/@undercroft/syndication
  • esm.run: https://esm.run/@undercroft/syndication

Distribution & Compatibility

Works in Node.js, modern browsers, and bundlers

Test Coverage & CI

Full unit test coverage with Jest Automatically tested on Ubuntu and Windows Bundle size tracked via Size Limit Code coverage reported via Codecov

Installation

npm install @undercroft/syndication

Usage in NodeJS

import { RssFeed } from '@undercroft/syndication';

const metadata = {
  title: 'Undercroft Labs',
  description: 'Tiny tools. Big ideas.',
  url: 'https://undercroftlabs.com',
  id: 'https://undercroftlabs.com/feed',
  author: 'Michael Goodwin',
};

const items = [
  {
    id: 'welcome',
    title: 'Welcome to Undercroft',
    url: 'https://undercroftlabs.com/posts/welcome',
    description: 'The first post.',
    published: '2025-04-20T00:00:00Z',
  },
];

const feed = new RssFeed(metadata, items);
const xml = feed.render();
console.log(xml);

Usage in Browser

<script src="https://cdn.jsdelivr.net/npm/@undercroft/syndication/dist/index.umd.js"></script>
<script>
  const feed = new Syndication.JsonFeed({
    title: 'Undercroft Labs',
    id: 'https://undercroftlabs.com/feed',
    url: 'https://undercroftlabs.com',
    description: 'Tiny tools. Big ideas.',
    author: 'Michael Goodwin',
  }, [{
    id: 'welcome',
    title: 'Welcome to Undercroft',
    url: 'https://undercroftlabs.com/posts/welcome',
    description: 'The first post.',
    published: '2025-04-20T00:00:00Z',
  }]);

  console.log(feed.render());
</script>

Creating Feeds

You can create and render feeds using any of the following classes:

new RssFeed(metadata, items)  // returns RSS 2.0 XML
new AtomFeed(metadata, items) // returns Atom 1.0 XML
new JsonFeed(metadata, items) // returns JSON Feed v1.1

Each feed exposes the method:

feed.render(): string

You can also dynamically add items:

feed.addItem({
  id: 'post-2',
  title: 'Another Post',
  url: 'https://site.com/posts/2',
  published: '2025-04-21T00:00:00Z'
});

Contributing

Contributions to the syndication project is welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for more information.