Skip to content
devsargamPublic

About

πŸ“ simple cli just upload it

Resources

Stars

8 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

upload-it

Share files from your terminal in seconds. Built for developers and agents.

Install

npm i -g @devsargam/upload-it

Usage

# Upload a file (no account needed, expires in 24h)
upload-it photo.png

# Login for 7-day storage
upload-it login

# List your files
upload-it list

# Logout
upload-it logout

Peer-to-peer

Send a file straight to another machine. The file never touches storage β€” the server only helps the two sides find each other.

# On the sending machine β€” prints a link and a code, then waits
upload-it send photo.png

The receiver has two options. A browser link, so they need nothing installed:

https://uploadit.app/r/<code>

Or the CLI, if they have it:

upload-it receive <code>
upload-it receive <code> --out ~/Downloads

Codes are single-use and expire after 15 minutes. Both machines must be online at the same time. Very restrictive networks may block the direct connection.

Tech Stack

  • CLI β€” TypeScript, Node.js
  • API β€” Hono on Cloudflare Workers
  • Storage β€” Cloudflare R2
  • Auth β€” Email OTP with JWT
  • P2P β€” WebRTC data channels, Durable Object signalling
  • Frontend β€” React Router

Author

@devsargam

About

πŸ“ simple cli just upload it

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages