{"id":16143137,"url":"https://github.com/adieuadieu/graphql-web-feeds","last_synced_at":"2025-06-18T17:33:43.446Z","repository":{"id":75401054,"uuid":"70074491","full_name":"adieuadieu/graphql-web-feeds","owner":"adieuadieu","description":"Query web feeds (RSS, Atom, and RDF) with GraphQL","archived":false,"fork":false,"pushed_at":"2017-01-19T06:31:51.000Z","size":60,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T17:52:55.773Z","etag":null,"topics":["atom","graphql","rdf","rss","web-feed"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adieuadieu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-05T15:40:29.000Z","updated_at":"2022-11-21T03:24:16.000Z","dependencies_parsed_at":"2023-06-06T09:45:21.048Z","dependency_job_id":null,"html_url":"https://github.com/adieuadieu/graphql-web-feeds","commit_stats":null,"previous_names":["adieuadieu/web-feeds-graphql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adieuadieu/graphql-web-feeds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adieuadieu%2Fgraphql-web-feeds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adieuadieu%2Fgraphql-web-feeds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adieuadieu%2Fgraphql-web-feeds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adieuadieu%2Fgraphql-web-feeds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adieuadieu","download_url":"https://codeload.github.com/adieuadieu/graphql-web-feeds/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adieuadieu%2Fgraphql-web-feeds/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260598835,"owners_count":23034386,"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":["atom","graphql","rdf","rss","web-feed"],"created_at":"2024-10-10T00:08:42.892Z","updated_at":"2025-06-18T17:33:38.425Z","avatar_url":"https://github.com/adieuadieu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Web Feeds\nReconciling old shit with new shit; Query web feeds (RSS, Atom, and RDF) with GraphQL\n\n## Contents\n1. [What is it?](#what-is-it)\n1. [Try it](#try-it)\n1. [Installation](#installation)\n1. [Querying](#querying)\n1. [Configuration](#configuration)\n1. [Testing](#testing)\n1. [Troubleshooting](#troubleshooting)\n\n## What is it?\n\nSometimes you gotta make use of an RSS/Atom/RDF web feed. `graphql-web-feeds` aims to make it easy to do that in your GraphQL API.\n\n## Try it\n\nDemo Todo :-(\n\n## Features / Roadmap-todo\n\n- [ ] make it do something\n- [ ] S3 cache, use S3 expiration to expire based on RSS TTL\n- [ ] aggregate multiple feeds into one, sorted by date (at the detriment of speed?)\n- [ ] offer an Atom/RDF/RSS Interface type ?\n\n## Installation\n\nThe package makes the assumption that, because you're using GraphQL, you're probably also using ES6+ and therefore your project handles any necessary transpilation, when required.\n\nFirst, install the package:\n\n```bash\nnpm install graphql-web-feeds --save\n```\n\nThen, add it to your project's GraphQL schema:\n\n```js\nimport { GraphQLSchema } from 'graphql/type'\nimport { feedTypeFactory } from 'web-feeds-graphql'\n\nconst simpleField = feedTypeFactory()\n\nconst schema = GraphQLSchema({\n  query: simpleField,\n})\n```\n\n```graphql\nquery {\n  waitButWhy: feed(url: \"http://waitbutwhy.com/feed\") {\n    title\n    link\n    description\n    items {\n      title\n      link\n      description\n    }\n  }\n}\n```\n\nSingle, default feed:\n\n\n```js\nimport { GraphQLSchema } from 'graphql/type'\nimport { feedTypeFactory } from 'web-feeds-graphql'\n\nconst feedUrl = 'http://waitbutwhy.com/feed'\nconst field = feedTypeFactory(feedUrl)\n\nconst schema = GraphQLSchema({\n  query: field,\n})\n```\n\n```graphql\nquery {\n  feed {\n    title\n    link\n    description\n    items {\n      title\n      link\n      description\n    }\n  }\n}\n```\n\n\nWith cache and selected feeds:\n\n```js\nimport { GraphQLSchema } from 'graphql/type'\nimport { S3Cache } from 'web-feeds-graphql/cache'\nimport { feedTypeFactory } from 'web-feeds-graphql'\n\nconst cache = new S3Cache({ secret, accesskey, ttl: true, ..etc })\nconst feeds = {\n  waitButWhy: 'http://waitbutwhy.com/feed',\n  spacex: 'http://www.space.com/home/feed/site.xml',\n}\nconst field = feedTypeFactory(feeds, cache)\n\nconst schema = GraphQLSchema({\n  query: field,\n})\n```\n\n\n```graphql\nquery {\n  waitButWhy: feed(name: waitButWhy) {\n    title\n    link\n    description\n    items {\n      title\n      link\n      description\n    }\n  }\n}\n```\n\n## Querying\n\n```graphql\nquery {\n  waitButWhy: feed(url: \"http://waitbutwhy.com/feed\") {\n    title\n    link\n    description\n    items {\n      title\n      link\n      description\n    }\n  }\n}\n```\n\n## Configuration\n\nTodo\n\n## Custom Feed Caches\n\nTodo\n\nCache must be an object exposing two methods: `get` and `set`\n\nstream get(feedUrl)\n\nasync set(feedUrl, feedStream)\n\n## Testing\n\n```bash\ngit clone https://github.com/adieuadieu/graphql-web-feeds.git\ncd graphql-web-feeds\nnpm test\n```\n\n## FAQ / Troubleshooting\n\n\u003cdetails\u003e\n  \u003csummary\u003eTodo?\u003c/summary\u003e\n  Todo.\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadieuadieu%2Fgraphql-web-feeds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadieuadieu%2Fgraphql-web-feeds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadieuadieu%2Fgraphql-web-feeds/lists"}