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

@lacspace/rss

v1.2.0

Published

Generate RSS 2.0, Atom 1.0 and JSON Feed 1.1 from one set of items — content syndication for blogs and news. Zero-dependency, isomorphic.

Readme

@lacspace/rss

RSS 2.0, Atom 1.0 & JSON Feed 1.1 — one item set, three formats.

npm version install size minzipped types license

Define your feed and items once; emit valid RSS 2.0, Atom 1.0 or JSON Feed 1.1. Proper escaping, CDATA content, correct dates, enclosures for podcasts. Great for blogs, changelogs and news.

  • 📡 rss() · atom() · jsonFeed() from the same input
  • 🧱 Full-content (content:encoded), categories, authors, enclosures
  • 🗓️ Correct pubDate (RFC-822) / updated (ISO-8601) handling
  • ⚡ Zero dependencies · 🌍 isomorphic · 📦 ESM + CJS · fully typed

Install

npm install @lacspace/rss      # or pnpm add / yarn add / bun add

Usage

import { rss, atom, jsonFeed } from "@lacspace/rss";

const feed = {
  title: "Lacspace Blog",
  link: "https://lacspace.com/blog",
  description: "Product updates and engineering notes.",
  feedUrl: "https://lacspace.com/rss.xml",
  language: "en",
};

const items = [
  {
    title: "Launching the SEO Kit",
    link: "https://lacspace.com/blog/seo-kit",
    content: "<p>Six new packages…</p>",
    author: "Lumi AI",
    date: new Date("2026-08-22"),
    categories: ["release"],
  },
];

rss(feed, items);       // RSS 2.0 XML string
atom(feed, items);      // Atom 1.0 XML string
jsonFeed(feed, items);  // JSON Feed 1.1 object

Serve it (Next.js Route Handler)

// app/rss.xml/route.ts
import { rss } from "@lacspace/rss";

export function GET() {
  return new Response(rss(feed, items), {
    headers: { "Content-Type": "application/rss+xml; charset=utf-8" },
  });
}

Podcast enclosure

{ title: "Episode 1", link: "…", enclosure: { url: "https://…/ep1.mp3", type: "audio/mpeg", length: 12345678 } }

The Lacspace SEO Kit

| Package | For | | --- | --- | | @lacspace/seo | Metadata & JSON-LD | | @lacspace/sitemap | sitemap.xml | | @lacspace/robots | robots.txt | | @lacspace/llms-txt | llms.txt / llms-full.txt | | @lacspace/site-verify | Search-engine verification | | @lacspace/rss | RSS / Atom / JSON feeds (this package) | | @lacspace/slugify | SEO URL slugs |

New in 1.1 — Response helpers

import { rssResponse, atomResponse, jsonFeedResponse } from "@lacspace/rss";

// app/feed.xml/route.ts — correct content-type, zero boilerplate
export function GET() {
  return rssResponse({ title: "Blog", link: "https://x.com", description: "…" }, items);
}

New in 1.2 — prefill the feed from your site

import { rss, feedForSite } from "@lacspace/rss";

// app/feed.xml/route.ts — title, link, feedUrl and language auto-filled
export function GET() {
  return new Response(rss(feedForSite({ name: "Acme Blog", url: "https://acme.com" }, "/feed.xml"), posts), {
    headers: { "content-type": "application/rss+xml" },
  });
}

Pairs with defineSite() from @lacspace/seofeedForSite(site.config).

Licensing

This package is free under the Lacspace Free Licence — MIT-equivalent freedoms. Use it in personal and commercial projects at no cost; just keep the notice.

Not every Lacspace package is free. We also offer Commercial (paid), Client-specific, and Private (proprietary) packages under separate terms. See the full Lacspace Licence Centre.


Part of the Lacspace ecosystem — 35 zero-dependency, isomorphic TypeScript packages.

All packages ↗ · npm org ↗ · Licence Centre ↗ · GitHub ↗