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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@qratilabs/qrati-connect

v2.5.0

Published

Easily integrate Qrati into your Web app with a simple, lightweight yet powerful component.

Readme

Logo

Qrati Connect is a React component library designed to seamlessly integrate Qrati's interactive features into your web applications to enhance user engagement and interaction.

Features

  • Interactive Media Gallery : Integrate Qrati's powerful interactive media gallery into your own site without a hassle.
  • Media Upload : Users can directly upload content from your host site.
  • Reaction : Engage your users with a completely customizable set of emojis.
  • Curation : Want to host a photo contest? Our curation feature can be a one stop solution for that.
  • Leaderboard : Gamify your contest with a precise and fun leaderboard.

Installation (React Component)

Install qrati-connect using npm, yarn, pnpm or bun:

npm install @qratilabs/qrati-connect
# or
yarn add @qratilabs/qrati-connect
# or
pnpm add @qratilabs/qrati-connect
# or
bun install @qratilabs/qrati-connect

Sample react page -

import QratiConnect from '@qratilabs/qrati-connect/react';
import '@qratilabs/qrati-connect/react/styles.css';

const Page = () => {
    return (
        <QratiConnect
            organizationId=<org_id>
        />
    );
};

export default Page;

Note: Add 'use client' directive if you are using any React frameworks which supports Server Side Rendering (SSR) like Next.js.

Available props

  • router : Custom router configuration for internal navigation ('memory or 'hash').
  • organizationId : Unique identifier for your organization inside Qrati.
  • fontClassName : Classes to control custom font for the component.
  • textClassName : Classes to apply any additional styling to texts inside the component.
  • emptyStateImage : Link or path to image which will be shown for any empty state in the component.
  • curateLabel : Label to show in place of 'Curate' in header for contest type events.
  • leaderboardLabel : Label to show in place of 'Leaders' in header for contest type events.
  • uid : User id for your application user (applicable for custom auth only).
  • fname : First name for your application user (applicable for custom auth only).
  • lname : Last name for your application user (applicable for custom auth only).
  • loginUrl : The page url inside your web app where we should redirect when authentication is required for user intended action (applicable for custom auth only).

Qrati Connect Element (Web Component)

Qrati Connect is also available as a Web Component (Custom Element) that you can use directly in your HTML without React. This is useful for non-React applications or when you want to embed Qrati Connect in static HTML pages.

Installation via CDN (jsDelivr)

Add the following script and stylesheet tags to your HTML:

<!-- Import the Web Component -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@qratilabs/qrati-connect/element/web.es.js"></script>
<!-- Import the styles -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@qratilabs/qrati-connect/element/styles.css" />

Usage

Once imported, you can use the custom element tag <qrati-connect> in your HTML:

<qrati-connect router="hash" organization-id="your-organization-id" />

Note: When using the Web Component version, props are passed as HTML attributes with kebab-case naming (e.g., organization-id instead of organizationId).

  1. Tailwindv3 -> Tailwindv4

bg-primary, bg-secondary -> bg-background text-primary -> text-foreground text-secondary -> text-muted bg-brand, text-brand -> bg-primary, text-primary qc-text-lg, qc-bg-red-500 -> qc:text-lg, qc:bg-red-500

  1. IconifyReact -> Iconify Tailwindv4

->