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

lan-file-transfer

v1.0.0

Published

LAN file transfer tool with pickup code download

Readme

LAN File Transfer

局域网文件传输工具。上传文件生成取件码,别人输入取件码下载。 每个人都只能看到自己上传和下载的文件。

快速开始

# 全局安装
npm install -g lan-file-transfer

# 启动
lan-file-transfer

或者不安装直接用:

npx lan-file-transfer

启动后终端显示:

LAN File Transfer
Public:  http://localhost:3456
Admin:   http://localhost:3456/admin
Password: 123456

LAN:     http://192.168.0.122:3456

使用

发文件: 打开 http://localhost:3456,拖拽或点击上传文件, 得到 4 位取件码,发给对方。

收文件: 打开 http://服务端IP:3456,输入取件码下载。

看记录: 首页下方"我的文件"列出你上传和下载过的文件。

管理: http://localhost:3456/admin → 密码 123456 → 查看所有文件、删除文件。

配置

| 环境变量 | 默认值 | 说明 | |----------|--------|------| | PORT | 3456 | 端口 | | ADMIN_PASSWORD | 123456 | 管理员密码 |

ADMIN_PASSWORD=mypass PORT=3000 lan-file-transfer

从源码运行

git clone https://github.com/anomalyco/lan-file-transfer.git
cd lan-file-transfer
pnpm install
pnpm build
pnpm start

开机自启

Windows 双击 setup-startup.bat,下次登录自动启动。 取消:shell:startup 删除 LANFileTransfer.lnk

双平台说明

| | 服务端 | 客户端 | |--|--------|--------| | Mac | 运行服务并上传文件 | 浏览器访问 | | Windows | 运行服务并上传文件 | 浏览器访问 |

文件上传到服务端本地磁盘,其他设备通过浏览器下载。

目录

lan-file-transfer/
├── server/              Express + SQLite
├── client/              React + Vite
├── bin/                 CLI 入口
├── start.bat            Windows 启动
├── stop.bat             Windows 停止
├── setup-startup.bat    开机自启配置
└── ecosystem.config.js  PM2 配置

发布

npm publish