Repository navigation
Rewrite on modern Node with per-monitor wallpapers, CI and release workflows - #1
Merged
Merged
Conversation
replace trianglify, wallpaper and minimist with maintained delaunator + chroma-js render triangles with a 2x supersampled scanline fill and encode png with node zlib generate one wallpaper per monitor at its native resolution set wallpapers via IDesktopWallpaper on windows and NSWorkspace (JXA) on macos derive all random choices from the seed and print it so wallpapers can be recreated accept colorbrewer palette names for --colors and validate all flags store wallpapers in the app data folder and remove the previous run's files add node:test suite require node >= 22.2 and bump package major version Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
run tests on windows and macos across node 22.2.0, lts and current add non-blocking monitor detection smoke check on real runners publish to npm via trusted publishing and create github release on version tags normalise package.json repository url for npm provenance Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
keep wallpapers from the 10 most recent runs instead of deleting all but the current run, so inactive macos spaces and overlapping runs keep their files draw every seeded default before applying overrides, so overriding one flag no longer changes the others add tests for parameter selection and wallpaper pruning Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
move cli logic to lib/main.mjs and load it dynamically from cli.mjs after a version check npx installs regardless of engines.node, and older node versions otherwise fail with a cryptic missing zlib.crc32 export error add a test keeping the minimum version in sync with engines.node add a ci job asserting the error on node 20 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rewrites wallangle on modern Node, replacing its unmaintained dependencies. It now generates and sets a separate wallpaper for each monitor at its native resolution. Adds CI and tag-driven npm and GitHub releases.
Every run prints its seed. The seed now drives every random choice (variance, cell size, palette, points), so
--seed=<value>recreates the same wallpapers.Evidence
trianglify@3.0.0depends oncanvas,jsdom@^7,nativesandchroma-js@^0.6, and has had no release since 2022. Wallpapers were always 3840×2160, written to the current directory, and the same image was used on every monitor.After: all 10
npm testtests pass. They include a check that every pixel of the output is covered exactly once, at variance 0–1 and odd image sizes. A real run on Windows with two monitors (portrait + ultrawide):After the run,
IDesktopWallpaperreported a different file for each monitor, and after 12 runs only the files from the 10 most recent runs remained. Generating and encoding a 4K image takes about 0.3 s; a full run takes about 1.8 s, most of it PowerShell startup.Monitor detection (macos-latest)job is its first real run, and it is non-blocking because hosted runners may have no display.Merge Danger
Door: two-way
Merging does not publish anything. Publishing
2.0.0happens only when av2.0.0tag is pushed, and that step is one-way: an npm version can't be reused.Blast Radius: major-version
When 2.0.0 is published, these users are affected:
enginesandosfields).--width/--heightnow default to each monitor's resolution, not 3840×2160.--cellSizemust be an integer ≥ 10.%LOCALAPPDATA%\wallangleor~/Library/Application Support/wallangleinstead of the current directory.🤖 Generated with Claude Code