npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

grtr

v2.0.1

Published

Instant file transfer with Nicknames, No more IPs and SCPs

Readme


🧭 Overview

grtr (Greater) is a command-line tool built with Node.js for fast and reliable file transfers across devices.
It lets you share files and folders instantly using human-readable nicknames instead of messy IP addresses.

Designed for developers, IT teams, and local networks, it’s like “AirDrop for terminals.”


✨ Features

Peer-to-Peer (LAN) Transfers — no cloud dependency
Nickname-based systemgrtr send mypc ./docs
Auto-zip for folders — sends entire directories easily
Simple, scriptable CLI — perfect for dev workflows
Configurable WAN mode (coming soon) for global sharing
Cross-platform — works on Windows, macOS, and Linux


⚙️ Installation

🧩 Using npm (recommended)

npm install -g grtr

Or, for local testing:

git clone https://github.com/kishore-144/grtr.git
cd grtr
npm link

Then test:

grtr --help

🖥️ Usage Guide

🟢 Start the Receiver (Server)

grtr serve <nickname>

Example:

grtr serve mypc

Optionally specify a custom folder to save received files:

grtr serve mypc "D:\Received"

🟡 Send Files or Folders

grtr send <nickname> <path> <mode>

Examples:

grtr send mypc ./report.pdf lan
grtr send mypc "C:\Users\KISHORE B\Desktop\Project Folder"

or

grtr send mypc ./report.pdf wan
grtr send mypc "C:\Users\KISHORE B\Desktop\Project Folder"

🧠 Tip: grtr automatically zips folders before sending for optimal speed.


🟣 Receive Mode (Manual)

grtr receive <nickname>

Displays listening status and helps users verify setup.


🔄 Switch Between LAN and WAN

grtr mode <type>

Examples:

grtr mode lan
grtr mode wan

🌐 Set Custom Relay API (for WAN transfers)

grtr newapi <url>

Example:

grtr newapi https://relay.grtr.io

🧰 Configuration

All configurations are stored locally in:

~/.grtr.json

Nickname mappings:

~/.grtr-nicknames.json

Each nickname maps to its current LAN IP, updated automatically when you run serve.


⚡ Example Workflow

Device A (Receiver):

grtr serve laptop

Output:

Registered nickname laptop at 192.168.1.10
Serving as 'laptop' on port 5050

Device B (Sender):

grtr send laptop ./files/test.txt

Output:

Sending test.txt to laptop (192.168.1.10)...
Transfer complete!

Receiver sees:

Received: test.txt

📦 Project Structure

grtr/
├── cli.js                # Main CLI entry point
├── index.js              # Exports core functions
├── package.json          # npm metadata and bin config
└── core/
    ├── config.js
    ├── nickname.js
    ├── server.js
    ├── sender.js
    └── receiver.js

🧠 Technology Stack

  • Node.js (v18+)
  • Express for HTTP handling
  • Axios for transfers
  • Archiver for zipping folders
  • Multer for uploads
  • Commander.js for CLI parsing
  • Chalk for colorful output

🛠️ Development Setup

Clone the repo and link it globally:

git clone https://github.com/kishore-144/grtr.git
cd grtr
npm install
npm link

Run locally:

node cli.js serve mypc

Unlink when done:

npm unlink -g grtr

🔒 Firewall & Connectivity Notes

If transfers fail with ECONNREFUSED, check:

  • Receiver is running (grtr serve)
  • Both devices are on same LAN
  • Windows Firewall allows Node.js inbound connections

🚧 Upcoming Features

  • 🌍 WAN Relay Mode — send files globally using WebSocket signaling
  • 📦 Auto-Unzip on Receive
  • 🔁 Progress bars and speed metrics
  • 🔐 Optional encrypted transfer mode

👨‍💻 Author

Kishore B
🎓 B.Tech Computer Science & Engineering
💡 Passionate about decentralized systems and developer tools
🔗 GitHub: kishore-144


📜 License

Licensed under the MIT License — free to use, modify, and distribute.