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

@paulkinlan/breadboard-utils-kit

v1.1.0

Published

A Kit with useful nodes for Breadboard.

Downloads

2

Readme

"Google Labs Breadboard" Useful nodes by Paul Kinlan Kit

This is a collection of Breadboard nodes that are helpful for building LLM-based (Generative AI) applications.

Installing

This Kit requires Node version >=v19.0.0. To install:

npm install @paulkinlan/breadboard-utils-kit

Node Types

Here are all node handlers that are included in the OpenAI Breadboard Kit

The undefinedGuard node

Takes an input and if the value is defined (!undefined) then outputs the input on the false. If the value is undefined outputs true on "true"

Inputs:

  • input optional. The value to be checked if undefined.

Outputs:

  • true - "true" if the input is undefined.
  • false - value of the input if the input is not undefined.

The headTail node

Takes a list as input and returns the first item as the head, and the rest of the list as tail.

Inputs:

  • input optional. The array to split in to 1 head and the remaining nodes.

Outputs:

  • head - the first item in the list
  • tail - the rest of the input list (slice(1))

Example graph

%%{init: 'themeVariables': { 'fontFamily': 'Fira Code, monospace' }}%%
graph TD;
inputprompt[/"input
id='input-prompt'"/]:::input -- "input->input" --> headTail1["headTail
id='headTail-1'"]
headTail1["headTail
id='headTail-1'"] -- "tail->input" --> undefinedGuard1["undefinedGuard
id='undefinedGuard-1'"]
headTail1["headTail
id='headTail-1'"] -- "head->text" --> output{{"output
id='output'"}}:::output
undefinedGuard1["undefinedGuard
id='undefinedGuard-1'"] -- "false->input" --> headTail1["headTail
id='headTail-1'"]
messageinputprompt[message]:::config -- "message->message" --o inputprompt
classDef default stroke:#ffab40,fill:#fff2ccff,color:#000
classDef input stroke:#3c78d8,fill:#c9daf8ff,color:#000
classDef output stroke:#38761d,fill:#b6d7a8ff,color:#000
classDef passthrough stroke:#a64d79,fill:#ead1dcff,color:#000
classDef slot stroke:#a64d79,fill:#ead1dcff,color:#000
classDef config stroke:#a64d79,fill:#ead1dcff,color:#000
classDef secrets stroke:#db4437,fill:#f4cccc,color:#000
classDef slotted stroke:#a64d79

Which will output [ { text: 1 }, { text: 2 }, { text: 3 }, { text: 4 } ]

The take node

Takes a list as input and returns the first count items.

Inputs:

  • input required, the array to have count items taken from it.
  • count required, the number of items to take from the input array.

Outputs:

  • output - the first count items in the list

The take node

Takes a list as input and removes the first count items.

Inputs:

  • input required, the array to have count items taken from it.
  • count required, the number of items to take from the input array.

Outputs:

  • output - length - count items in the list, starting at count