Astro implementation of openring npmjs.com/package/@jasikpark/astro-openring
astro webring typescript
TypeScript 100.0%
19 2 0

Clone this repository

https://tangled.org/caleb.jasik.xyz/astro-openring https://tangled.org/did:plc:3tkrsjzdao4vqjrxwzynbfnu/astro-openring
git@tangled.org:caleb.jasik.xyz/astro-openring git@tangled.org:did:plc:3tkrsjzdao4vqjrxwzynbfnu/astro-openring

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

Astro openring Loader#

A custom Astro content loader that combines multiple RSS/Atom feeds into a single collection. Mimics the behavior of openring / openring-rs, a tool for generating webrings from RSS feeds.

NPM: https://npmjs.com/package/@jasikpark/astro-openring

pnpm add @jasikpark/astro-openring

Example Usage#

const openringCollection = defineCollection({
  loader: openringLoader({
    feeds: [
      "https://tangled.org/calebjasik.jasik.xyz/astro-openring/feed.atom",
      "https://jasik.xyz/rss.xml",
    ],
    skipURLs: ["https://example.com/blog-post-with-weird-rss-feed-item"],
    numArticles: 50, // Total number of articles to fetch
    perSource: 5, // Number of articles to get from each feed
  }),
});