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

mcui-oreui

v1.0.0

Published

Minecraft 基岩版 Ore UI 设计语言的 Vue 3 组件库(第三方复刻,移植自 Spectrollay-OreUI)

Readme

OreUI Vue

Minecraft 基岩版 Ore UI 设计语言的 Vue 3 组件库 —— 像素质感、立体按钮、按键音效,开箱即用。

License: MIT Vue TypeScript

把 Minecraft 基岩版界面的观感(Minecraft 像素字体、灰色立体面板、绿/灰/红三态按钮、卡片扫光、按键音效)封装为 13 个标准 Vue 3 组件,并附带一套 VitePress 实时文档站。

⚠️ 非官方声明:本项目为第三方复刻,与 Mojang Studios 无任何从属关系,不含 Minecraft 官方代码或美术资产。设计语言移植自社区项目 Spectrollay-OreUI/OreUI(MIT)。它与官方仓库 Mojang/ore-ui(仅开源 @react-facet 状态管理库)是完全不同的两个东西。

特性

  • 🎮 原汁原味 —— 直接复用原项目 1700+ 行 CSS 与 Minecraft 字体,零视觉偏差
  • 🧩 标准 Vue 3 + TypeScript —— 全部 <script setup lang="ts">v-model 受控、类型完整
  • 🔌 组合式 / 选项式 API 通用 —— 导入一次全局可用,两种风格皆可
  • 🔊 内置音效 —— 移植原项目 7 个按键音效,可全局开关
  • 📦 Vite 库模式打包 —— 产出 ESM / UMD / .d.ts 类型声明

安装

npm install mcui-oreui

需要 Vue ^3.3(peerDependency)。

快速开始

全局注册(导入一次,全局可用)

// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import OreUIVue from 'mcui-oreui'
import 'mcui-oreui/style.css'   // 样式需引入一次

createApp(App).use(OreUIVue).mount('#app')

之后任意组件(组合式或选项式)的 <template> 中直接使用,无需再 import:

<template>
  <OreButton variant="green" @click="onStart">开始游戏</OreButton>
  <OreSwitch v-model="enabled" />
</template>

按需引入

<script setup lang="ts">
import { OreButton, showPop } from 'mcui-oreui'
import 'mcui-oreui/style.css'
</script>

<template>
  <OreButton variant="green" @click="showPop('已保存', 2000, 'success')">保存</OreButton>
</template>

CommonJS require 场景需 require('mcui-oreui').default;现代 ESM 工具链无需关心。

组件一览

| 类别 | 组件 | |---|---| | 基础 | OreButton · OreCard | | 表单 | OreCheckbox · OreSwitch · OreDropdown · OreTextField · OreSlider | | 布局 | OreLayout · OreHeader · OreScrollView | | 反馈 | OreModal · OreLoadingMask · OrePopHost | | 能力 | useSound / playSound / setSoundEnabled · usePop / showPop |

完整 Props / 事件 / 在线 Demo 见文档站。

本地开发

npm install           # 安装依赖

npm run docs:dev      # 启动 VitePress 文档站(默认 http://localhost:5175)
npm run docs:build    # 构建文档站静态产物
npm run docs:preview  # 预览已构建文档

npm run build         # 构建组件库(类型检查 + Vite 库打包 → dist/)

技术栈

Vue 3 · Vite 5(库模式)· TypeScript · vite-plugin-dts · VitePress

致谢

  • 设计语言与原始 CSS / 字体 / 音效移植自 Spectrollay-OreUI/OreUI
  • 灵感源自 Minecraft 基岩版 Ore UI 界面

许可

MIT · © 2020 Spectrollay(原项目)· Vue 移植版

使用本库即表示你已知悉其为非官方第三方复刻,与 Mojang Studios 无从属关系。