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

@directus-labs/rss-to-json-operation

v1.0.2

Published

Return RSS Feeds as JSON Objects in Flows

Downloads

42

Readme

RSS to JSON Operation

Return a RSS Feed as a JSON object inside of Flows with this custom operation.

Provide a URL of an RSS feed, and have an object returned wit the parsed output of the RSS feed.

Output

The output of the operation is a JSON representation of the XML document.

Many properties have been omitted, but valid podcast feeds will always return a channel containing show metadata. Each episode will be returned inside of the item array.

{
    "?xml": {
        "_version": "1.0",
        "_encoding": "UTF-8"
    },
    "rss": {
        "channel": {
            "title": "Darknet Diaries",
            "link": "https://darknetdiaries.com/",
            "pubDate": "Tue, 02 Jul 2024 07:00:00 -0000",
            "language": "en-us",
            "copyright": "Jack Rhysider",
            "itunes:author": "Jack Rhysider",
            "itunes:type": "episodic",
            "itunes:category": {
                "_text": "Technology"
            },
            "itunes:image": {
                "_href": "https://f.prxu.org/7057/images/68ff605a-20f3-437f-9ba9-2d17316724b1/uploads_2F1562951997273-pdd2keiryql-99f75240ab90a579e25720d85d3057b2_2Fdarknet-diaries-rss.jpg"
            },
            "itunes:explicit": false,
            "itunes:owner": {
                "itunes:email": "[email protected]",
                "itunes:name": "Jack Rhysider"
            },
            "itunes:subtitle": "True stories from the dark side of the Internet",
            "itunes:summary": "Explore true stories of the dark side of the Internet with host Jack Rhysider as he takes you on a journey through the chilling world of hacking, data breaches, and cyber crime.",
            "item": [{
                "guid": {
                    "#text": "prx_7057_e5f7b7f2-b242-4a5e-ac8e-c689f537e570",
                    "_isPermaLink": "false"
                },
                "title": "147: Tornado",
                "pubDate": "Tue, 02 Jul 2024 07:00:00 -0000",
                "link": "https://darknetdiaries.com/episode/147",
                "description": "<p>In this episode, Geoff White (https://x.com/geoffwhite247) tells us what happened to Axie Infinity and Tornado cash. It’s a digital heist of epic proportions that changes everything.<br><br>This story comes from part of Geoff’s book “Rinsed” which goes into the world of money laundering. Get yours here https://amzn.to/3VJs7pb.</p>",
                "enclosure": {
                    "_url": "https://www.podtrac.com/pts/redirect.mp3/dovetail.prxu.org/7057/e5f7b7f2-b242-4a5e-ac8e-c689f537e570/DD_EP147.mp3",
                    "_type": "audio/mpeg",
                    "_length": "82259660"
                },
                "itunes:title": "Tornado",
                "itunes:season": 1,
                "itunes:episode": 147,
                "itunes:duration": "01:25:33",
                "itunes:author": "Jack Rhysider",
                "itunes:summary": "In this episode, Geoff White (https://x.com/geoffwhite247) tells us what happened to Axie Infinity and Tornado cash. It’s a digital heist of epic proportions that changes everything.This story comes from part of Geoff’s book “Rinsed” which goes into the world of money laundering. Get yours here https://amzn.to/3VJs7pb.",
                "itunes:image": {
                    "_href": "https://f.prxu.org/7057/e5f7b7f2-b242-4a5e-ac8e-c689f537e570/images/baefe978-c3da-4c38-bb92-84795b1e7704/tornado.jpg"
                },
            }]
        }
    }
}

Attributes are provided inside of an object prepended with _. For example <enclosure url="http://example.com/file.mp3" type="audio/mpeg" /> becomes:

{
    "enclosure": {
        "_url": "http://example.com/file.mp3",
        "_type": "audio/mpeg"
    }
}