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

@oiij/use

v0.0.45

Published

Som Composable Functions for Vue 3

Readme

Use Core 🚀

NPM version MIT-license

项目简介 📦

Use Core 是一个功能丰富的 Vue 3 组合式 API 工具库,提供了一系列实用的 composables,帮助开发者更高效地构建 Vue 应用。

功能特点 ✨

模块化设计 🧩

  • 📁 采用模块化架构,每个功能独立封装
  • 📦 支持按需导入,减小打包体积
  • 🔧 清晰的文件结构,易于维护和扩展

类型安全 🔒

  • 📝 完整的 TypeScript 类型定义
  • 💡 提供准确的类型推断和代码提示
  • 🎯 支持 Vue 3 的 Composition API 类型系统

轻量高效 ⚡

  • 🚀 核心代码精简,无额外依赖
  • 🏃 优化的性能表现,最小化运行时开销
  • 📦 支持 Tree Shaking,进一步减小打包体积

功能丰富 🎨

  • 🔊 涵盖音频、动画、网络、UI 等多个领域
  • 🛠️ 提供开箱即用的解决方案
  • 🔄 与 Vue 3 生态系统无缝集成

安装 📥

使用 pnpm 🐱

pnpm add @oiij/use

使用 npm 📦

npm install @oiij/use

使用 yarn 🧶

yarn add @oiij/use

快速开始 🌟

基础使用

<script setup>
import { useBoolean } from '@oiij/use'
import { computed } from 'vue'

const { state: isVisible, toggle } = useBoolean(true)
const message = computed(() => isVisible.value ? 'Hello, Use Core!' : 'Goodbye, Use Core!')
</script>

<template>
  <div>
    <h1>{{ message }}</h1>
    <button @click="toggle">
      切换
    </button>
  </div>
</template>

功能模块 📋

  • use-audio 🎵: 音频处理
  • use-audio-context 🔊: Web Audio API 封装
  • use-audio-context-buffer 📻: 音频缓冲区管理
  • use-auto-ratio 📐: 自动比例计算
  • use-boolean ✅: 布尔值状态管理
  • use-context-menu 📋: 上下文菜单
  • use-event-bus-key 🚌: 事件总线键管理
  • use-event-source 🔄: Server-Sent Events 封装
  • use-image-verify 🖼️: 图片验证
  • use-injection-key 💉: 依赖注入键管理
  • use-number-animation 📈: 数字动画
  • use-scan-code 📱: 扫码功能
  • use-scroll-view 📜: 滚动视图管理
  • use-spectrum 🌈: 频谱分析
  • use-theme 🎨: 主题管理
  • use-type-writer ⌨️: 打字机效果
  • use-view-transition 🔄: 视图过渡效果
  • use-web-rtc 📹: WebRTC 封装
  • use-web-socket 🔌: WebSocket 封装

在线文档 📚

在线文档 📖

贡献指南 🤝

欢迎贡献代码、报告问题或提出新功能建议!

  1. Fork 本仓库 🍴
  2. 创建您的特性分支 (git checkout -b feature/amazing-feature) 🌿
  3. 提交您的更改 (git commit -m 'Add some amazing feature') 💾
  4. 推送到分支 (git push origin feature/amazing-feature) 🚀
  5. 打开一个 Pull Request 📥

许可证 📄

本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情 📑

联系方式 📞