Automattic / node-canvas

Node canvas is a Cairo backed Canvas implementation for NodeJS.
10.16k stars 1.17k forks source link

Consider using prebuildify over prebuild-install for version 3.x #2442

Open exige81 opened 1 week ago

exige81 commented 1 week ago

Feature Request:

Replace prebuild-install with prebuildify

Motivation:

prebuildify ships prebuilt binaries inside the npm package in lieu of storing them on github. prebuild-install itself currently recommends using prebuildify over prebuild-install

This provides a lower friction installation experience for the end user, especially for those behind a firewall or in enterprise environments where access to github is limited. prebuild-install can be configured with a host mirror, but this adds further complication and isnt always straightforward as evidenced by the several issues created surrounding the inability to reach the prebuilt binaries on github.

prebuildify also is compatible with N-API

btsimonh commented 10 hours ago

could be interesting. But canvas has a LOT of binaries (74 Mbytes on windows - although actually only 27mbytes are required - seems the binary dist contains the pdb and obj files!). But, if we had the four primary platforms, windows, macos x 2, linux, we could expect the overall binary loading to be ~100mbytes or more, when each install will only use ~25 Mbytes of this.