Skip to content

shadmau/zapfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zapfile

Quick file sharing for Claude Code Web.

Features

  • Drag & drop file upload (max 150MB)
  • Shareable links with 24-char hash
  • Optional IP-based access control

Usage

Use the hosted service at zapfile.dev:

Upload a file

curl https://zapfile.dev/api/upload -F file=@yourfile.pdf

Response includes a shareUrl you can use to download the file.

Download a file

curl -O https://zapfile.dev/api/download/{hash}

Or visit the share link in a browser.

Self-Hosting

Quick Start

# Frontend
cd frontend
npm install
npm run dev  # http://localhost:3000

# Backend
cd backend
npm install
npm run dev  # http://localhost:8000

Configuration

Frontend

cd frontend
cp .env.example .env.local

Edit .env.local:

NEXT_PUBLIC_BACKEND_URL=http://localhost:8000  # Dev

Backend

cd backend
cp .env.example .env

Edit .env:

PORT=8000
ALLOW_ALL_IPS=true  # Set to false to enable IP whitelisting

Optional: Enable IP whitelisting by setting ALLOW_ALL_IPS=false and configure IP ranges in backend/src/config.ts:

export const ALLOWED_IP_RANGES = [
  "192.168.1.0/24",   // Example: Your network
];

License

MIT

About

Upload file, share with Claude Code Web

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •