Expand description
§joaju-unfurl
A fast and secure Rust library for OpenGraph metadata extraction with SSRF defensive protection and visual preview card rendering for Typst.
⚠️ Early Development Notice (pre-1.0 / alpha): This library is currently in early active development (
0.1.0). It is NOT recommended for production use beyond experimental testing and research. APIs are subject to breaking changes prior to a stable 1.0.0 release.
§Quick Example
use joaju_unfurl::extract_metadata;
let html = r#"<title>Example</title><meta property="og:description" content="Desc">"#;
let meta = extract_metadata(html, "https://example.org").unwrap();
assert_eq!(meta.title.as_deref(), Some("Example"));
assert_eq!(meta.domain, "example.org");