Discover Packages
git.mills.io/prologic/hermes
internal
preview
package
Version:
v0.0.0-...-7e2b890
Opens a new window with list of versions in this module.
Published: Jun 19, 2026
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package preview fetches OpenGraph/link previews for URLs with SSRF
protection (private/loopback/link-local destinations are refused), strict
timeouts, redirect and body-size limits, and HTML-only parsing.
FirstLink returns the first http(s) URL in text that is not a direct media
link (image/video/audio), suitable for an OpenGraph preview.
Fetcher retrieves previews. The zero value is not usable; use New.
Fetch retrieves and parses a preview for rawURL.
Result is a fetched preview.
Has reports whether the result carries anything worth showing.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.