Next.js and Bunny CDN: Complete Guide to Image Uploading with Server Actions

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. next-bunny-cdn

    Next.js and Bunny CDN: Using server actions for image uploading

    Since the tutorial focuses only on image uploading, server actions and using bunny CDN, I won't make a full guide on set up. You can either clone the repository or just setup everything by yourself in the way you like. Just make sure you have a Next.js with app router ready to use before diving deeper 😉

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. nanoid

    A tiny (118 bytes), secure, URL-friendly, unique string ID generator for JavaScript

    Last thing left is to use our new upload function in our server action. Since I like to upload images in single format and have some more control over them, I will additionally use sharp library. For file name, I'll generate some random string using nanoid:

  4. valibot

    The modular and type safe schema library for validating structural data 🤖

    I'll use Valibot library, which is a pretty new and cool library for schema validation, similar to Zod.

  5. sharp

    High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.

    Last thing left is to use our new upload function in our server action. Since I like to upload images in single format and have some more control over them, I will additionally use sharp library. For file name, I'll generate some random string using nanoid:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Creating Image Optimizer With Rio

    3 projects | dev.to | 6 Dec 2022
  • From Next.js 15 to SvelteKit: Why We Rewrote Rsale.net's Frontend

    1 project | dev.to | 3 May 2026
  • By the Power of Grayscale

    1 project | news.ycombinator.com | 4 Nov 2025
  • nanoid VS pikaid-specs - a user suggested alternative

    2 projects | 2 Sep 2025
  • Show HN: I made a tool to generate photomosaics with your pictures

    1 project | news.ycombinator.com | 28 Jul 2025