
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@paulkinlan/breadboard-utils-kit
Advanced tools
This is a collection of Breadboard nodes that are helpful for building LLM-based (Generative AI) applications.
This Kit requires Node version >=v19.0.0. To install:
npm install @paulkinlan/breadboard-utils-kit
Here are all node handlers that are included in the OpenAI Breadboard Kit
undefinedGuard
nodeTakes 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"
input
optional. The value to be checked if undefined.true
- "true" if the input is undefined
.false
- value of the input if the input is not undefined
.headTail
nodeTakes a list as input
and returns the first item as the head, and the rest of the list as tail.
input
optional. The array to split in to 1 head and the remaining nodes.head
- the first item in the listtail
- the rest of the input list (slice(1)
)%%{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 } ]
take
nodeTakes a list as input
and returns the first count
items.
input
required, the array to have count
items taken from it.count
required, the number of items to take from the input array.output
- the first count
items in the listtake
nodeTakes a list as input
and removes the first count
items.
input
required, the array to have count
items taken from it.count
required, the number of items to take from the input array.output
- length
- count
items in the list, starting at count
FAQs
A Kit with useful nodes for Breadboard.
The npm package @paulkinlan/breadboard-utils-kit receives a total of 0 weekly downloads. As such, @paulkinlan/breadboard-utils-kit popularity was classified as not popular.
We found that @paulkinlan/breadboard-utils-kit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.