A high-performance, minimalist web application for converting images to the WebP format. Built with Go, Fiber v3, and Templ.
- Blazing Fast: Uses Go's performance and
chai2010/webpfor efficient encoding. - Smart Compression: Choose between Good, Best, and Maximum quality presets.
- Real-time Preview: Instant visual feedback of the selected image before conversion.
- Compression Stats: See exactly how much space you've saved with detailed size comparisons.
- Responsive & Modern UI: A sleek, dark-mode/glassmorphism design built with Tailwind CSS.
- No Page Reloads: Powered by HTMX for a smooth SPA-like experience.
- Backend: Go + Fiber v3
- Templating: Templ (Type-safe HTML templates)
- Frontend: HTMX + Tailwind CSS
- Image Processing: WebP for Go
- Go 1.23+
- Templ CLI (
go install github.com/a-h/templ/cmd/templ@latest)
-
Clone the repository:
git clone <repository-url> cd gofiber
-
Install dependencies:
go mod tidy
-
Generate Templ files:
templ generate
-
Run the application:
go run main.go
Or use Air for live reloading:
air
The server will be running on http://localhost:3000.
main.go: Application entry point, routes, middleware, and image processing logic.home.templ: The UI component defined using Templ.go.mod: Project dependencies.
All image processing happens in-memory. Images are not stored on the server disk, ensuring privacy and security for your files.
Built with Go and Fiber.