Skip to content

Server Status ​

No token needed Runs nightly against live ESI

Quick check that the ESI API is reachable and the EVE server is online. This is the simplest possible example — no parameters, no auth.

Calls: status.getStatus

Run it ​

bash
git clone https://github.com/lgriffin/ESI.ts.git && cd ESI.ts
npm ci
npm run example:status

examples/status.ts on GitHub. The imports below are written as a consumer of the package writes them; the file in the repository imports from ../src.

Source ​

ts
import { EsiClient } from '@lgriffin/esi.ts';
import { createConsoleLogger } from '@lgriffin/esi.ts';

// The program's own output. The client logs through the same console sink
// at ESI_LOG_LEVEL (default warn), so its diagnostics stay out of the way.
const log = createConsoleLogger('info');
const esiLog = createConsoleLogger();

async function main() {
  const client = new EsiClient({ logger: esiLog });

  try {
    const status = await client.status.getStatus();
    log.info('EVE Server Status');
    log.info('-'.repeat(40));
    log.info(`  Players online: ${status.players.toLocaleString()}`);
    log.info(`  Server version: ${status.server_version}`);
    log.info(`  Start time:     ${status.start_time}`);
    if (status.vip) log.info('  VIP mode:       ACTIVE');
    log.info('\nESI is reachable and working.');
  } catch (err) {
    log.error('Failed to reach ESI', { error: err });
    process.exit(1);
  } finally {
    await client.shutdown();
  }
}

main();

Released under the GPL-3.0-or-later license.