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.
hs create
Create a new Hyperstack project from a pre-built template. Templates include example stack definitions, client code, and configuration.Usage
Arguments
Project name (creates a directory with this name)If not provided, you’ll be prompted interactively.
Options
Template to use. Available templates:
react-ore- React + TypeScript with ORE token indexerrust-ore- Rust example with ORE token indexer
Use cached templates only (no network)Useful when working without internet connection. Fails if the template isn’t cached.
Force re-download templates even if cachedEnsures you have the latest template version.
Skip installing dependencies after creationBy default,
npm install or cargo build runs automatically.Examples
Interactive Creation
- Project name
- Template selection
Create React Project
Create Rust Project
Offline Mode
Skip Dependency Installation
npm install.
Available Templates
react-ore
A React + TypeScript project with:- ORE token transfer indexer stack
- React frontend with TypeScript SDK
- Real-time transfer visualization
- WebSocket connection handling
- React 18
- TypeScript
- Vite
- hyperstack-react SDK
rust-ore
A Rust project with:- ORE token transfer indexer stack
- Rust client using hyperstack-sdk
- Command-line interface
- Rust 1.70+
- hyperstack-sdk
- tokio for async runtime
Project Structure
After runninghs create my-project --template react-ore:
Template Caching
Templates are cached in:- macOS/Linux:
~/.cache/hyperstack/templates/ - Windows:
%LOCALAPPDATA%\hyperstack\templates\
Clear Cache
Next Steps After Creation
Error Handling
Directory Already Exists
Template Not Found
--template react-ore or --template rust-ore.
Network Error (Offline Mode)
--offline flag to download the template.
Customizing Templates
After creation, you can:- Modify the stack definition in
stacks/*.stack - Update configuration in
hyperstack.toml - Customize the client in
src/
Return Codes
0- Success1- Error (network error, template not found, directory exists, etc.)
Related Commands
hs init- Initialize config for existing stackshs up- Deploy the created stackhs sdk create- Generate SDKs