Advanced iMessage Kit SDK
Advanced iMessage Kit is a powerful TypeScript SDK that provides comprehensive control over iMessage on macOS. Build sophisticated messaging automation, chatbots, and integrations with a modern, event-driven API.Messages & Events
Send and receive messages in real-time with typed event handlers for new messages, reactions, read receipts, and typing indicators.
Chat Management
Create group chats, manage participants, set chat names and icons, and query chat history with powerful filtering.
Rich Media
Send attachments, audio messages, contact cards, stickers, and message effects like screen effects and bubble animations.
Advanced Features
Access polls, scheduled messages, tapbacks, message editing, FaceTime integration, and FindMy location services.
Key Features
Real-Time Message Processing
Built on Socket.IO for reliable, low-latency message delivery with automatic reconnection and message recovery:- Event-driven architecture with typed event handlers
- Automatic deduplication prevents message loops
- Sequential message queue ensures delivery order
- Reconnection with missed message recovery
Comprehensive API Modules
The SDK is organized into specialized modules for different iMessage capabilities:- Messages - Send, receive, edit, and query messages
- Chats - Manage conversations and group chats
- Attachments - Handle media files and downloads
- Contacts - Access contact information
- Polls - Create and respond to polls
- FaceTime - Initiate and manage calls
- iCloud - FindMy location services
- Server - Server management and diagnostics
Type Safety
Fully typed with TypeScript for excellent IDE support:Use Cases
Chatbots & AI Assistants
Build intelligent chatbots that respond to messages with context-aware replies using AI integration.
Automation & Workflows
Automate repetitive messaging tasks, scheduled notifications, and trigger actions based on received messages.
Analytics & Monitoring
Track message metrics, analyze conversation patterns, and monitor team communications.
Integrations
Connect iMessage with external services, CRMs, support systems, and custom applications.
Architecture
The SDK consists of two components:- Server - A macOS application that interfaces with the Messages app database and handles message sending
- SDK Client - This npm package that connects to the server via HTTP and WebSocket
The SDK requires a macOS system running the Advanced iMessage Kit server application. The server handles the actual iMessage integration while the SDK can run on any platform that supports Node.js 18+.
Next Steps
Installation
Install the SDK with npm, yarn, pnpm, or bun
Quick Start
Get started with a working example in 5 minutes
Configuration
Configure the SDK client for your environment
API Reference
Explore the complete API documentation