imgproxy-node

imgproxy-node logo

With imgproxy-node, imgproxy, a fast and secure standalone server for resizing and converting remote images, becomes even more accessible. Thanks to this library, Node.js-based projects can set up image processing with imgproxy to leverage a cost-effective self-hosted alternative to SaaS solutions.

The library (and, thus, the ability to use imgproxy) can be run using React Server Components. This way, you can use a server-specific URL signing feature but don’t need to deploy a separate Node.js service and expose your secret keys to the frontend; the library provides link generation, so you don’t need to write it on your own.

It simplifies the image-processing pipeline by encapsulating tricky imgproxy URL generation logic. You aren’t forced to think about encoding and signing URLs anymore; just provide the secret keys, desired result image options, and that’s it.

Plus, if you work in Visual Studio Code, detailed tooltips will help you properly form the URL for the required processing options (from simple resizing and blur, to more advanced features like custom watermarks). The library also ships with full TypeScript type coverage.

The library automatically works with the same ENV variables as imgproxy does (for example, secret encryption and signing keys) but it also supports its local overriding.

See image processing on the fly with imgproxy-node in this demo.

Author

In the same orbit

Explore more open source projects

Let's solve your hard problems

Martians at a glance
18
years in business

We're experts at helping developer products grow, with a proven track record in UI design, product iterations, cost-effective scaling, and much more. We'll lay out a strategy before our engineers and designers leap into action.

If you prefer email, write to us at surrender@evilmartians.com