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

h5pack

v1.0.0

Published

快速将H5打包成app的工具

Readme

h5pack - 跨平台 H5 应用 APP 打包解决方案

介绍

h5pack 是一款跨平台应用打包工具(全面支持 macOS 和 Windows),通过简洁的配置文件,即可将任意 H5 应用快速打包成 Android APK。该工具不仅简化了打包流程,更提供了强大的原生平台能力调用接口,让 H5 应用具备原生应用的完整功能。

具体配置以在线文档为准:h5pack传送门

https://github.com/user-attachments/assets/0ea5b29f-849d-46a2-af35-130273b69965

效果

一个常规的网页,可将其打包为一个 App

打包效果

App 效果

视频效果

GitHub:h5pack-core 传送门

issues 是第一生产力!😄

知识星球:传送门

大兄弟们聚过来,这件事很重要 🎉🎉🎉

(如果觉得不错 👍,给个 star ⭐ 吧,你的认可是我最大的动力 !)

系统架构与核心原理

┌─────────────────────────────────────────────────────────────┐
│                      h5pack 生态系统                        │
├─────────────┬─────────────┬─────────────┬─────────────────┤
│  h5pack-core│ h5pack-native │h5pack-bridge│  h5pack-iconkit│
│   (核心引擎) │ (原生容器)    │ (通信桥梁)   │   (资源生成)     │
└───────┬─────┴───────┬─────┴───────┬─────┴─────────┬───────┘
        │             │             │               │
        └─────────────┼─────────────┼───────────────┘
                      │   协作流程   │
┌─────────────────────▼─────────────▼─────────────────────────┐
│                      打包执行流程                             │
│                                                             │
│  ┌─────────────┐    ┌─────────────┐    ┌─────────────────┐  │
│  │  读取配置    │───▶│ 资源生成与    │───▶│  应用打包与      │   │
│  │  h5pack.json│    │   注入      │    │     输出         │   │
│  └─────────────┘    └─────────────┘    └─────────────────┘  │
└─────────────────────────────────────────────────────────────┘

h5pack 基于 React Native 技术架构构建,其核心工作机制如下:

  • 资源打包机制:将 Web 网页作为静态资源完整打包到 Android App 中

  • 容器化加载:App 通过内嵌的 WebView 组件加载打包的 Web 页面,实现 H5 应用 App 化

  • 桥接通信系统:通过精心设计的 H5PackBridge 模块,建立 H5 与原生平台之间的双向通信通道

优势特点

极简配置:只需简单配置文件,快速完成打包

  • 跨平台支持:完美兼容 macOS 和 Windows 和 linux 开发环境

  • 原生能力:完整调用 Android 平台原生功能

  • 开发便捷:保留 H5 开发效率,享受原生应用体验

其他内容

不定期在 B 站直播写代码,欢迎有兴趣的小伙伴们前来围观,期待你们的关注~

B 站个人主页

我有个前端交流群,平时大家一起讨论技术和交流 bug,有兴趣的小伙伴欢迎加入。(vx 添加:ysh15120)