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

@reviewskits/vue

v0.1.0

Published

The official Vue 3 SDK for ReviewsKits

Readme

@reviewskits/vue

📖 Quick Links

✨ Features

  • Vue 3 Optimized: Built with the Composition API in mind.
  • Nuxt Friendly: Ready-to-use plugin for Nuxt 3 projects.
  • Type-safe: Built with TypeScript for a better developer experience.
  • Composable API: Simple and powerful composables for data fetching.

🚀 Installation

Install the package using your preferred package manager:

bun add @reviewskits/vue
# or
npm install @reviewskits/vue
# or
pnpm add @reviewskits/vue

🛠️ Setup

1. Initialize the Plugin

In your main entry file (e.g., main.ts):

import { createApp } from 'vue'
import { createReviewsKit } from '@reviewskits/vue'
import App from './App.vue'

const app = createApp(App)

// Initialize Reviewskits
app.use(createReviewsKit({
  pk: 'pk_your_public_key',
  host: 'https://api.reviewskits.com',
  cache: true // Enabled by default
}))

app.mount('#app')

2. Nuxt 3 Support

For Nuxt 3, create a plugin in plugins/reviewskits.ts:

import { createReviewsKit } from '@reviewskits/vue'

export default defineNuxtPlugin((nuxtApp) => {
  const config = useRuntimeConfig()
  
  nuxtApp.vueApp.use(createReviewsKit({
    pk: config.public.reviewsKitPk,
    host: 'https://api.reviewskits.com'
  }))
})

💻 Usage

Fetching Reviews

Use the useReviews composable for standard pagination:

<script setup>
import { useReviews } from '@reviewskits/vue'

const { data, isLoading, error } = useReviews({
  formId: 'your_form_id',
  limit: 10
})
</script>

<template>
  <div v-if="isLoading">Loading...</div>
  <div v-else-if="error">Error: {{ error.message }}</div>
  <div v-else>
    <div v-for="review in data.reviews" :key="review.id">
      <h3>{{ review.author.name }}</h3>
      <p>{{ review.content }}</p>
      <span>Rating: {{ review.rating }}/5</span>
    </div>
  </div>
</template>

Infinite Scrolling

Use useInfiniteReviews for "Load More" patterns:

<script setup>
import { useInfiniteReviews } from '@reviewskits/vue'

const { data, fetchNextPage, hasNextPage, isLoading } = useInfiniteReviews({ 
  formId: 'your_form_id',
  limit: 5 
})
</script>

<template>
  <div v-if="isLoading">Loading...</div>
  <div v-else>
    <div v-for="page in data?.pages" :key="page.meta.page">
      <div v-for="review in page.reviews" :key="review.id">
        <!-- Review content -->
      </div>
    </div>
    
    <button v-if="hasNextPage" @click="fetchNextPage">Load More</button>
  </div>
</template>

💡 Best Practices

Reactive Parameters

Always pass reactive objects (like ref or reactive) to our composables. This allows the SDK to automatically track changes and refresh data efficiently.

<script setup>
const params = reactive({ limit: 10 });
const { data } = useReviews(params);

// Changing this will automatically trigger a new fetch
// and cancel any pending stale requests.
const updateLimit = () => params.limit = 20;
</script>

Request Cancellation

The SDK internally manages AbortController. If you switch filters rapidly, the SDK will automatically cancel previous pending requests, ensuring your UI stays in sync with the latest selection without race conditions.

📄 Documentation

For detailed API reference and advanced guides, please visit our Full Documentation.

⚖️ License

MIT © ReviewsKits