Datastar SDK Directory

August 1, 2025 ยท View on GitHub

This directory contains the SDK test suite and related tools for Datastar SDK development.

Structure

  • tests/ - Comprehensive test suite for validating SDK implementations
  • datastar-sdk-config.json - SDK configuration with constants and defaults
  • datastar-sdk-config.schema.json-v1.json - JSON schema for configuration validation
  • ADR.md - Architecture Decision Record for SDK specifications

SDK Development

Configuration

The SDK configuration system provides:

  • Constants: Event types, element patch modes, and other enums
  • Defaults: Default values for booleans and durations
  • Literals: List of known dataline literals
  • JSON Schema: Validation for the configuration format

Creating a New SDK

  1. Read the Architecture Decision Record for SDK specifications
  2. Use datastar-sdk-config.json as your source of constants
  3. Implement the required ServerSentEventGenerator interface
  4. Validate your implementation using the test suite

Official SDKs

Official SDKs can be found at the Datastar website.

Support

For SDK-specific issues, please open an issue in the respective SDK repository. For general Datastar questions or cross-SDK concerns, use the main Datastar repository.