Skip to content

nyeinminhtet/webp-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webply

Webply is a small Next.js app for converting PNG images to WebP. The interface uses a dark theme, supports up to 5 PNG uploads at once, shows the converted WebP file size after success, and lets the user either download files one by one or grab all converted files as a ZIP.

Created by nyeinminhtet.

Features

  • Drag-and-drop PNG upload
  • Up to 5 PNG files per batch
  • Separate convert, per-file download, and ZIP download actions
  • Converted WebP filename and file size shown in the UI
  • API route powered by sharp
  • ZIP archive route powered by the system zip utility
  • App metadata, sitemap.xml, and robots.txt support

Tech Stack

  • Next.js 15
  • React 19
  • TypeScript
  • Sharp

Getting Started

Install dependencies:

npm install

Start the development server:

npm run dev

Build for production:

npm run build

Run the production server:

npm run start

Environment

Set NEXT_PUBLIC_SITE_URL to your deployed site URL so metadata, sitemap.xml, and robots.txt use the correct host.

Example:

NEXT_PUBLIC_SITE_URL=https://your-domain.com

If this variable is not set, the app falls back to http://localhost:3000.

Project Structure

app/
  api/convert/route.ts
  api/zip/route.ts
  globals.css
  layout.tsx
  page.tsx
  robots.ts
  sitemap.ts
components/
  converter-client.tsx
lib/
  site.ts

Notes

  • app/page.tsx is a server component.
  • Interactive upload and conversion logic lives in components/converter-client.tsx.
  • The converter accepts PNG input only.

Releases

No releases published

Packages

 
 
 

Contributors