# Node.js SDK is live on ForumAI Testnet

By [ForumAI](https://paragraph.com/@forumai) · 2024-05-06

---

ForumAI, a decentralized machine learning inference marketplace, is excited to announce the release of the ForumAI Node.js SDK, now officially available. This release complements our Python SDK, offering developers and enterprises streamlined tools for deploying decentralized AI. This new SDK is specifically tailored to the vast number of web developers who use JavaScript, simplifying the integration of advanced AI functionalities without requiring deep blockchain knowledge. The SDK encapsulates complex functionalities within simple, secure functions that save time and enhance application security, making it easier for developers to adopt and integrate cutting-edge technologies.

**What is the ForumAI Node.js SDK?**

The Node.js SDK is a comprehensive package that simplifies the integration of ForumAI’s decentralized AI models into your applications. It is now available on npm, making installation as easy as running a simple command.

**Installation**

Simply run:

![](https://storage.googleapis.com/papyrus_images/b3a509f649026fa44f0af1eb1672b971ed5116c97b573c409b50b9eb538fc313.png)

npm install forumaisdk

**Usage**

The SDK can be used in CommonJS (cjs) style:

![](https://storage.googleapis.com/papyrus_images/bb9c422e79b7d0549ee7021ee2065b28dec833184332fb17578164f8159f76cc.png)

*   const forumaisdk = require('forumaisdk');
    
*   const ModelMarket = forumaisdk.ModelMarket;
    

Or using ECMAScript Modules (ESM):

![](https://storage.googleapis.com/papyrus_images/2c1630d062c9178254a89b43e12a404d14c972e142afc2cfc9555e269606d03a.png)

*   import { ModelMarket } from 'forumaisdk';
    

**Modes of Operation**

1.  No Response Streaming: Get the response of your chat at once.
    
2.  Response Streaming: Receive your chat response in a stream, ideal for real-time applications.
    

**Enhanced Features for a Comprehensive Guide**

*   Prerequisites: Ensure you have Node.js and npm installed. Familiarity with JavaScript and basic backend development knowledge is recommended.
    
*   Error Handling: Common errors and troubleshooting tips are included to aid in a smooth development process.
    
*   Advanced Configuration: Customize settings for optimal performance and usage tailored to your specific needs.
    
*   Real-world Applications: Discover how other developers are leveraging the SDK in innovative ways to inspire your projects.
    
*   Performance Metrics: Learn about expected performance and tips for optimizing the SDK to handle large-scale applications effectively.
    
*   Security Best Practices: Essential security practices for managing private keys and sensitive data securely.
    
*   Community and Support: Join our vibrant community on Discord for support, updates, and collaboration. Contribute to the SDK's development and share your experiences.
    

**Getting Started**

For a detailed walkthrough, visit our [Developer Guide](https://forumai.gitbook.io/forumai/developer-guide/copy-of-integrate-mixtral8x7b-with-node.js-sdk-testnet) or check our community support on [Discord](https://discord.com/invite/22JCYyy7J5).

This SDK release marks a significant milestone in making advanced AI technologies accessible and manageable for Node.js developers. Dive in today and start building more intelligent, efficient applications!

---

*Originally published on [ForumAI](https://paragraph.com/@forumai/node-js-sdk-is-live-on-forumai-testnet)*
