Skip to content

Getting Started

This guide will help you set up Legend for the first time.

Before you begin, ensure you have:

  • Node.js 20 or later installed
  • npm, pnpm, or yarn package manager
  • A Legend account (sign up at mylegend.io)

Install Legend using your preferred package manager:

Terminal window
# npm
npm install @legend/core
# pnpm
pnpm add @legend/core
# yarn
yarn add @legend/core

Create a legend.config.js file in your project root:

export default {
apiKey: process.env.LEGEND_API_KEY,
environment: 'production',
}
  • Explore the API Reference for detailed documentation
  • Check out Examples for common use cases
  • Review the configuration options in the reference section