Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Webfonts Laravel Package

log1x/laravel-webfonts

Self-host Google Fonts in Laravel with a simple artisan command. laravel-webfonts downloads the font files you need, generates local CSS, and gives you a Blade component for fast, privacy-friendly typography without third-party requests.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Performance/UX roadmap work: This package self-hosts web fonts (Google Fonts and others) and manages @font-face definitions, preloading, and local caching in Laravel apps. It directly supports decisions like "should we self-host fonts to cut third-party requests and improve LCP?" — a common Core Web Vitals / privacy initiative.
  • Build vs. buy (vs. build internally): Replaces ad-hoc font pipelines, manual @font-face CSS, and custom download/cache scripts with a maintained package. Useful benchmark when engineering proposes building a bespoke font manager.
  • Feature-level decisions: The v2.0.1 enhancement — allowing a specific subset of fonts to be preloaded (rather than preloading all registered fonts) — improves the PM's ability to trade off performance budget against typographic coverage. Teams can now preload only the critical above-the-fold font weights, which matters on content-heavy marketing pages, landing pages, and design-system-driven apps.
  • Compliance and privacy use cases: Self-hosting avoids sending visitor IPs to Google (GDPR-relevant). This supports compliance-driven roadmap items without a separate vendor decision.
  • Design system / theming decisions: Centralizing font registration in config makes it a lever for standardizing typography across multiple Laravel apps.

When to Consider This Package

  • Adopt when: You're on Laravel, ship one or more custom/Google fonts, and want self-hosted fonts with sane caching and preloading. Strong fit if you care about Core Web Vitals, GDPR/third-party request reduction, or want font config in version control.
  • Adopt specifically with v2.0.1+ if: You have many registered fonts and previously couldn't preload selectively — the new per-font preload allowlist lets you keep the performance win without bloating the critical path.
  • Look elsewhere when: You're not on Laravel (or not on a version the package supports), you need a full asset/CDN pipeline (e.g. enterprise font licensing, dynamic per-tenant fonts at scale), or you require automatic font subsetting/optimization beyond preloading. Also reconsider if your team has no appetite for a community-maintained dependency and would rather pin fonts via your existing build tool.
  • Caveats to validate: Font licensing for self-hosted files, the package's cache/download behavior in ephemeral or read-only filesystems (containers, serverless), and whether selective preloading is sufficient versus needing font-display/subset control. Confirm maintenance cadence — v2.0.1 is a small patch on a recently major-versioned package, so pin versions and read the v2.0.0 upgrade notes for breaking changes.

How to Pitch It (Stakeholders)

For executives: This is a small, low-cost dependency that lets us serve fonts ourselves instead of pulling them from Google. That means faster page loads, fewer third-party calls, and a cleaner privacy/compliance story, with typography configured centrally rather than scattered across templates. The latest patch adds the ability to preload only the fonts we actually need above the fold — a direct performance win with no added scope.

For engineering: The package handles font registration, local caching, and @font-face generation in Laravel config. v2.0.1 adds selective preloading, so you no longer preload every registered font — specify the critical set and keep the rest lazily loaded. Adoption is a config change plus a cache warm step; the main work is verifying font licensing, confirming the download/cache path works in our deployment (ephemeral filesystems), and pinning the version. Recommendation: adopt as a small, reversible dependency, pilot it on one high-traffic page, measure LCP and request count, then roll out.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core