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

foxtrel

v1.0.7

Published

前端自动化工具

Downloads

21

Readme

foxtrel

前端构建工具,前后端集成解决方案,开箱即用

foxtrel 功能点

  • 脚手架,自动生成功能
  • 项目自动构建工具功能
  • 项目本地服务功能

安装使用

npm install -g foxtrel 
// 安装项目
foxtrel install 模板名称       //如: foxtrel install foxtrel-generater-webapp
//你的项目目录
cd your package dirname
//安装模块
npm install
//编译项目
foxtrel release
//开启本地服务,进行调试
foxtrel server 启动文件    //如 foxtrel server output/server.js

注:如有权限问题,使用sudo foxtrel <command>;

项目生成

脚手架技术选型

  • gulp 基于gulp自动化构建工具,生成项目。
  • commander 命令行辅助工具,更好的处理用户输入。
  • co 异步流程控制工具。
  • inquirer 提供一个提问界面和查询会话流程。
  • package-json 包更新检测功能。

自定义项目结构和API使用

自定义项目结构说明

编译构建

基于webpack静态模块打包器,进行项目构建。根据用户配置信息加载不同的处理器,进行编译构建。

自定义配置

默认读取配置文件foxtrel.config.js。通过foxtrel release -f,--file 项目名称,修改默认文件。

  • 项目类型配置 根据项目类型,将选择不同编译器进行编译。foxtrel.config.set('type', 'react');
  • 项目名称配置 根据项目名称,生成编译输出地址foxtrel.config.set('name', 'projectName');
  • webpack配置 处理器会提供默认配置,我们可以修改默认配置。如:foxtrel.config.set('webpack.output.path',__dirname+"/dist")。注意,设置 output.path后,编译输出地址将为当前地址,而不是根据项目名称的地址。 等等。。。。

功能点

  • watch 监听文件变化,提供watch功能。foxtrel release -w
  • clean 清除编译输出的缓存文件。 foxtrel release -c
  • open 打开编译输出目录。 foxtrel release open

服务启动

  • 支持多进程/集群的本地服务
  • 支持服务端ES6编程
  • 支持服务端自动刷新
  • 支持客服端自动刷新 todo

todo

  • React项目热更新
  • 客服端自动刷新
  • 提供后端框架
  • 提供单元测试