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

web-fss

v0.2.3

Published

Practical web file server with range download and resumable upload

Downloads

11

Readme

web-fss

English | 简体中文

web-fss 是简单静态文件服务场景下的实用替代方案。

功能

  • 目录浏览 Web UI
  • 断点下载(HTTP Range / 206
  • 上传按钮 + 分片上传
  • 上传前同名冲突检测
  • 同名冲突支持:覆盖 / 重命名 / 取消
  • 支持覆盖上传 / 断点续传
  • .upload 元数据记录上传进度
  • 上传完成自动删除 .upload
  • UI 支持删除文件和文件夹
  • UI 支持打开模式切换:Preview(按浏览器 MIME 预览)/ Download
  • 支持 --serve-index-html:目录请求时自动返回 index.html/index.htm

Node.js 兼容版本:>=18.17

安装

本地开发安装依赖:

npm install

全局安装(发布后):

npm install -g web-fss

启动

默认(当前目录,端口 8000):

web-fss

或者:

node ./bin/web-fss.js

提示(快速启动):

npx web-fss

指定端口和目录:

web-fss 9000 -d /data/files

只监听本地:

web-fss -b 127.0.0.1

关闭上传:

web-fss --no-upload

显示隐藏文件(dotfile):

web-fss --show-hidden

设置上传分片大小(默认 4MB):

web-fss --chunk-size 1048576

目录请求自动返回 index.html/index.htm

web-fss --serve-index-html

续传逻辑

上传 a.zip 时会创建:

  • a.zip(目标文件)
  • a.zip.upload(JSON 元数据)

元数据字段:

  • file_size
  • uploaded_ranges[start, end)
  • bytes_received
  • completed

再次上传同名文件时:

  1. 检查现有文件与 .upload
  2. 状态有效则续传
  3. 否则覆盖
  4. 上传完成删除 .upload

API 接口

  • GET /.api/list?directory=/path/
  • POST /.upload/check
  • POST /.upload/init
  • POST /.upload/chunk
  • POST /.upload/delete
  • DELETE /.upload/delete

许可证

MIT