JSLab
Author ProfileClaim This Author Profile
Prove ownership by publishing #HashtagPLUS and this profile link on your author page or an article under your byline. A moderator or admin will review the request before it merges into your real HashtagPLUS username.
π dev.toSource
A contrast checker in one React file: the WCAG math, a component with no useEffect, and a live preview with no project to set up.
π dev.toSource
How JSLab's tabs work: the New Tab dialog, opening and saving files, the shortcuts, and the session restore that brings everything back after a relaunch.
π dev.toSource
Most TypeScript just disappears. Enums, parameter properties and namespaces don't. Here's what gets erased, what gets emitted, and why Node's type stripping cares.
π dev.toSource
Token from the environment, a timeout, a real error on non-2xx, a typed response and the rate-limit headers: an API call worth copying into your app.
π dev.toSource
From a CSV string to totals by region and by week: Object.groupBy, a real CSV parser, and the date bug that moves your Monday to Sunday.
π dev.toSource
What JSLab does when your code won't end: Stop and Kill, the unresponsive-tab prompt, loop protection's 2,000-iteration limit, and Safe Mode.
π dev.toSource
How JSLab installs npm packages once for every tab, loads their types for autocomplete, and offers to install a package you import but don't have.
π dev.toSource
How JSLab ties every result, log and error to the line that produced it, and how the four filter chips narrow the output.
π dev.toSource
Conditional logs, console.table and logpoints: how to watch a loop run without littering it with console.log.
π dev.toSource
We make JSLab, a JavaScript and TypeScript scratchpad for Mac, so this is show-and-tell, not...