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

morya-ui

v0.2.7

Published

Open-source Vue 3 component library with design tokens, themes, and interactive docs.

Readme


介绍

Morya UImorya-ui)是一套开源的 Vue 3 组件库,提供 90+ 个组件、基于令牌的主题系统、内置国际化,以及带实时预览的文档站。

无论你是做管理后台、SaaS 产品还是内部工具,都可以直接使用统一的表单、浮层、数据展示与反馈能力。

特性

组件齐全

覆盖基础、表单、导航、数据展示、布局与反馈等 90+ 个组件,均支持 ESM 按需引入与 tree-shaking。

主题开箱即用

亮/暗色模式基于 --m-* CSS 变量;通过 useTheme 切换主题,用 useDensity / useMotion 调整密度与动效,子树可用 MConfigProvider 覆盖。

TypeScript 优先

基于 Vue 3 Composition API 与 TypeScript 编写,Props、Emits 与 locale 均有完整类型。

多种接入方式

支持全量注册、按名导入、按需子路径,以及配合 unplugin-vue-componentsMoryaUIResolver——同一应用内建议保持一致。

文档即预览

每个组件自带 Markdown 文档与可交互 vue preview 示例,可在线浏览或本地启动文档站。

SSR 与元框架

兼容 Nuxt 3Astro + VueVite SSR 等场景;提供 @morya-ui/nuxt 模块,详见 SSR 指南

文档

https://morya-space.github.io/morya-ui/

| 章节 | 链接 | | --- | --- | | 快速上手 | 指南 | | 主题 | 主题 | | 全局配置 | 配置 | | SSR | Nuxt / Astro / Vite SSR | | 组件 | 目录 | | 更新日志 | 版本 |

安装

需要 Vue 3(推荐 3.5 及以上),以及能解析包 exports 的构建工具(Vite、webpack 5+ 等)。

pnpm add morya-ui
# npm i morya-ui
# yarn add morya-ui

快速开始

全量注册并引入样式:

import MoryaUI from 'morya-ui'
import { createApp } from 'vue'
import App from './App.vue'
import 'morya-ui/styles.css'

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

按需引入(样式自动带入):

import { MButton } from 'morya-ui/button'
import { MInput } from 'morya-ui/input'

应用级默认配置(语言、尺寸、浮层挂载点等):

import { createMoryaUI, zhCN } from 'morya-ui'

createApp(App).use(createMoryaUI({ locale: zhCN })).mount('#app')

完整接入方式、Vite 解析器与主题 API 见 快速上手

生态

| 包 | 说明 | | --- | --- | | morya-ui | 组件、样式、主题与语言工具 | | @morya-ui/nuxt | Nuxt 3 模块(样式、transpile、overlay 上下文) | | @morya-ui/mcp | 可选 MCP 服务,供 AI 客户端检索文档 |

参与贡献

欢迎提交 Issue 与 Pull Request。请先阅读 CONTRIBUTING.zh-CN.md

维护者文档:开发指南 · 发版脚本

本地开发

pnpm install
pnpm dev              # 文档站 → http://localhost:5182
pnpm build            # 组件库 → dist/
pnpm build:docs:pages # GitHub Pages 构建
pnpm test
pnpm typecheck

许可证

MIT © Morya UI contributors