Getting Started
This guide will help you set up Legend for the first time.
Prerequisites
Section titled “Prerequisites”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)
Installation
Section titled “Installation”Install Legend using your preferred package manager:
# npmnpm install @legend/core
# pnpmpnpm add @legend/core
# yarnyarn add @legend/coreConfiguration
Section titled “Configuration”Create a legend.config.js file in your project root:
export default { apiKey: process.env.LEGEND_API_KEY, environment: 'production',}Next Steps
Section titled “Next Steps”- Explore the API Reference for detailed documentation
- Check out Examples for common use cases
- Review the configuration options in the reference section