首页›发现›编程›Zach Leatherman

Zach Leatherman

Atom运行正常
访问网站
文章数10
更新频率每月约 1.3 篇
最近抓取24分钟前
订阅方式Atom
订阅地址https://www.zachleat.com/web/feed/

最近的文章

订阅后,这些文章和以后的新文章都会出现在你的阅读器里

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.

Icon Fall Web Component

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.

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.

Trying out a Two-state Dark Mode Toggle

AI 摘要The article discusses Lea Verou's proposal that dark/light mode toggles only need two user-facing options rather than three (System, Light, Dark), since System always resolves to either dark or light. Inspired by this, the author implemented a two-state toggle on their own site that shows the current theme, toggles to the opposite of the system preference, and clears any saved override when returning to auto. While Bramus criticized the approach for users whose system preferences switch automatically, the author feels the simpler, visually responsive control is worth that tradeoff.

I was tired of building 474 separate pages for Open Graph Images

AI 摘要The author replaced the 474 individually server-rendered static Open Graph image pages on his blog with a single /opengraph/ page that client-renders the metadata, a tradeoff that's acceptable because the output is ultimately a static image produced by a Chromium-based screenshot service with unchanged caching. This approach has made implementing Open Graph support easier to build and manage on several of his sites, including zachleat.com, build.awesome.me, and speedlify.dev. Importantly, image content is keyed strictly off the local page URL, with no freeform URL parameters allowed to alter it.

Use Speedlify2 to Continuously Measure Website Performance

AI 摘要The article announces Speedlify2, a major overhaul of the Speedlify website performance measurement tool that now continuously tests 1,565 sites automatically using GitHub Actions, with decoupled measurement and ranking steps and no manual publishing required. Key improvements include Core Web Vitals and detailed Axe accessibility results alongside Lighthouse scores, a new component with backwards compatibility, an unranked Emeritus category for departed sites, and No-JavaScript versus JavaScript-enabled screenshot comparisons that can reveal rendering bugs or layout shifts. The Built Awesome leaderboard only highlights sites with perfect scores, while corporate-facing categories like Web Hosts and Site Generators deliberately show poorly performing sites to hold paid services to a higher standard.

Am I neglecting my open source projects?

AI 摘要The author, who maintains around 78 npm packages plus other open source projects, built a new dashboard called 'Is this still being maintained??' that assigns each project a 'Neglect score' based on popularity, need (issues, pull requests, npm audits), and recency. The dashboard surfaced surprising aggregate stats like 67 million downloads in the past year, revealed their Eleventy Vue plugin as the most neglected project (holding 31 of their 42 npm audits), and clearly showed the link between fewer dependencies and fewer audit reports. It also prompted them to archive a batch of old projects they no longer wish to track.