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

qai-app-factory

v1.0.0

Published

CLI to scaffold a Vite multi-page app from a template or git repo

Readme

app-factory(app工厂)CLI

一个用于从本地模板或 Git 仓库快速搭建 Vite 多页面(MPA)项目的命令行工具。

使用方式

# 使用 npx(推荐)
npx qai-app-factory@latest

# 或全局安装
npm i -g qai-app-factory
app-factory

# 在指定目录创建项目
app-factory my-app

# 从指定 Git 仓库与分支拉取模板
app-factory my-app --template https://git.zuoyebang.cc/zhiji/project-template.git --branch app-h5-template

# 不传 --template 时,将使用内置默认模板与分支
app-factory my-app

# 在当前目录创建项目(目录需为空或允许覆盖)
app-factory .

参数说明

  • --template <path|git-url>:模板来源,本地路径或 Git 仓库地址(以 .git 结尾)。
  • --pkg-manager <npm|pnpm|yarn|bun>:指定安装依赖的包管理器。
  • --no-install:跳过依赖自动安装。
  • --branch <name>:从 Git 仓库拉取时指定分支。

默认模板

  • 仓库:https://git.zuoyebang.cc/zhiji/project-template.git
  • 分支:app-h5-template
  • 可通过环境变量覆盖:APP_FACTORY_TEMPLATE_GIT、APP_FACTORY_TEMPLATE_BRANCH

功能特性

  • 支持从本地目录复制或从 Git 仓库浅克隆模板,并自动移除 .git。
  • 自动将目标项目 package.json 的 name 改为新项目名。
  • 可选自动安装依赖(支持 npm/pnpm/yarn/bun)。
    • 自动识别优先级:目标目录锁文件 > 用户代理(npx/包管理器 UA)> 默认 pnpm
    • 锁文件判定:pnpm-lock.yaml → pnpm;yarn.lock → yarn;bun.lockb → bun;package-lock.json → npm

许可证

MIT