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

@aiao/rxdb-plugin-search-vue

v0.0.25

Published

[`@aiao/rxdb-plugin-search`](../rxdb-plugin-search) 的 Vue 集成层。提供 `useSearch()` composable,将搜索插件的 `SearchHandle` 适配为 Vue `ref` / reactive 消费接口。

Readme

@aiao/rxdb-plugin-search-vue

@aiao/rxdb-plugin-search 的 Vue 集成层。提供 useSearch() composable,将搜索插件的 SearchHandle 适配为 Vue ref / reactive 消费接口。

安装

pnpm add @aiao/rxdb @aiao/rxdb-plugin-search @aiao/rxdb-plugin-search-vue vue rxjs

用法

<script lang="ts" setup>
import { useSearch } from '@aiao/rxdb-plugin-search-vue';
</script>
  • useSearch:返回响应式的 SearchState(结果、加载态与错误)
  • 类型:UseSearchReturnSearchSourceLike

响应式入参与重建契约(三端一致)

sourceoptions 都接受 MaybeRefOrGetter(值 / Ref / ComputedRef / getter)。 解析值变化时旧 SearchHandle 被销毁、新 handle 以用户当前 query 播种:

  • initialQuery 只在首次创建时作种子,此后不再参与重建判据, 因此传 initialQuery: query 不会导致每次击键重建 handle;
  • options 按语义(collections / debounce / pageSize / snippetLength)而非引用比较, 每次重算新建的字面量不触发重建;
  • 重建后 loadMore / clear / retry 一律路由到最新 handle,旧 handle 的晚到 emission 不再写入输出。

判据由 core 的 searchOptionsEqual 三端共用,重建时机不会因框架而异。

三框架同功能对称:Angular 用 injectSearch@aiao/rxdb-plugin-search-angular),React 用 useSearch@aiao/rxdb-plugin-search-react)。

文档

License

MIT