HavenFeedParser

A Swift package for fetching and parsing RSS, Atom, and JSON Feed formats.

HavenFeedParser reads RSS 2.0, Atom 1.0, and JSON Feed 1.1 feeds. It is written in pure Swift with no outside dependencies.


Features

Format detection

The parser finds the feed format on its own. You do not need to know whether a feed uses RSS, Atom, or JSON Feed.

Thread safety

FeedService uses Swift actors, so you can call it from any thread without worry.

Caching

Built-in caching with ETags and conditional requests. The parser only downloads new content when the feed has changed.

Security

Blocks unsafe requests to private networks. Limits response sizes to stop misuse.

Podcast support

Reads iTunes and podcast metadata out of the box.


Platforms

iOS 18+, macOS 15+, tvOS 18+, watchOS 11+, visionOS 2+


Licence

BSD 3-Clause