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

@proteus-vue/create-proteus

v0.2.0

Published

Proteus 脚手架:npm create @proteus-vue/proteus my-app —— 一键生成 Web + 微信小程序(Skyline)双端工程

Readme

@proteus-vue/create-proteus —— Proteus 脚手架

npm create @proteus-vue/proteus my-app —— 一键生成 Web + 微信小程序(Skyline)双端工程。

使用

npm create @proteus-vue/proteus my-app
cd my-app
npm install
npm run dev:web        # Web 端(浏览器打开 Vite 提示地址)
npm run build:mp       # 小程序端(微信开发者工具导入 dist/mp-weixin,替换 proteus.config.ts 的 appid)

生成内容(32 个文件)

  • 编译管线vite.config.ts + vite-plugin-mp-transform.ts(薄适配层,依赖 npm 包 @proteus-vue/compiler)+ scripts/gen-routes.ts(路由/app.json/page.json 生成器)+ scripts/mp-entry-stub.ts
  • 框架本体(src/ 快照):router(Router/RouterView/guards/skyline/presets)+ platform(adapter 双端)+ runtime(setData 桥接/生命周期/app 骨架)+ shims(wx 类型)
  • 应用骨架src/main.ts(Web 入口)/ src/main.mp.ts(★极简入口:不写 App(),骨架自动生成)/ src/App.vue / src/pages/index.vue(首页,含 <route> 块)
  • 配置proteus.config.ts(platform/skyline/appid/rules 规则覆盖…)

模板维护(★与主仓库同步)

模板 = 主仓库快照 + 手写模板,scripts/snapshot-template.ts 负责同步:

tsx scripts/snapshot-template.ts
  • 自动快照src/platform/ src/runtime/ src/shims/ src/router/(除 auto-routes.ts)scripts/(除 snapshot 自身)vite-plugin-mp-transform.ts(import 替换为 @proteus-vue/compilertsconfig.json index.html(入口替换为 src/main.ts)
  • 手写模板(改主仓时手动同步):package.json(含 {{name}} 占位)/ proteus.config.ts / vite.config.ts / src/main.ts / src/main.mp.ts / src/App.vue / src/pages/index.vue / src/router/auto-routes.ts(仅首页占位,首次 build 时 gen-routes 重新生成)

@proteus-vue/compiler 未发布 npm 前,生成工程安装会 404;临时用 npm install <仓库>/packages/compiler 或 npm link。

发布

npm run build -w @proteus-vue/create-proteus   # esbuild 单文件(dist/index.js + shebang)
npm publish                       # files: dist + templates