1\. Install the SDK ```sh npm install unleash-client ``` 2\. Run Unleash ```js const { initialize } = require('unleash-client'); const unleash = initialize({ url: '', appName: 'unleash-onboarding-node', customHeaders: { Authorization: '' }, metricsInterval: 5000, }); setInterval(() => { console.log('Is enabled', unleash.isEnabled('')); }, 1000); ``` --- ### Production settings In order to validate the connection, we changed some settings that you might want to revert. We recommend the following default settings. ```js const { initialize } = require('unleash-client'); const unleash = initialize({ url: '', appName: 'unleash-onboarding-node', customHeaders: { Authorization: process.env.UNLEASH_API_KEY }, }); ``` --- ### Additional resources Now that we’ve validated the connection, you might want to look into more advanced use cases and examples: - [SDK repository with documentation](https://github.com/Unleash/unleash-client-node) - [Node.js SDK example with CodeSandbox](https://github.com/Unleash/unleash-sdk-examples/tree/main/NodeJS) - [Node.js SDK tutorial](https://dev.to/reeshee/how-to-implement-feature-flags-in-nodejs-using-unleash-3907)