本文介绍了一个零 CSS 的目录(table of contents)Web 组件,它既可以对服务端渲染的标题层级结构进行渐进增强,也可以在客户端进行渲染,并高亮显示当前视口中可见的标题。该组件从 WebC Tugboat 入门项目中提取出来供独立使用,以 @zachleat/table-of-contents 的名称发布在 npm 上,作者在其博客和 Blog Awesome 上展示了相关演示。开发者可以配置一个选择器属性来控制标题的搜索范围,默认值为 main :is(h2, h3, h4, h5, h6)。
…and another one.
This little (zero CSS) web component has two modes: progressively enhance a hierarchy of server rendered <ol> or <ul> elements (or conveniently client render them for you if they don’t exist) to highlight which are currently visible in the viewport.
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.
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 摘要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.
AI 摘要The author introduces , a web component that makes icons (including emoji) fall across a website, created as a follow-up to . Originally built as an easter egg for Blog Awesome, it is now publicly available on GitHub and installable via npm. It offers configuration options for the icon count and a customizable, comma-separated list of colors.
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.