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

@vureact/runtime-core

v1.0.1

Published

React adapter for Vue 3's built-in components, reactive APIs, and template directive utilities. Bring Vue's developer experience to React applications.

Readme

@vureact/runtime-core

简体中文 | English

Vue 3 内置组件 / React 钩子 / 模板指令工具集 的 React 适配层

一套全面的 React 适配层,将 Vue 3 的强大特性赋能至 React 应用中。通过内置组件、响应式钩子和模板指令工具,让你的 React 项目拥有 Vue 风格的开发体验。

简介

这是 Vue 3 与 React 之间的桥梁,让 React 开发者无需脱离 React 技术生态,就能直接复用 Vue 优秀的内置组件(KeepAlive、Transition、Teleport)、响应式 API 以及模板指令范式。

本库使用 Valtio 作为响应式引擎,提供高性能的 Proxy-based 响应式系统。

说明

1. 组件复用性

  • 在 React 中使用 Vue 经过实战验证的内置组件
  • 快速实现组件缓存(KeepAlive)、动画过渡(Transition)、端口渲染(Teleport)等复杂 UI 模式

2. 开发体验

  • 在 React 中享受 Vue 直观的响应式编程模型
  • 使用熟悉的 Vue 风格 API,如 useReactiveuseWatch 以及生命周期钩子
  • 借助模板指令工具(vClsvStylevOn)编写更简洁的 JSX 代码

3. 迁移与集成

  • 轻松将 Vue 组件迁移至 React 技术栈
  • 在已有 React 应用中无缝融入 Vue 开发范式
  • 降低 Vue 开发者上手 React 项目的学习成本

核心特性

  • Vue 内置组件<KeepAlive><Transition><Teleport><Suspense>
  • 响应式钩子useReactiveuseWatchuseVRefuseComputed 和生命周期钩子等
  • 指令工具集vClsvStylevOnvKeyless 等,还原 Vue 风格模板语法
  • 完备 TypeScript 支持:全量类型定义,兼容智能提示(IntelliSense)
  • 轻量无冗余:依赖极简,打包体积经过优化
  • 适配 React 18+:为现代 React 应用量身打造

适用场景

  • 需要 Vue 组件范式的 React 项目
  • 团队成员兼具 Vue/React 技术背景
  • 需实现组件缓存(KeepAlive)的应用
  • 需要高级过渡动画效果的项目
  • 从 Vue 迁移至 React 且希望保留原有开发范式的场景

快速上手

安装

更多详细教程请访问 https://runtime.vureact.top

npm i @vureact/runtime-core
pnpm add @vureact/runtime-core
yarn add @vureact/runtime-core

简易示例

import { KeepAlive, useVRef, useWatch } from '@vureact/runtime-core';

function App() {
  const count = useVRef(0);

  useWatch(count, (newVal, oldVal) => {
    console.log(`计数发生变化:${oldVal} → ${newVal}`);
  });

  return (
    <KeepAlive include={['Counter']} max={5}>
      <Counter value={count.value} onIncrement={() => count.value++} />
    </KeepAlive>
  );
}

function Counter(props: { value: number; onIncrement: () => any }) {
  return (
    <>
      <p>当前计数:{props.value}</p>
      <button onClick={props.onIncrement}>增加</button>
    </>
  );
}

🔗 链接

📄 许可证

MIT © Ryan John