Installation
Get started with Myxara in minutes using the official JavaScript/TypeScript SDK or REST API.
JavaScript/TypeScript SDK
npm
bash
npm install @myxara/sdk-jsyarn
bash
yarn add @myxara/sdk-jsbun
bash
bun add @myxara/sdk-jsRequirements
- Node.js 18+ or Bun 1.0+
- TypeScript 5.0+ (optional but recommended)
Using the REST API
No installation needed! The REST API works with any HTTP client:
bash
curl -X POST https://api.myxara.ai/v1/inboxes \
-H "Authorization: Bearer mx_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"local_part": "support",
"name": "Support Agent"
}'Get an API Key
- Sign up at myxara.ai
- Create an API key in the dashboard
- Save the key - you won't be able to see it again!
Self-Hosting
Want to run Myxara on your own infrastructure?
Prerequisites
Quick Setup
bash
# Clone the repository
git clone https://github.com/myxara/myxara.git
cd myxara
# Install dependencies
bun install
# Set up environment variables
cp .env.example .env
# Edit .env with your Supabase and AWS credentials
# Initialize the database
# Run migrations in your Supabase SQL editor
# Start the API server
cd api && bun dev
# Start the frontend
bun devFor detailed self-hosting instructions, see the main README.
Verify Installation
Test that the SDK is working:
typescript
import { MyxaraClient } from '@myxara/sdk-js'
const client = new MyxaraClient({
apiKey: 'mx_your_api_key'
})
// Test connection
const inboxes = await client.inboxes.list()
console.log(`Connected! You have ${inboxes.data.length} inboxes.`)Next Steps
- Quick Start - Create your first inbox
- Authentication - Learn about API keys and scopes
- Examples - See complete code examples