orbita-downloader
v1.0.3
Published
A utility to download and manage Orbita browser for GoLogin.
Maintainers
Readme
Orbita Downloader
A simple Node.js module to download and manage the Orbita browser, a dependency for GoLogin.
This module automates the process of fetching the latest version of the Orbita browser, downloading it, and placing it in the correct directory for GoLogin to use.
Installation
npm install orbita-downloaderUsage
To download and install the latest version of the Orbita browser, simply run the main script:
node node_modules/orbita-downloader/index.mjsYou can also integrate it into your own scripts:
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const BrowserChecker = require('orbita-downloader/browser-checker.cjs');
async function setupOrbita() {
const bc = new BrowserChecker();
try {
console.log('Checking for Orbita browser...');
await bc.checkBrowser({ autoUpdateBrowser: true });
const exePath = bc.getOrbitaPath;
console.log('Orbita is ready at:', exePath);
} catch (err) {
console.error('Orbita setup failed:', err?.message || err);
process.exit(1);
}
}
setupOrbita();Features
- Automatically detects the correct operating system (Linux, macOS, Windows).
- Fetches the latest browser version information from the official servers.
- Downloads, extracts, and verifies the browser build.
- Provides the executable path for integration with other tools.
