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 🙏

© 2024 – Pkg Stats / Ryan Hefner

babblebots-react

v1.0.42

Published

Babblebots utility react components

Downloads

2,320

Readme

babblebots-react

Utility React components for Babblebots integration

NPM JavaScript Style Guide

Installation

Install the package via npm:

npm install babblebots-react --save

Usage

Interview Designer Component

The InterviewDesignerDialog component allows you to create and edit interview requests, configure settings, and publish interviews.

Props Overview

  • apiKey (string): Your organization's integration key provided by the Babblebots team. Required for authenticating API requests.
  • jdUrl (string): Public URL of the job description. This will be embedded in the interview request sent via WhatsApp.
  • jdText (string): Parsed text of the job description, highlighting relevant skills for the interview.
  • onPublish (function): Callback function triggered after successfully creating an interview. It receives the interview data as an argument.
  • interviewid (string, optional): The ID of the interview if you are editing an existing one.
  • isOpen (boolean): Controls whether the Interview Designer dialog is initially open.
  • setisOpen (function): Callback function to update the open/closed state of the Interview Designer dialog.
  • subcompanyid (string): ID of the sub-company (if applicable).

Example Usage

import React, { useState } from 'react'
import { Button, Stack } from '@mui/material'
import { InterviewDesignerDialog } from 'babblebots-react'
import 'babblebots-react/dist/index.css'

const App = () => {
  const [isOpen, setIsOpen] = useState(false)
  const [interviewId, setInterviewId] = useState('2584')

  return (
    <Stack
      sx={{ width: '100vw', height: '100vh' }}
      alignItems='center'
      justifyContent='center'
    >
      <Button variant='contained' onClick={() => setIsOpen(true)}>
        Create Interview
      </Button>

      <InterviewDesignerDialog
        apiKey="your_api_key"
        jdUrl="https://example.com/job-description"
        jdText="Job Description Details"
        onPublish={(data) => {
          console.log('Interview Data:', data)
          setInterviewId(data.interview_type)
        }}
        isOpen={isOpen}
        setisOpen={setIsOpen}
        interviewid={interviewId}
        subcompanyid="1234"
      />
    </Stack>
  )
}

export default App

Example Data Returned by onPublish Callback

{
  "role_name": "Technical Lead - Fullstack .NET",
  "interview_type": 580,
  // Other relevant interview data...
}

Interview Settings Component

The UpdateInterviewSettings component allows you to modify the settings of an existing interview.

Props Overview

  • apiKey (string): Integration key for authenticating API requests, provided by the Babblebots team.
  • interviewId (string): The ID of the interview, required to update its settings.
  • interviewsettingsopen (boolean): Controls whether the Interview Settings dialog is initially open.
  • setInterviewSettingsOpen (function): Callback function to toggle the open/closed state of the Interview Settings dialog.

Example Usage

import React, { useState } from 'react'
import { UpdateInterviewSettings } from 'babblebots-react'
import 'babblebots-react/dist/index.css'

const App = () => {
  const [interviewSettingsOpen, setInterviewSettingsOpen] = useState(true)

  return (
    <InterviewSettings
      apiKey="your_api_key"
      interviewId="1324"
      interviewsettingsopen={interviewSettingsOpen}
      setInterviewSettingsOpen={setInterviewSettingsOpen}
    />
  )
}

export default App

License

This project is licensed under the MIT License.