
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@breadboard-ai/build
Advanced tools
JavaScript library for building boards and defining new node types for the Breadboard AI prototyping library
The Breadboard Build API allows you to design and compose boards with TypeScript.
It is an alternative to the Visual Editor, designed for users who prefer a code-first approach to working with Breadboard.
Boards that you create with the Build API can be serialized to BGL (Breadboard Graph Language), which can then be executed directly, or imported into the Visual Editor.
npm i @breadboard-ai/build
Please refer to the Build API section of the Breadboard Documentation site for full documentation.
import { board, input, output } from "@breadboard-ai/build";
import { prompt } from "@google-labs/template-kit";
import { geminiText } from "@google-labs/gemini-kit";
const topic = input({
description: "What should the poem be about?",
examples: ["Coffee in the morning", "The mind of a cat"],
});
const stanzas = input({
type: "number",
description: "How many stanzas should the poem have?",
default: 4,
});
const poemPrompt = prompt`
Write a poem about ${topic} with ${stanzas} stanzas.`;
const poemWriter = geminiText({
text: poemPrompt,
model: "gemini-1.5-flash-latest",
});
const poem = output(poemWriter.outputs.text, {
title: "Poem",
description: "The poem that Gemini generated.",
});
export default board({
id: "poem-writer",
title: "Poem Writer",
description: "Write a poem with Gemini.",
inputs: { topic, stanzas },
outputs: { poem },
});
FAQs
JavaScript library for building boards and defining new node types for the Breadboard AI prototyping library
We found that @breadboard-ai/build demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.