{"id":14971023,"url":"https://github.com/mottox2/gatsby-source-rss-feed","last_synced_at":"2025-10-26T14:31:00.092Z","repository":{"id":34019504,"uuid":"164593734","full_name":"mottox2/gatsby-source-rss-feed","owner":"mottox2","description":"Gatsby source plugin for rss feed.","archived":false,"fork":false,"pushed_at":"2023-01-06T01:51:47.000Z","size":264,"stargazers_count":24,"open_issues_count":8,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-01T07:08:26.034Z","etag":null,"topics":["gatsby-plugin","gatsby-source-plugin","gatsbyjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gatsby-source-rss-feed","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mottox2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-08T07:48:19.000Z","updated_at":"2022-12-05T13:27:35.000Z","dependencies_parsed_at":"2023-01-15T03:59:58.126Z","dependency_job_id":null,"html_url":"https://github.com/mottox2/gatsby-source-rss-feed","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mottox2%2Fgatsby-source-rss-feed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mottox2%2Fgatsby-source-rss-feed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mottox2%2Fgatsby-source-rss-feed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mottox2%2Fgatsby-source-rss-feed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mottox2","download_url":"https://codeload.github.com/mottox2/gatsby-source-rss-feed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219868328,"owners_count":16555798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gatsby-plugin","gatsby-source-plugin","gatsbyjs"],"created_at":"2024-09-24T13:44:31.004Z","updated_at":"2025-10-26T14:30:59.681Z","avatar_url":"https://github.com/mottox2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-source-rss-feed\n\n[![npm version](https://badge.fury.io/js/gatsby-source-rss-feed.svg)](https://badge.fury.io/js/gatsby-source-rss-feed)\n\nSource plugin for pulling data into Gatsby from RSS feed.\n\n## Install\n\n```bash\nnpm install --save gatsby-source-rss-feed\n```\n\nor\n\n```bash\nyarn add gatsby-source-rss-feed\n```\n\n## How to use\n\n### basic pattern\n\n```js\n// In your gatsby-config.js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: `gatsby-source-rss-feed`,\n      options: {\n        url: `http://static.userland.com/gems/backend/rssTwoExample2.xml`,\n        name: `ExampleRSS`,\n      }\n    }\n  ]\n}\n```\n\n### use multiple feed\n\n\n```js\n// In your gatsby-config.js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: `gatsby-source-rss-feed`,\n      options: {\n        url: `http://static.userland.com/gems/backend/rssTwoExample2.xml`,\n        name: `ExampleRSS`,\n      }\n    }\n    {\n      resolve: `gatsby-source-rss-feed`,\n      options: {\n        url: `http://static.userland.com/gems/backend/rssTwoExample2.xml`,\n        name: `MyBlog`,\n      }\n    }\n  ]\n}\n```\n\n### with parserOption\n\nThis library use [rss-parser](https://github.com/bobby-brennan/rss-parser#readme).\n\nYou can pass options via parserOptions.\n\n```js\n// In your gatsby-config.js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: `gatsby-source-rss-feed`,\n      options: {\n        url: `http://static.userland.com/gems/backend/rssTwoExample2.xml`,\n        name: `ExampleRSS`,\n        // Optional\n        // Read parser document: https://github.com/bobby-brennan/rss-parser#readme\n        parserOption: {\n          customFields: {\n            item: ['itunes:duration']\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n## How to query\n\nQuery is `Feed${name}`.\n\nWhen name of options is `ExampleRSS`, query named as `FeedExampleRSS`.\n\n```graphql\n{\n  allFeedExampleRSS {\n    edges {\n      node {\n        title\n        link\n        content\n      }\n    }\n  }\n\n  feedExampleRSS {\n    title\n    link\n    content\n  }\n}\n```\n\nData not part of the `items` can be accessed with `Feed${name}Meta`\n\nWhen name of options is `ExampleRSS`, query named as `FeedExampleRSSMeta`.\n\n```graphql\n{\n  feedExampleRSSMeta {\n    title\n    author\n    description\n    lastBuiltDate\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmottox2%2Fgatsby-source-rss-feed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmottox2%2Fgatsby-source-rss-feed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmottox2%2Fgatsby-source-rss-feed/lists"}