Skip to content

feat: added Font Fetching and Extraction from target website#4

Open
Proxyy587 wants to merge 3 commits intoethanjyx:mainfrom
Proxyy587:main
Open

feat: added Font Fetching and Extraction from target website#4
Proxyy587 wants to merge 3 commits intoethanjyx:mainfrom
Proxyy587:main

Conversation

@Proxyy587
Copy link

Added

Font extraction:

Detects fonts from stylesheets, inline @font-face, and font-family in CSS
Resolves font file URLs against the stylesheet URL for correct paths

Font UI :

Preview line in the actual font
"Available on" badge (Google Fonts / Fontshare)
Download font button linking to the source URL or Google Fonts

Changed

API & types: BrandExtractionResult includes fonts: FontAsset[]. FontAsset is { family: string; url?: string; sourceUrl?: string }.
Empty extraction now requires at least one of: logos, colors, backdrops, or fonts.
Scraper logic preserves the font entry with sourceUrl when priorities are equal.

Preview

Screenshot 2026-03-15 at 3 04 34 AM

Thanks to @CyberWasDreaming0 for helping with the font fetching feature.

@ethanjyx
Copy link
Owner

ethanjyx commented Mar 15, 2026

thanks for adding this, the screenshot shows a few cards showing different fonts, I can imagine if the list is larger it will take more vertical space, hence I'm a bit unsure about this. We may need a better way to display all the results.

@CyberWasDreaming0
Copy link

CyberWasDreaming0 commented Mar 15, 2026

thanks for adding this, the screenshot shows a few cards showing different fonts, I can imagine if the list is larger it will take more vertical space, hence I'm a bit unsure about this. We may need a better way to display all the results.

The whole list is not displayed at once. Initially, only the top 3 fonts are shown, and the remaining fonts are revealed when the user clicks on "Show more".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants