thekevinscott/UpscalerJS ? reverse-engineered prompt
Reverse engineered prompt
Build me a JavaScript library that can enhance images with AI, mainly for upscaling low quality photos but also for things like denoising, deblurring, retouching, and general cleanup. I want it to work in both the browser and Node, and I’d like TypeScript support so it feels easy to use in real projects.
Please include a simple API where I can pass in an image path, file, or data and get back an enhanced image, plus a few pretrained models I can choose from. It should be able to run efficiently on normal devices, not just big machines, so patch based processing and sensible defaults would be great. If it makes sense, add a small demo or example app so I can try it right away, and basic docs showing how to use it in browser and Node. Also make it easy to plug in custom models later if I want to extend it. If you need current docs or model details, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit