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

@feng3d/frpc

v0.68.4

Published

frp 客户端部署工具 - 支持 Linux/Windows/macOS

Readme

@feng3d/frpc

frp 客户端快速部署工具,支持 Linux/Windows/macOS。

安装

# 全局安装
npm install -g @feng3d/frpc

# 或使用 npx 无需安装
npx @feng3d/frpc

工作原理

首次运行时自动从 GitHub Releases 下载对应平台的 frp 二进制文件,并缓存到系统临时目录,后续使用无需重复下载。

使用

快速连接

# 交互式配置向导
frpc

# 直接指定参数
frpc --server example.com --local-port 8080 --remote-port 8080

# 指定端口范围映射
frpc --server example.com --local-port 3000 --remote-port 3000-3005

命令选项

| 选项 | 别名 | 默认值 | 说明 | |------|------|--------|------| | --server | -s | | 服务端地址 | | --server-port | | 7000 | 服务端端口 | | --local-port | -l | | 本地端口 | | --remote-port | -r | | 远程端口 | | --proxy-name | -n | | 代理名称 | | --token | -t | | 认证令牌 | | --type | | tcp | 代理类型 (tcp/http/https) |

子命令

# 启动服务
frpc start

# 停止服务
frpc stop

# 重启服务
frpc restart

# 查看状态
frpc status

# 配置向导
frpc config

功能特性

  • 自动下载对应平台的 frp 二进制文件
  • 交互式配置向导
  • Windows 下自动处理 Defender 拦截
  • Linux/macOS 下自动配置系统服务
  • 支持多种代理类型 (tcp/http/https)
  • 支持端口范围映射

平台支持

  • Linux x64/arm64
  • Windows x64
  • macOS x64/arm64

示例

TCP 端口转发

# 将本地 8080 转发到远程 8080
npx @feng3d/frpc -s example.com -l 8080 -r 8080

# 带认证
npx @feng3d/frpc -s example.com -l 8080 -r 8080 -t my-token

HTTP 虚拟主机

# HTTP 类型代理
npx @feng3d/frpc -s example.com --type http -l 3000 -n myapp

端口范围

# 映射端口范围
npx @feng3d/frpc -s example.com -l 3000 -r 3000-3005

配置文件

默认配置文件位置:

  • Linux/macOS: ~/.frp/frpc.toml
  • Windows: %USERPROFILE%\frp\frpc.toml

许可证

MIT