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

@confidencesystemsinc/sdk

v2.0.18

Published

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Downloads

589

Readme

Confidence Playbook Component Library

This package provides a set of React components and utilities for embedding and managing Confidence Playbooks in your application. All exports are available from the ConfidencePlaybook module, with several specialized subcomponents for different integration scenarios.


Exports

1. ConfidencePlaybook

The main component for rendering a playbook instance by its ID.

Props:

  • playbookInstanceId (string | number): The unique instance ID of the playbook to display.
  • playbookMode ("list" | "card"): Display mode for tasks.
  • playbookStyle (object, optional): White-label and overlay style configuration.

Example:

<ConfidencePlaybook
  playbookInstanceId={12345}
  playbookMode="list"
  playbookStyle={{
    overlay: { position: "right", size: { width: 500 } },
    whiteLabel: { primaryColor: "#007BFF" },
  }}
/>

2. ConfidencePlaybook.AutoInstantiated

Automatically initiates a playbook for a given user/email and playbook template, then renders the playbook UI once ready.

Props:

  • email (string): The user's email to initiate the playbook for.
  • playbookId (string): The playbook template ID.
  • playbookMode ("list" | "card"): Display mode for tasks.

Example:

<ConfidencePlaybook.AutoInstantiated
  email="[email protected]"
  playbookId="YOUR_PLAYBOOK_ID"
  playbookMode="list"
/>

3. ConfidencePlaybook.WithInstantiateButton

Renders a button that, when clicked, prompts the user for their email and then instantiates and displays the playbook.

Props:

  • playbookId (string): The playbook template ID.
  • playbookMode ("list" | "card", optional): Display mode for tasks (default: "list").
  • playbookStyle (object, optional): White-label and overlay style configuration.
  • btnLabel (string, optional): Button label (default: "Start Playbook").

Example:

<ConfidencePlaybook.WithInstantiateButton
  playbookId="YOUR_PLAYBOOK_ID"
  btnLabel="Start Playbook"
  playbookMode="card"
  playbookStyle={{
    overlay: { position: "right", size: { width: 500 } },
    whiteLabel: { primaryColor: "#007BFF" },
  }}
/>

4. ConfidencePlaybook.View

A lower-level component for rendering a playbook UI given a playbook object. Useful for advanced scenarios or custom data sources.

Props:

  • playbook (Playbook): The playbook data object.
  • playbookMode ("list" | "card"): Display mode for tasks.
  • onTaskButtonClick (function): Handler for task button actions.
  • playbookStyle (object, optional): White-label and overlay style configuration.

Example:

<ConfidencePlaybook.View
  playbook={playbookData}
  playbookMode="list"
  onTaskButtonClick={async (btn, taskId) => {
    // handle action
  }}
/>

Notes

  • All components are styled with TailwindCSS and scoped under .confidence-ui.
  • For more details on the playbookStyle prop and available options, see the source code or type definitions.
  • These exports are designed for flexibility: use the high-level components for quick integration, or the lower-level View for custom scenarios.