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

swifterate

v1.1.0

Published

The last feedback widget you need for your site.

Readme

Swifterate

The Swiss Army Knife for Solopreneurs and Builders

Swifterate bundles data insights, referrals, feedback, A/B testing, and ratings into one powerful dashboard. Make the right decisions, faster.

Sign up at swifterate.com & create a project. ✅ Install our package & customize. ✅ Project key & origin protection for your security. ✅ Lightweight & fast – no impact on your app's performance.

Whether you're validating ideas, improving features, or optimizing conversion, we've got you covered with tools that help you understand your users and grow your business.

Installation

npm install swifterate
# or
yarn add swifterate

Components

FeedbackButton

The FeedbackButton component creates a floating feedback button that allows users to submit detailed feedback with screenshots.

import { FeedbackButton } from "swifterate";

function App() {
  return (
    <FeedbackButton
      projectKey="your-project-key"
      position="right"
      titleText="Help us improve!"
    />
  );
}

Props

  • projectKey (optional): Your project identifier (default: "anonymous")
  • position (optional): Position of the feedback button ("left" | "center" | "right") (default: "right")
  • titleText (optional): Custom text for the feedback button (default: "Help us improve!")
  • titleStyle (optional): Custom styles for the title
  • titleClassName (optional): Custom class name for the title

LiveRating

The LiveRating component provides a simple thumbs up/down rating system that you can embed anywhere in your application.

import { triggerLiveRating, LiveRating } from "swifterate";

// somewhere in code, open it. The context is optional but useful data.
triggerLiveRating("homepage-feedback");

function MyComponent() {
  return (
    <LiveRating
      projectKey="your-project-key"
      onVote={(vote) => console.log(`User voted: ${vote}`)}
      style={{}} // optional
      className="" // optional
      isOpen={false} // you can manually leave it open
    />
  );
}

Props

  • projectKey (optional): Your project identifier (default: "anonymous")
  • onVote (optional): Callback function that receives the vote ("up" | "down")
  • style (optional): Custom styles for the rating container
  • className (optional): Custom class name for the rating container

Examples

Using FeedbackButton with Custom Styling

import { FeedbackButton } from "swifterate";

function App() {
  return (
    <FeedbackButton
      projectKey="your-project-key"
      position="center"
      titleText="Give Feedback"
      titleStyle={{
        color: "#4a5568",
        fontWeight: "bold",
      }}
      titleClassName="my-custom-title"
    />
  );
}

Using LiveRating in a Modal

import { LiveRating } from "swifterate";

function FeedbackModal() {
  return (
    <div className="modal">
      <h2>How was your experience?</h2>
      <LiveRating
        projectKey="your-project-key"
        onVote={(vote) => {
          console.log(`User voted: ${vote}`);
          // Close modal or show thank you message
        }}
        style={{
          justifyContent: "center",
          margin: "20px 0",
        }}
      />
    </div>
  );
}

Best Practices

  1. Always provide a projectKey to properly organize feedback from different projects
  2. Use the FeedbackButton component when you need comprehensive feedback with screenshots
  3. Use the LiveRating component for quick satisfaction surveys or feature-specific feedback
  4. Position the FeedbackButton where it won't interfere with your main UI elements
  5. Consider using LiveRating after key user interactions or at the end of important flows

Support

For issues and feature requests, please visit our GitHub repository.

License

MIT