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 implementationsdatastar-sdk-config.json- SDK configuration with constants and defaultsdatastar-sdk-config.schema.json-v1.json- JSON schema for configuration validationADR.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
- Read the Architecture Decision Record for SDK specifications
- Use
datastar-sdk-config.jsonas your source of constants - Implement the required
ServerSentEventGeneratorinterface - 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.