Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoDrop

CoDrop is a lightweight temporary file-sharing app built with React and Vite, hosted on Cloudflare Pages and powered by Supabase. It lets users enter a 4-digit room code to create or join a transfer session, upload files, download shared files, and delete files from the workspace.

Features

  • 4-digit room-based file sharing
  • Anonymous Supabase authentication
  • Upload files into a temporary workspace
  • Download shared files with signed URLs
  • Delete files from the room
  • Live storage usage bar
  • Session expiration timer
  • Snackbar notifications for success and error states
  • Informational pages for Terms of Service, Privacy Policy, and Credits
  • Responsive UI for desktop and mobile

Screenshots

Getting Started

Installation

git clone https://github.com/Govind-Sankar/CoDrop.git
cd CoDrop
npm install

Environment Variables

Create a .env file in the project root:

VITE_SUPABASE_URL=your-supabase-project-url
VITE_SUPABASE_ANON_KEY=your-supabase-anon-key

Development

npm run dev

Build

npm run build

Supabase Setup

This app expects:

  • A Storage bucket named rooms
  • A files table for file metadata
  • A rooms table for room metadata
  • A database function named setup_room used to create or initialize rooms

The app uses anonymous auth on startup.

Notes

  • Files are intended to be temporary.
  • The UI warns users not to share sensitive data.
  • The app includes Terms of Service and Privacy Policy pages.
  • Upload size is limited in the UI to 50 MB per file.

Credits

Built by Govind Sankar.

License

See LICENSE for license details.