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

@praiselane/react

v0.1.0

Published

React component for embedding PraiseLane testimonials

Readme

@praiselane/react

React component for embedding PraiseLane testimonials on your website.

Installation

npm install @praiselane/react

Quick Start

import { PraiseLane } from '@praiselane/react'

function App() {
  return (
    <PraiseLane
      project="my-project-slug"
      mode="inline"
      theme="light"
    />
  )
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | project | string | required | Your project slug | | mode | 'popup' \| 'inline' \| 'both' | 'popup' | Widget display mode | | theme | 'light' \| 'dark' \| 'system' | — | Theme override | | position | 'bottom_left' \| 'bottom_right' \| 'top_left' \| 'top_right' | — | Popup position | | inlineTarget | string | — | CSS selector for inline target (auto-generated if omitted) | | debug | boolean | false | Enable embed.js console logging | | scriptUrl | string | '/embed.js' | Custom embed.js URL | | mockData | MockData | — | Mock API response for demo/testing | | className | string | — | className on the container div | | onLoad | () => void | — | Callback when embed.js loads |

Display Modes

Popup (default)

Shows a floating button that opens a testimonial overlay:

<PraiseLane project="my-slug" mode="popup" position="bottom_right" />

Inline

Renders testimonials directly in your page:

<PraiseLane project="my-slug" mode="inline" theme="light" />

Both

Shows both an inline widget and a popup button:

<PraiseLane project="my-slug" mode="both" />

Mock Data (for demos & testing)

Pass mockData to intercept API calls and render with local data:

<PraiseLane
  project="demo"
  mode="inline"
  theme="light"
  mockData={{
    project: {
      widget_layout: 'grid',
      show_rating: true,
      show_avatar: true,
    },
    testimonials: [
      {
        id: '1',
        author_name: 'Jane Doe',
        content: 'Great product!',
        rating: 5,
      },
    ],
  }}
/>

Custom Script URL

By default, the component loads /embed.js from the current origin. For self-hosted or CDN setups:

<PraiseLane
  project="my-slug"
  scriptUrl="https://cdn.praiselane.com/embed.js"
/>

TypeScript

All types are exported:

import type {
  PraiseLaneProps,
  MockData,
  MockTestimonial,
  ProjectSettings,
  WidgetMode,
  WidgetTheme,
  PopupPosition,
} from '@praiselane/react'