{"id":23400119,"url":"https://github.com/khalby786/feedtojson","last_synced_at":"2025-04-11T18:07:40.244Z","repository":{"id":223340119,"uuid":"755400574","full_name":"khalby786/feedtojson","owner":"khalby786","description":"API to parse RSS, Atom and JSON feeds to JSON","archived":false,"fork":false,"pushed_at":"2024-02-19T16:42:05.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T18:04:18.552Z","etag":null,"topics":["api","atom","go","golang","json","rss","serverless","vercel"],"latest_commit_sha":null,"homepage":"https://feedtojson.vercel.app","language":"Go","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/khalby786.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-02-10T04:42:45.000Z","updated_at":"2024-05-17T09:37:09.000Z","dependencies_parsed_at":"2024-02-19T19:22:11.451Z","dependency_job_id":"07b7fba3-2494-445d-9ee3-f31ba8a73e85","html_url":"https://github.com/khalby786/feedtojson","commit_stats":null,"previous_names":["khalby786/feedtojson"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalby786%2Ffeedtojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalby786%2Ffeedtojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalby786%2Ffeedtojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalby786%2Ffeedtojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khalby786","download_url":"https://codeload.github.com/khalby786/feedtojson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456374,"owners_count":21106602,"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":["api","atom","go","golang","json","rss","serverless","vercel"],"created_at":"2024-12-22T10:19:47.994Z","updated_at":"2025-04-11T18:07:40.224Z","avatar_url":"https://github.com/khalby786.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# feedtojson\na simple API that parses RSS, Atom and JSON feeds using [gofeed](https://github.com/mmcdole/gofeed).\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fkhalby786%2Ffeedtojson)\n\n## usage\n\n\n`GET https://feedtojson.vercel.app/your-feed-url-here`\n\n[`https://feedtojson.vercel.app/https%3A%2F%2Fxkcd.com%2Frss.xml`](https://feedtojson.vercel.app/https%3A%2F%2Fxkcd.com%2Frss.xml)\n\n[`https://feedtojson.vercel.app/https%3A%2F%2Fxkcd.com%2Fatom.xml`](https://feedtojson.vercel.app/https%3A%2F%2Fxkcd.com%2Fatom.xml)\n\n[`https://feedtojson.vercel.app/https%3A%2F%2Fwww.jsonfeed.org%2Ffeed.json`](https://feedtojson.vercel.app/https%3A%2F%2Fwww.jsonfeed.org%2Ffeed.json)\n\n\n\n### RSS\n\n[`https://xkcd.com/rss.xml`](https://xkcd.com/rss.xml)\n\n```json\n{\n  \"title\": \"xkcd.com\",\n  \"description\": \"xkcd.com: A webcomic of romance and math humor.\",\n  \"link\": \"https://xkcd.com/\",\n  \"links\": [\n    \"https://xkcd.com/\"\n  ],\n  \"language\": \"en\",\n  \"items\": [...],\n  \"feedType\": \"rss\",\n  \"feedVersion\": \"2.0\"\n}\n```\n\n### Atom\n\n[`https://xkcd.com/atom.xml`](https://xkcd.com/atom.xml)\n\n```json\n{\n  \"title\": \"xkcd.com\",\n  \"link\": \"https://xkcd.com/\",\n  \"links\": [\n    \"https://xkcd.com/\"\n  ],\n  \"updated\": \"2024-02-09T00:00:00Z\",\n  \"updatedParsed\": \"2024-02-09T00:00:00Z\",\n  \"language\": \"en\",\n  \"items\": [...],\n  \"feedType\": \"atom\",\n  \"feedVersion\": \"1.0\"\n}\n```\n\n### JSON\n\n[`https://www.jsonfeed.org/feed.json`](https://www.jsonfeed.org/feed.json)\n\n```json\n{\n  \"title\": \"JSON Feed\",\n  \"link\": \"https://www.jsonfeed.org/\",\n  \"feedLink\": \"https://www.jsonfeed.org/feed.json\",\n  \"links\": [\n    \"https://www.jsonfeed.org/\",\n    \"https://www.jsonfeed.org/feed.json\"\n  ],\n  \"published\": \"2020-08-07T11:44:36-05:00\",\n  \"publishedParsed\": \"2020-08-07T11:44:36-05:00\",\n  \"image\": {\n    \"url\": \"https://micro.blog/jsonfeed/avatar.jpg\"\n  },\n  \"items\": [...],\n  \"feedType\": \"json\",\n  \"feedVersion\": \"https://jsonfeed.org/version/1\"\n}\n```\n\n\u003cbr\u003e\n\n### why\n\ni wanted to add [my blog](https://blog.khaleelgibran.com) posts to my [website](https://khaleelgibran.com), and after trying three different packages from npm, none of them worked. additionally, my blog was giving me cors issues although it shouldn't because of my netlify configuration. i then thought it'd be a pretty quick and easy challenge to build a simple Go function on Vercel that'd parse my feed as JSON.\n\n### how\n\nit uses [gofeed](https://github.com/mmcdole/gofeed), which is  a powerful and flexible Go library designed for parsing RSS, Atom, and JSON feeds. Vercel handles the routing using my custom configuration in `vercel.json`.\n\n\n## license\n\nthis project is licensed under the [MIT License](https://raw.githubusercontent.com/khalby786/feedtojson/master/LICENSE.md).\n\n\u003cbr\u003e\u003cbr\u003e\n\nmade by [khaleel](https://khaleelgibran.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalby786%2Ffeedtojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhalby786%2Ffeedtojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalby786%2Ffeedtojson/lists"}