salmanalmajali/jokes-widget
A Laravel package that provides a ready-to-use jokes widget for your application. Quickly add a lightweight, customizable component to display jokes in views or dashboards, making it easy to inject a bit of humor without building the feature yourself.
Adopt when all of the following hold:
Look elsewhere (or write the equivalent in-house, ~1 day) when: the dashboard is customer-facing; outbound egress is restricted; you need an SLA, uptime commitment, or vendor support; you need content moderation guarantees; or you are on Filament v3. Also look elsewhere if the joke content itself is the point — a public API dependency with no caching strategy and no content policy is a poor foundation, whereas a small curated local dataset is cheap and risk-free.
To executives: This is a free, low-risk cosmetic add-on for internal admin dashboards — a widget that shows a joke, localized to the user's language, with a refresh button. It is not a product feature and carries no revenue impact. The only real consideration is that it calls a public joke API over the internet, so we should confirm our network policy allows that before enabling it. Recommendation: approve for internal tooling only, with a one-line caveat that it can be removed with no consequence if it ever misbehaves.
To engineering: v1.0.0, first stable release, targets Filament v4 and v5, ships as a Livewire widget with a refresh action and locale-based content selection (id → bundled Indonesian jokes; en/other → live fetch from icanhazdadjoke.com). Two asks before we merge it anywhere: (1) confirm it fails soft — the dashboard must render normally if the API times out, rate-limits, or returns garbage; (2) confirm we are comfortable with an unvetted third-party content source rendering inside an authenticated admin session. If either answer is uncomfortable, the widget is small enough to reimplement locally in under a day with a curated dataset and no network dependency — which is the lower-risk option and worth weighing against the convenience of composer require.
How can I help you explore Laravel packages today?