npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@eterna-hybrid-exchange/cli

v0.2.1

Published

Eterna CLI — execute trading strategies from your terminal

Downloads

443

Readme

eterna

CLI for Eterna Exchange — execute AI trading strategies from your terminal.

Install

npx @eterna-hybrid-exchange/cli --help

Or install globally:

npm install -g @eterna-hybrid-exchange/cli

Quick Start

# Authenticate (opens browser or shows device code for SSH)
npx @eterna-hybrid-exchange/cli login

# Execute a strategy file
npx @eterna-hybrid-exchange/cli execute strategy.ts

# Pipe code via stdin
echo 'const balance = await eterna.getBalance(); return balance;' | npx @eterna-hybrid-exchange/cli execute -

# Check balance and positions
npx @eterna-hybrid-exchange/cli balance
npx @eterna-hybrid-exchange/cli positions

# Browse the SDK
npx @eterna-hybrid-exchange/cli sdk --search "place order"
npx @eterna-hybrid-exchange/cli sdk --detail full

Commands

| Command | Description | | ----------------------- | ------------------------------------------------- | | eterna login | Authenticate with Eterna (browser or device code) | | eterna logout | Remove stored credentials | | eterna execute <file> | Execute TypeScript in the Eterna sandbox | | eterna sdk | Browse SDK method reference | | eterna balance | Get account balance (shortcut) | | eterna positions | Get open positions (shortcut) |

Authentication

The CLI supports two authentication flows, auto-detected based on your environment:

  • Browser flow: Opens your default browser for Google OAuth (used when running locally)
  • Device code flow: Shows a URL and code to enter in any browser (used over SSH or with --no-browser)

Credentials are stored in ~/.eterna/credentials.json and auto-refreshed when expired.

Configuration

Config is stored in ~/.eterna/config.json:

{
  "endpoint": "https://ai-api.eterna.exchange"
}

Override the config directory with the ETERNA_CONFIG_DIR environment variable.

Environment Variables

| Variable | Description | Default | | -------------------- | --------------------------------------------------------------------------------------------- | --------------------------------- | | ETERNA_ENDPOINT | API endpoint URL | https://ai-api.eterna.exchange | | ETERNA_AUTH_ISSUER | OAuth authorization server URL | https://ai-auth.eterna.exchange | | ETERNA_MCP_URL | MCP gateway URL | https://mcp.eterna.exchange | | ETERNA_CONFIG_DIR | Config/credentials directory | ~/.eterna | | ETERNA_MCP_KEY | Legacy mcp-gateway API key — if set, eterna login links it to your OAuth identity automatically, preserving your existing Bybit subaccount | (none) |

License

MIT