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

quick-platform

v1.0.49

Published

registerApp(options) 注册应用

Readme

registerApp(options) 注册应用

{
  name:string;//应用名称
  i18n:{
    global?:boolean; 默认会全局挂载$$i18n和$i18n国际化函数
    onReady?(hook):Promise<any>; 初始国际化完成,可以在这里面进行自定义的国际化操作
  },
  lifecycles:{};// 组件生命周期hook
}

MicroApp 子应用加载组件

{
  name: string;// 子应用名称
  extra?: any; //扩展信息
  base?: string; // 子应用路由base
  env?: string; // 环境 ,默认会取当前运行环境
  host?: string;// 加载子应用的服务地址
  className?: string //容器类名
}

Permission 权限组件,会默认对接主应用的权限信息

AppEvent 应用间通信事件总线

trigger(name: string, data: any):void;向父级发送事件
broadcast(name: string, data: any):void;向子级发送事件
on(name: string, handler: (...args: any[]) => void):void;注册事件

Utils 工具类

Utils.buildHttpCtrl(base:string); 请求工具封装,与现在的httpCtrl相同功能,可平替
Utils.tryImageTranscode(url); 图片本地解码操作,主要针对heic类图片进行转码,正常展示

Authentication 认证相关服务

更新日志

24.09.11:@quick/[email protected] 修改 uno 的打包规则 24.09.11:@quick/[email protected] 修改 uno 的打包规则 24.10.10:@quick/[email protected] 新增 License 权限判断 24.10.17:@quick/[email protected] 修改 system 的本地获取方式 24.10.24:@quick/[email protected] 新增 MicroApp 组件 loading 过渡渲染 24.10.28:@quick/[email protected] 新增 应用状态获取及环境判断 24.10.34:@quick/[email protected] 补充 License 权限判断 24.10.35:@quick/[email protected] 增加处理数据逻辑 24.11.22:@quick/[email protected] 增加处理数据逻辑 24.11.25:@quick/[email protected] 增加本地调度模式支撑(LocalDebug 组件) 24.11.27:@quick/[email protected] 增加积分计费版本的 api 24.11.27:@quick/[email protected] 增加积分计费版本的 api 24.11.28:@quick/[email protected] 增加 oem 版本的识别 api 24.11.28:@quick/[email protected] 处理国际化加载时机 24.11.28:@quick/[email protected] 处理微应用初始状态值重置问题