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

expo-harmony-cli

v0.2.5

Published

CLI for creating Expo projects with HarmonyOS support

Readme

expo-harmony-cli

使用 Expo SDK 52 创建 React Native 项目,并注入 HarmonyOS(OpenHarmony)开发基线的命令行工具。

一条命令,一键初始化一个开箱即跑鸿蒙的 Expo(基于 RN)工程——同一套代码覆盖鸿蒙、iOS、安卓三端,全程沿用 Expo 的 CNG(配置驱动、随时重建)工作流。

Key features

  • 创建 Expo SDK 52 项目,并自动注入 HarmonyOS 开发基线
  • 生成 HarmonyOS 原生工程、Metro 配置、RNOH 依赖和开发文档
  • 通过 CLI 管理三方依赖、patch、Metro alias 与 HarmonyOS 原生注册
  • 保留 Android、iOS 与 Web 的 Expo 标准工作流

使用方法

Quick Start

# 1. 创建项目
npx expo-harmony-cli my-harmony-app
# pnpm 用户也可以使用:
pnpm dlx expo-harmony-cli my-harmony-app

# 2. 安装 JS 依赖并应用 HarmonyOS patch
cd my-harmony-app
pnpm install

# 3. 首次生成 HarmonyOS 原生工程
pnpm dlx expo-harmony-cli prebuild --platform harmony

# 4. 安装 ArkTS / HAR 原生依赖
cd harmony
ohpm install

# 5. 回到项目根目录,启动 HarmonyOS Metro
cd ..
pnpm start:harmony

随后在 DevEco Studio 中打开项目的 harmony/ 目录,选择 entry 模块并运行到真机或模拟器。

pnpm start:harmony 会启动 8888 端口的 Metro,自动尝试执行 hdc rport tcp:8888 tcp:8888,并输出局域网地址。真机仍无法加载 bundle 时,在 RNOH Dev Settings 中填写终端输出的 <局域网 IP>:8888;也可设置 HARMONY_METRO_HOST=<局域网 IP> 显式指定地址。

Documentation

完整说明和维护命令见 使用指南