Skip to content

A minimalist file-sharing platform built with Next.js 14 to explore secure uploads, private downloads, and in-browser previews.

Notifications You must be signed in to change notification settings

Namiiii-sys/Files-Sharing

Repository files navigation

Sharedex

About

Sharedex is a minimalist file-sharing platform built to practice modern full-stack patterns in Next.js 14. It allows users to securely upload files, protect them with passwords, email download links, and preview supported files directly in the browser. This project was built end-to-end as a learning-focused implementation.


Features

  • Secure file uploads with optional password protection
  • Time-limited, private download links
  • In-browser previews for PDFs, images, and documents
  • Email delivery of download links with instructions
  • Clean, minimal UI focused on usability

Tech Stack

  • Next.js 14 (App Router, Server Actions, API Routes)
  • Prisma ORM with PostgreSQL (Neon)
  • Cloudinary for file storage
  • Tailwind CSS for styling
  • Clerk for authentication
  • Nodemailer for transactional emails

Key Learnings

Secure File Access

  • Password hashing and validation using bcrypt
  • Private file access using unsigned, time-limited Cloudinary URLs
  • Middleware-based access control for protected routes

In-Browser File Previews

  • Native browser previews for PDFs, images, and DOCX files
  • No third-party viewers required

Transactional Emails

  • HTML email templates sent via Nodemailer
  • Secure download links generated using serverless functions

Live Demo

https://lnkd.in/dQB8ezdF


Disclaimer

This is a demo project created for learning and experimentation purposes.


About

A minimalist file-sharing platform built with Next.js 14 to explore secure uploads, private downloads, and in-browser previews.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published