Hyvor Unfold

Hyvor Unfold is an open-source PHP library and self-hostable API for generating embed codes (Youtube, Twitter, and more) and fetching metadata from URLs for link previews.

Visit these pages to get started:

1. Embeds

Hyvor Unfold can convert URLs from various platforms to embed HTML codes.

We use a regex-based approach instead of using platform APIs or oEmbed. This allows us to generate embeds fast and without any rate limits and API keys.

Supported Platforms

  • Youtube: Videos, shorts, playlists, and channels
  • Facebook: Posts, pages, videos, and reels
  • Instagram: Posts and reels
  • Twitter/X: Tweets
  • Threads: Posts
  • Reddit: Posts and subreddits
  • Tiktok: Videos
  • Github: Gists

See our policy for adding new platforms.

You can also use Hyvor Unfold to fetch metadata from URLs. For example, you can use this to show a preview of a URL (called 'unfurled link').

When you request link data (via PHP or API), we send a GET request to the URL and parse the metadata from the HTML. This is done using the following: