Documentation
Getting Started
1 min read·Updated Mar 23, 2026
This guide walks you through setting up your first project from scratch.
Step 1: Create a new project#
Start by creating a new directory for your project:
mkdir my-project
cd my-project
npm init -yStep 2: Install dependencies#
Install the required packages:
npm install my-packageStep 3: Configure your environment#
Create a .env file in your project root:
API_KEY=your-api-key-here
Step 4: Write your first script#
Create an index.js file with the following content:
const { createClient } = require('my-package')
async function main() {
const client = createClient({
apiKey: process.env.API_KEY
})
const result = await client.hello()
console.log('Success!', result)
}
main()What's next?#
Congratulations! You've set up your first project. Here are some next steps:
- Explore more examples
- Learn about advanced configuration