Documentation

Build with SPRAED Platform

> Complete guides, API references, and tutorials to help you build amazing connected systems.

Quick Start Guide

> Get up and running in minutes

1

Install SDK

npm install @spraed/sdk

Install the SPRAED SDK for your preferred language and platform.

2

Initialize

spraed.init(apiKey)

Initialize the SDK with your API key from the dashboard.

3

Connect

spraed.connect(device)

Connect your first device and start building amazing experiences.

Documentation Sections

> Everything you need to build with SPRAED

API Reference

Complete API documentation with examples, parameters, and response formats for all endpoints.

SDK Guides

Language-specific guides for JavaScript, Python, Go, and Rust SDKs with code examples.

Tutorials

Step-by-step tutorials for common use cases, from basic device connection to complex AI workflows.

Concepts

Deep dive into SPRAED's architecture, concepts, and best practices for building scalable systems.

Code Example

> See SPRAED in action

Connect and Control IoT Device

import { SPRAED } from '@spraed/sdk';

// Initialize SPRAED client
const spraed = new SPRAED({
  apiKey: 'your-api-key',
  region: 'us-west-2'
});

// Connect to IoT device
const device = await spraed.devices.connect({
  id: 'smart-thermostat-01',
  type: 'thermostat',
  protocol: 'mqtt'
});

// Create AI agent to monitor temperature
const agent = await spraed.agents.create({
  name: 'temperature-monitor',
  goal: 'maintain optimal temperature',
  devices: [device.id]
});

// Set up event handlers
device.on('temperature-change', (data) => {
  console.log('Temperature:', data.value);
  
  if (data.value > 75) {
    agent.execute('cool-down-room');
  }
});

// Start monitoring
await agent.start();

Start Building Today

> Join thousands of developers building the future