This client provides a JavaScript interface for integrating Node.js applications with the BrowserStack platform. It offers programmatic access to various BrowserStack APIs, including the general REST API, the Automate API for WebDriver-based testing, the App Automate API for mobile application testing, and the Screenshots API for generating cross-browser screenshots. Developers can use it to manage virtual browsers, define testing workers, administer projects and builds, and query session information directly from their Node.js environment. As of April 2026, the package's current stable version is 1.6.1, last updated in February 2019. This indicates the project is effectively abandoned, lacking any ongoing maintenance, feature development, or security updates. Its primary differentiator was providing a unified Node.js client across multiple BrowserStack services at the time of its last release. However, due to its outdated nature, users are strongly advised to seek more recent and officially maintained BrowserStack SDKs or alternatives for robust and secure integrations. It exclusively supports CommonJS module loading.
npm install browserstackVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to initialize clients for BrowserStack's REST and Automate APIs and fetch available browsers using a CommonJS setup. It highlights credential usage and basic API calls.
Migrate to the official BrowserStack Node.js SDK (if available) or another actively maintained client library. Review the official BrowserStack documentation for current integration methods.
Ensure your project uses CommonJS for files importing this library (`.js` files with `type: commonjs` or no `type` field in `package.json`). If you must use ESM, consider dynamic `import()` or find an alternative library.
Test thoroughly on your target Node.js version. If issues arise, consider pinning an older Node.js version for your project or, preferably, migrating to a modern, supported BrowserStack client.
Consult the official BrowserStack API documentation to verify current API endpoints, request/response formats, and authentication mechanisms. If discrepancies exist, direct API calls or an updated client will be necessary.
Run `npm install browserstack` to add the package to your project's dependencies.
Verify your BrowserStack username and access key in your account settings. Ensure they are correctly passed to `BrowserStack.createClient()` and its variants.
Ensure you are using `const BrowserStack = require('browserstack');` for import. Also, double-check that you are calling the method correctly, as case sensitivity matters.Add error handling to the client creation calls (e.g., `BrowserStack.createClient(credentials, function(error, client) { ... });`) or ensure `browserStackCredentials` are valid.No dependency data recorded yet.