Icon Fall Web Component

Zach Leatherman · 2026年9月16日

AI 摘要 AI 生成,可能有误

作者介绍了,这是一个能让图标(包括表情符号)在整个网站上飘落的 Web 组件,它是作为 的后续而创建的。它最初是作为 Blog Awesome 的彩蛋而构建的,现在已在 GitHub 上公开发布,并可通过 npm 安装。它提供了图标数量的配置选项,以及可自定义的、以逗号分隔的颜色列表。

I’ve been doing some spring/fall cleaning and found an unpublished follow-up component to <snow-fall> (a web component to “snow” on your website — which also happens to work with emoji too). Originally it was created as an easter egg for Blog Awesome (click on the Font Awesome flag in the very bottom of the footer) but others have wanted to use it for more things!

Presenting: <icon-fall>:

  • Demo
  • 继续阅读全文

    为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

    更多来自 Zach Leatherman

    Your Tools are Hiding npm Audits from You

    AI 摘要This article argues that npm audit results can be misleading because tools like Next.js bundle 139 of their own dependencies outside of standard auditing mechanisms, hiding 3 critical vulnerabilities—more hidden critical vulnerabilities than visible ones in the no-longer-maintained Gatsby. Similar practices of bundling dependencies or suppressing audit output exist in Vite, various create- CLI tools, and package managers like pnpm and yarn, undermining transparency in security auditing. The author built the Prototype Pollution Report, a daily-updating comparison of vulnerability counts across framework ecosystems, to normalize these discrepancies and provide clearer security insight.

    All of my 300+ browser tabs are beautiful

    AI 摘要The article introduces a Firefox addon the author built to manage their habit of hoarding 300+ browser tabs. The addon provides features such as sorting tabs by recency, detecting duplicates, searching/filtering by title or URL, full undo/redo support, and a 'Saved' section for storing tabs to restore later. It also supports multi-account containers, identifies tabs playing audio, shows stale tabs, offers light and dark modes, and can merge all tabs into a single window.

    “AI, make the website good”

    AI 摘要The author reflects skeptically on the current AI-driven wave of development tooling—agents that plan, write, review, and orchestrate code—questioning whether these developer-experience improvements actually translate into better software for real users, just as similar promises around client-side rendering and the single-page-application era failed to do. Citing anecdotal declines in software reliability and poor performance/accessibility scores among AI-related sites, the author suspects this cycle repeats the old playbook at an accelerated pace. They conclude that craft, defined as caring about the quality of output regardless of the tools used to produce it, is more important than ever.

    Table of Contents Web Component

    AI 摘要The article introduces a zero-CSS table of contents web component that can either progressively enhance server-rendered or hierarchies or client-render them, highlighting which headings are currently visible in the viewport. Extracted from the WebC Tugboat starter project for standalone use, it is available on npm as @zachleat/table-of-contents, with demos shown on the author's blog and Blog Awesome. Developers can configure a selector attribute to control the heading search scope, defaulting to main :is(h2, h3, h4, h5, h6).

    Solar Eclipse Toggle Web Component (two state dark/light mode toggle)

    AI 摘要The author turned their two-state dark/light mode toggle experiment into a reusable web component called @zachleat/solar-eclipse-toggle, incorporating accessibility feedback from Curtis Wilcox, and released it on GitHub and npm. The component's highlights include an inert button before JavaScript loads, no cumulative layout shift (CLS), continued functionality when CSS fails to load, and internationalization support via strings inserted from light DOM.