Documentation Index
Fetch the complete documentation index at: https://mintlify.com/hypertekorg/hyperstack/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Hyperstack provides SDKs for multiple languages. Choose the package that matches your application:Rust
High-performance client for Rust applications
TypeScript
Framework-agnostic SDK for Node.js and browsers
React
React hooks for easy integration
Python
Python client (work in progress)
Rust
The Rust SDK provides the highest performance option with full type safety.Install via Cargo
Add to yourCargo.toml:
Cargo.toml
Package features
Thehyperstack crate is an umbrella package that re-exports all components:
Cargo.toml
| Feature | Components | Use case |
|---|---|---|
default | interpreter, macros, server | Building stacks |
full | interpreter, macros, server, sdk | Everything |
sdk | Client SDK only | Client applications |
interpreter | AST runtime | Custom integrations |
macros | Stream definition macros | Stack development |
server | WebSocket server | Self-hosted deployments |
Individual packages
You can also install components individually:Install CLI
The Hyperstack CLI is used for deploying stacks and generating SDKs:TLS options
By default, the SDK usesrustls for TLS. Switch to native TLS if needed:
Cargo.toml
Example usage
main.rs
TypeScript
The TypeScript SDK is framework-agnostic and works with Node.js, Vue, Svelte, or vanilla JavaScript.Install via npm
Requirements
- Node.js 16.0.0 or higher
- TypeScript 5.0 or higher (for TypeScript projects)
Dependencies
The package includes these dependencies:pako- Compression supportzod- Runtime type validation
Example usage
main.ts
Module formats
The package supports both ESM and CommonJS:React
The React SDK provides hooks and components for easy integration with React applications.Install via npm
Requirements
- Node.js 16.0.0 or higher
- React 18.0.0 or 19.0.0
- Zustand 4.0.0 or 5.0.0 (peer dependency)
Peer dependencies
The React SDK requires these peer dependencies:package.json
Included dependencies
The package automatically includes:hyperstack-typescript- The core TypeScript SDKzustand- State management (also required as peer dependency)
Example usage
App.tsx
Using with Next.js
For Next.js applications, ensure the SDK is imported client-side:Relationship with hyperstack-typescript
The React SDK depends on and re-exports the core TypeScript SDK. You can import from either package:Python
Requirements
- Python 3.9 or higher
Install from source
For development and testing, you can install from source:Planned features
- Real-time WebSocket streaming
- Solana program state subscriptions
- Async/await support
- Type hints with Pydantic
Example usage (preview)
The Python SDK API is subject to change before the initial release. Check the GitHub repository for the latest updates.
Generating SDKs
Once you have a stack deployed, you can generate type-safe SDKs using the Hyperstack CLI.Prerequisites
Install the CLI (Rust required):Generate TypeScript SDK
./generated/my-stack-stack/.
Generate Rust SDK
Cargo.toml:
Cargo.toml
SDK structure
Generated SDKs include:- Type definitions: Structs and schemas for all entities
- View accessors: Typed methods for accessing views
- Entity traits: Implementations for streaming and querying
Version compatibility
All Hyperstack packages follow synchronized versioning:Client SDKs are forward-compatible with minor version bumps. Server version 0.5.x works with client versions 0.5.0 through 0.5.x.
Next steps
Quickstart
Build your first Hyperstack application
CLI Reference
Learn how to deploy and manage stacks
Core Concepts
Understand stacks, views, and projections
Stack API
Explore the complete API reference