Asterisms JS SDK Backend
The Asterisms JS SDK Backend provides a comprehensive server-side solution for building applications within the Asterisms ecosystem. It offers services for authentication, storage, registration, notifications, and more.
Quick Start
import { createSvelteKitBackendSDK } from '@asterisms/sdk-backend';
import { createFetchAdapter } from '@asterisms/sdk-backend';
const provider = createSvelteKitBackendSDK({
env: process.env,
building: false,
httpFactory: createFetchAdapter(fetch),
registrationData: {
bundleId: 'com.example.app',
capabilities: ['FRONTEND_WEBSITE'],
description: 'My Asterisms Application',
name: 'My App',
subdomain: 'myapp',
title: 'My App'
}
});
// Boot the SDK
await provider.bootSDK();
// Use the SDK
const sdk = provider.sdk;
const auth = sdk.authorization();
const storage = sdk.storage();
Documentation Structure
Key Features
- π Authentication: Built-in user authentication and authorization
- πΎ Storage: Secure data storage and retrieval
- π Notifications: User and workspace notifications
- π Registration: App registration and service discovery
- π‘οΈ Middleware: Express middleware for common patterns
- π― Controllers: Pre-built API controllers
- π Discovery: Service discovery and ecosystem communication
- π Logging: Structured logging and monitoring
- β‘ Performance: Optimized for production use
Architecture
The SDK Backend follows a service-oriented architecture where each service provides specific functionality:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Asterisms Backend SDK β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Authorization β Storage β Notifications β Registration β
β Service β Service β Service β Service β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Discovery β Info β Logging β Middleware β
β Service β Service β Service β & Controllersβ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Common Core β
β (HTTP, Types, Utilities) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Getting Help
- Documentation: Browse the guides and API reference
- Examples: Check the examples directory for working code
- Issues: Report issues on the project repository
- Community: Join the Asterisms developer community
Next Steps
- Get Started - Set up your first backend service
- Core Concepts - Learn the fundamental concepts
- Examples - Explore working examples
- API Reference - Dive into the complete API