Dành cho developers. SDKs, API endpoints, architecture diagrams,
và integration guides cho UX Master platform.
RESTful API • GraphQL Support • WebSocket Real-time • Multi-language SDKs
Quick Start
Cài đặt SDK, authenticate, và gọi API đầu tiên trong vòng 5 phút.
# Node.js
npm install @uxmaster/sdk
# Python
pip install uxmaster-sdk
# Go
go get github.com/uxmaster/sdk-go
import { UXMaster } from '@uxmaster/sdk';
const client = new UXMaster({
apiKey: 'uxm_live_...',
environment: 'production'
});
const design = await client.design.generate({
style: 'glassmorphism',
industry: 'fintech',
platform: 'web'
});
console.log(design.tokens);
API Reference
Complete API reference với OpenAPI 3.1 specification. Tất cả endpoints đều có versioning và backward compatibility.
/v1/design/generate
Generate design system từ parameters
{
"style": "glassmorphism",
"industry": "fintech",
"platform": "web",
"dark_mode": true,
"accessibility": "wcag-aaa"
}
/v1/ux-laws
Lấy danh sách 48 UX Laws
?category=perception
?category=gestalt
?category=hicks-law
?applicable_to=mobile
{
"laws": [
{
"id": "hicks-law",
"name": "Hick's Law",
"principle": "Decision time ↑ with options"
}
]
}
/v1/design/validate
Chạy 37 design tests trên UI
{
"html_url": "https://example.com/page",
"tests": ["contrast", "responsive", "a11y"],
"device_profile": "mobile-ios"
}
/v1/palettes/{id}
Lấy color palette theo ID
{
"id": "violet-sunset",
"colors": {
"primary": "#7c3aed",
"secondary": "#ec4899",
"accent": "#10b981"
},
"tokens": { "css": "...", "scss": "..." }
}
System Architecture
Microservices architecture với event-driven design, auto-scaling, và multi-region deployment.
Clients
Web, Mobile, CLI
API Gateway
Rate Limit, Auth
Design Engine
UX Validator
Storage
PostgreSQL, Redis
Kong + Traefik
Rate limiting, caching
Node.js + Go
gRPC + REST
PostgreSQL 15
Read replicas
Redis Cluster
Sub-millisecond
SDKs & Integration
Official SDKs cho tất cả major platforms. Type-safe, fully documented, với auto-retry và error handling.
TypeScript ready
npm install @uxmaster/sdk
Async support
pip install uxmaster-sdk
High performance
go get github.com/uxmaster/sdk-go
Memory safe
[dependencies]
uxmaster = "0.9.1"
Laravel ready
composer require uxmaster/sdk-php
Rails integration
gem 'uxmaster-sdk', '~> 1.2'
Real-time Events
Nhận real-time notifications khi design được generate, validation hoàn thành, hoặc system events.
{
"event": "design.generated",
"timestamp": "2025-01-15T10:30:00Z",
"data": {
"design_id": "des_123abc",
"status": "completed",
"tokens_url": "https://api..."
}
}
design.generated
design.validated
palette.created
webhook.retrying
Open Source
UX Master là open source. Đóng góp, report issues, hoặc join discussion với cộng đồng.
1.2k+ stars
Bug reports
Q&A, Ideas
PR welcome
Tạo tài khoản miễn phí, lấy API key, và bắt đầu tích hợp UX Master vào ứng dụng của bạn ngay hôm nay.