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

xl-app-sdk

v0.1.4

Published

玄灵前端应用SDK

Readme

xl-app-sdk

npm version license

本包是专为玄灵拓展插件视图量身定制的开发工具包。它集成了多种常用的业务模块和 UI 组件交互功能,旨在简化开发流程,提高开发效率,并确保应用在玄灵生态系统中的体验一致性。

✨ 特性

  • 🚀 开箱即用: 提供完善的初始化流程,快速接入。
  • 📦 模块化设计: 包含请求封装、文件上传、消息提示、对话框、等多个独立模块。
  • 🎨 样式统一: 内置与玄灵系统一致的交互样式和主题管理。
  • 🛠️ Vue 3 支持: 深度集成 Vue 3,提供丰富的 Composition API (Hooks)。
  • 📝 TypeScript 支持: 完整的类型定义,提供极佳的开发体验。

📦 安装

npm install xl-app-sdk

# 或
yarn add xl-app-sdk

# 或 CDN 引入
<script src="https://cdn.jsdelivr.net/npm/xl-app-sdk/dist/js/xl-app-sdk.js"></script>

🚀 快速上手

// NPM包
import { message } from 'xl-app-sdk';

// 调用消息提示
message.success('欢迎使用');
<!-- CDN引入 -->
<script src="https://cdn.jsdelivr.net/npm/xl-app-sdk/dist/js/xl-app-sdk.js"></script>
<script>
    $xl.message.success('欢迎使用');
</script>

📖 核心模块说明

| 模块 | 说明 | 主要 API / 功能 | | --- | --- | --- | | base | 基础模块 | 环境判断等 | | message | 信息提示 | success, error, warning, info, loading | | dialog | 对话框 | create, confirm, warning 等交互弹窗 | | request | 网络请求 | 基于 axios 封装的统一请求工具 | | upload | 文件上传 | 支持原生的文件/文件夹选取及上传逻辑 | | richTextEdit | 富文本 | 富文本编辑相关功能支持 | | vueHooks | Vue 钩子 | 专为 Vue 3 项目提供的快捷 Hooks |

🛠️ 开发与构建

项目使用 Vite 进行构建,支持 ESM 和 UMD 格式。

📄 开源协议

本项目遵循 MIT 协议。


Keywords: xl-app-sdk, 玄灵, Xuanling, SDK