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

simple-cloudbase

v0.3.0

Published

a simple toolkit for cloudbase,which aims to improve wechat miniprogram developing experience

Downloads

41

Readme

simple-cloudbase

微信云开发的收费模式,即将迎来调整,添加了最低月费和按DAU收费,这背离了 serverless 的初衷

这是一个为微信云开发定制的框架,结合 @cloudbase/cli使用来完成云函数的工程化

文档在此

前言

微信云开发中的云函数,能获取微信的上下文以及 调用 openapi的能力,这些都是它独有的优势。(相比原生的 SCF)

但是官方提供的解决方案,无论是 微信IDE,还是 Cloudbase ,开发体验都欠佳。

这个框架,就是把 Cloudbase 作为一个辅助的 CLI 部署工具,再结合这套框架进行部署,来改善微信云开发的体验。

目的

改善微信云开发的开发体验,在提升 Serverless 冷启动的同时,让工程化更加简单!

TODO LIST:

  • [x] cloudbaserc.json 自动生成
  • [x] 云函数自动打包 , Tree shaking , 压缩
  • [x] 特殊情况处理, (excludeexternal) 的情况
  • [x] Commonjs, ESM, TS 支持
  • [x] 公共包逻辑复用
  • [] 本地调试
  • [] 部署到服务器环境(非Serverless)

部署及调试

直接使用 CloudBase CLI 作为部署工具

alias 支持

直接在项目根目录下添加 tsconfig.json or jsconfig.json

然后在里面添加

  "compilerOptions": {
    //...
    "baseUrl": ".",
    "paths": {
      "~/*": ["./src/*"]
      //...
    }
    //...
  },

这样在打包时,既可以使用alias,也可以顺便添加 vscode 智能提示,可谓是一举两得。

simple.json

这个是这套工具链的配置文件,在根目录(root)里的,控制所有的函数,在函数里的,控制这个函数的配置。

在多云函数部署时,每个云函数,可以看做是一个独立的 Nodejs 项目

原理

抛砖引玉:一种改善微信云开发 , 开发者体验的思路

抛砖引玉(2): Cloudbase Framework 助力改善微信云开发的体验

抛砖引玉(3): 微信云开发最佳实践

serverless 降低冷启动时间的探索 - 服务端打包 node_modules

非微信环境

个人使用的是 serverless framework

有关 serverless 的问题, 感兴趣可以关注我的知乎