Skip to content
im-apratapPublic

About

DropRoom is an anonymous, real-time pastebin and file-sharing workspace. Instantly create a room, share code & files (up to 5MB) via a 6-digit code, and sync across devices without signing up.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

DropRoom - Anonymous Pastebin & File Sharing

A sleek, minimalistic, and completely anonymous clipboard application built with React, Vite, and Supabase.


DropRoom Screenshot


Features

  • Anonymous "Rooms": Instant generation of unique 6-character room codes. No signup required.
  • Real-Time Text Syncing: Paste code, links, or text and save them instantly to the cloud.
  • File Attachments: Upload and share files (up to 50MB combined) securely within your room.
  • 1-Click Copy: Easily copy your room code or the text content to your local clipboard.
  • Premium UI: Light-themed, glassmorphism-inspired design with a clean sidebar and functional action bar.

Tech Stack

  • Frontend: React + Vite
  • Backend & Storage: Supabase (PostgreSQL + Storage)
  • Styling: Custom CSS & lucide-react icons

Getting Started

  1. Set up your .env:

    VITE_SUPABASE_URL=your_supabase_url
    VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
  2. Install dependencies:

    npm install
  3. Run the development server:

    npm run dev

Database Setup

Run this in your Supabase SQL Editor to set up the snippets table and public policies:

drop table if exists public.snippets;

create table public.snippets (
  id uuid default gen_random_uuid() primary key,
  code varchar(6) not null unique,
  content text not null,
  file_url text,
  file_name text,
  created_at timestamp with time zone default timezone('utc'::text, now()) not null
);

alter table public.snippets enable row level security;

create policy "Allow public read access" on public.snippets for select using (true);
create policy "Allow public insert access" on public.snippets for insert with check (true);
create policy "Allow public update access" on public.snippets for update using (true);

Storage Setup

For file persistence:

  1. Go to Storage and create a bucket named room-files.
  2. Make it Public.
  3. Set the max file size to 100MB. Private file uploads are encrypted and can be larger than the original files.
  4. Create policies identical to above to allow anonymous SELECT, INSERT, and UPDATE.

Made by Aaditya Pratap

About

DropRoom is an anonymous, real-time pastebin and file-sharing workspace. Instantly create a room, share code & files (up to 5MB) via a 6-digit code, and sync across devices without signing up.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages