Note: This library is in pre-release mode and may not be stable.

Installation

npm install galileo

Initialization/Authentication

You can configure Galileo using environment variables:
# Galileo Environment Variables

# Your Galileo API key
GALILEO_API_KEY=your-galileo-api-key

# Your Galileo project name
GALILEO_PROJECT=your-galileo-project-name

# The name of the log stream you want to use for logging
GALILEO_LOG_STREAM=your-galileo-log-stream 

# Provide the console url below if you are using a
# custom deployment, and not using the free tier, or app.galileo.ai.
# This will look something like “console.galileo.yourcompany.com”.
# GALILEO_CONSOLE_URL=your-galileo-console-url
If you are using the free version of Galileo, there is no need to set the GALILEO_CONSOLE_URL environment variable.
In Node.js, you can use process.env to specify these variables:
process.env.GALILEO_API_KEY = "your-api-key";
process.env.GALILEO_PROJECT = "your-project";
process.env.GALILEO_LOG_STREAM = "your-log-stream";
process.env.GALILEO_CONSOLE_URL = "your-console-url";