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

nodejs-argo-x

v2.0.1

Published

A Node.js tool that provides x subscription links via A.

Readme

nodejs-argo-x隧道代理

npm version npm downloads License

nodejs-argo-x是一个强大的Argo隧道部署工具,专为PaaS平台和游戏玩具平台设计。它支持VLESS代理协议。


说明 (部署前请仔细阅读)

  • 本项目是针对node环境的paas平台和游戏玩具而生,采用Argo隧道部署节点。
  • node玩具平台只需上传index.js和package.json即可,paas平台需要docker部署的才上传Dockerfile。
  • 不填写A_DOMAIN和A_AUTH两个变量即启用临时隧道,反之则使用固定隧道。

📋 环境变量

| 变量名 | 是否必须 | 默认值 | 说明 | |--------|----------|--------|------| | PORT | 否 | 3005 | HTTP服务监听端口 | | A_PORT | 否 | 8001 | Argo隧道端口 | | ID | 否 | 75de94bb-b5cb-4ad4-b72b-251476b36f3a | 用户ID | | A_DOMAIN | 否 | - | Argo固定隧道域名 | | A_AUTH | 否 | - | Argo固定隧道密钥 | | CIP | 否 | cf.877774.xyz | 节点优选域名或IP | | CPORT | 否 | 443 | 节点端口 | | NAME | 否 | Vls | 节点名称前缀 | | FILE_PATH | 否 | ./tmp | 运行目录 | | S_PATH | 否 | ID的值 | 订阅路径 |

🌐 订阅地址

  • 标准端口:https://your-domain.com/{S_PATH}
  • 非标端口:http://your-domain.com:port/{S_PATH} 注:S_PATH 变量默认为 ID 的值

🚀 进阶使用

安装

# 全局安装(推荐)
npm install -g nodejs-argo-x

# 或者使用yarn
yarn global add nodejs-argo-x

# 或者使用pnpm
pnpm add -g nodejs-argo-x

基本使用

# 直接运行(使用默认配置)
nodejs-argo-x

# 使用npx运行
npx nodejs-argo-x

# 设置环境变量运行
PORT=3005 npx nodejs-argo-x

环境变量配置

可使用 .env 文件来配置环境变量运行

或者直接在命令行中设置:

export PORT=3005
export ID="your-id-here"

📦 作为npm模块使用

// CommonJS
const nodejsArgox = require('nodejs-argo-x');

// ES6 Modules
import nodejsArgox from 'nodejs-argo-x';

// 启动服务
nodejsArgox.start();

🔧 后台运行

使用screen(推荐)

# 创建screen会话
screen -S argo

# 运行应用
nodejs-argo-x

# 按 Ctrl+A 然后按 D 分离会话
# 重新连接:screen -r argo

使用tmux

# 创建tmux会话
tmux new-session -d -s argo

# 运行应用
tmux send-keys -t argo "nodejs-argo-x" Enter

# 分离会话:tmux detach -s argo
# 重新连接:tmux attach -t argo

使用PM2

# 安装PM2
npm install -g pm2

# 启动应用
pm2 start nodejs-argo-x --name "argo-service"

# 管理应用
pm2 status
pm2 logs argo-service
pm2 restart argo-service

使用systemd(Linux系统服务)

# 创建服务文件
sudo nano /etc/systemd/system/nodejs-argo-x.service

[Unit] Description=Node.js Argo Service After=network.target

[Service] Type=simple User=root WorkingDirectory=/root/test Environment=A_PORT=8001 Environment=PORT=3005 ExecStart=/usr/bin/npx nodejs-argo-x Restart=always RestartSec=10

[Install] WantedBy=multi-user.target


# 启动服务
sudo systemctl start nodejs-argo-x
sudo systemctl enable nodejs-argo-x

🔄 更新

# 更新全局安装的包
npm update -g nodejs-argo-x

# 或者重新安装
npm uninstall -g nodejs-argo-x
npm install -g nodejs-argo-x

📚 更多信息


免责声明

  • 本程序仅供学习了解, 非盈利目的,请于下载后 24 小时内删除, 不得用作任何商业用途, 文字、数据及图片均有所属版权, 如转载须注明来源。
  • 使用本程序必循遵守部署免责声明,使用本程序必循遵守部署服务器所在地、所在国家和用户所在国家的法律法规, 程序作者不对使用者任何不当行为负责。