--- title: "Platform JS SDK" slug: "platform-js-sdk" updated: 2025-03-07T20:01:16Z published: 2025-03-07T20:01:16Z canonical: "help.unleash.so/platform-js-sdk" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.unleash.so/llms.txt > Use this file to discover all available pages before exploring further. # Platform JS SDK We provide a ready to use SDK library for the Platform API in NodeJS #### Installation ```bash npm install @unleash-tech/platform-sdk ``` #### **Quickstart** The following sample code will perform a search and chat query on behalf of “myuser” using a specified assistant. ```javascript var unleash = require('@unleash-tech/platform-sdk') var client =    new unleash.ApiClient({        token:'',        // OPTIONAL: only needed for impersonating api keys        account:'myuser@acme.com'        // OPTIONAL: only needed for private/self hosted env        tenant: 'https://unleash.acme.com/'    });     var assistant = client.assistants.withId(''); // SEARCH var searchResponse = await assistant.search({    query:'my notion page',    filters:{appId:['notion']} }} console.log(`Found ${searchResponse.totalResults} results`); for ( let r of searchResponse.result ) console.log(searchResponse.result.resource.name); // CHAT blocking-mode var chatResponse = await assistant.chat({ messages:[{role:'User',text:'how to use go links'}] }).complete(); console.log(chatResponse.message); // CHAT streaming-mode var chatResponse = await assistant.chat({ messages:[{role:'User',text:'how to use go links'}] }).stream(); for await ( let event of chatResponse) console.log(event); ```