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

@seayoo-web/webview

v1.0.11

Published

social media webview js bridge

Readme

Social Media WebView

Alipay

pushAlipayClientWindow(url: string, callback?: (pageWillReload: boolean) => void): Promise<void>

使用客户端方式打开一个新的页面,如果不在支付宝客户端 webview 中则直接跳转 url,参考链接

closeAlipayWindow(): Promise<void>

关闭支付宝 WebView 当前页面

triggerAlipayTradePayWithNo(tradeNo: string): Promise<AlipayTradePayResult>

使用支付流水号唤起支付宝快捷支付,参考链接

triggerAlipayTradePayWithOrderStr(orderStr: string): Promise<AlipayTradePayResult>

使用订单串唤起支付宝快捷支付,参考链接

onAlipayPageVisible(fn: ()=>void): void

支付宝 WebView 页面显示时触发,参考链接

Weixin

triggerWeixinJsApiPay(args: WeixinJSApiRequestPaymentParams): Promise<boolean | null>

唤起微信 JS API 支付,此处返回的支付结果不保证可靠性。参考链接

  • null 不在微信 Webview 内
  • false 用户取消或支付失败
  • true 用户可能支付成功,💡不保证可靠性,需要查询后端接口以确认结果

updateWeixinShareData(info: ShareInfo, verifyData: WeixinApiVerifyData): Promise<boolean>

设置微信分享信息,仅在微信 WebView 中有效,参考链接