@streame/flybridge
v0.1.0
Published
A JavaScript framework to build AI apps in a flash with the latest platform features. Read the [getting started guide](https://www.flybridgeai.com/docs/getting-started#js) to set-up and run your first Flybridge app.
Downloads
273
Readme
Flybridge AI
A JavaScript framework to build AI apps in a flash with the latest platform features. Read the getting started guide to set-up and run your first Flybridge app.
Read the documentation to explore the basic and advanced concepts of Flybridge for JavaScript.
Setup
npm install @streame/flybridge
Initialization
Create an app by calling the constructor, which is a top-level export.
const { App } = require("@streame/flybridge");
const app = new App({
developmentToken: process.env.AGENT_AI_APP_ID,
});
/* Add functionality here */
(async () => {
// Start the app
await app.start();
})();
Listening for events
// Listen for a chat message
app.onMessage(fn);