
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
rainbird-api
Advanced tools
A promise-based wrapper around the Rainbird API
Requires Node v8.11.0 or later.
npm install rainbird-api --save
const rb = require('rainbird-api')
// Start a new session
const session = new rb.Session(apiKey)
await session.start(knowledgeMapId)
await session.query({
subject: 'John',
relationship: 'speaks'
})
// > { question: { prompt: 'Where does John live?', ... } }
// Inject facts
await session.inject({
subject: 'Sam',
relationship: 'lives in',
object: 'France'
})
// Respond with a fact
const { facts } = await session.respond({
subject: 'John',
relationship: 'lives in',
object: 'England'
})
// Get an evidence tree object by calling audit on the answer.
await facts[0].audit()
Context is supported but supplying a contextId option when creating a new Session eg.
const session = new rb.Session({
apiKey: API_KEY,
contextId: '123'
})
Session.response and Session.query can return either questions or facts (answers)
Clone and install dependencies
git clone https://github.com/tom-sherman/rainbird-api-js
cd rainbird-api-js
npm install
You must set the following environment variables to be able to run tests:
RB_API_KEY - A valid Rainbird API key.RB_HELLOWORLD_KMID - A "Hello World" knowledge map.These can be placed in a .env file for convenience.
FAQs
Promise based wrapper for the Rainbird API.
We found that rainbird-api 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.