ImageKit Storage Provider
This provider adds the ImageKit Node SDK, validates IMAGEKIT_PRIVATE_KEY with Zod, and ships the same Multer memory-upload middleware pattern as the Cloudinary provider.
Installation Guide
npx servercn-cli add pr imagekit-storageBasic Implementation
1. Env Configuration
2. ImageKit client
The template file includes commented uploadToImageKit and deleteFileFromImageKit helpers using toFile from @imagekit/nodejs—use those as a starting point in a service layer.
3. Upload middleware (Multer)
Usage
Use upload.single("fieldName") (or array/fields) on your route, then upload req.file.buffer via the helpers described in the template’s imagekit.ts comments.