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

  1. Get Started - Set up your first backend service
  2. Core Concepts - Learn the fundamental concepts
  3. Examples - Explore working examples
  4. API Reference - Dive into the complete API