Skip to content

hyperstack-server

hyperstack-server is a Rust crate that lets you run your compiled stack as a standalone WebSocket server. It connects to a Yellowstone gRPC endpoint, processes Solana data through your projections, and streams the results to connected clients.

To run a stack with hyperstack-server, you need:

RequirementDescription
Yellowstone gRPC EndpointA URL to a Solana node running the Yellowstone Geyser plugin. This is your source of blockchain data.
X-TokenAuthentication token for your Yellowstone provider (most providers require this).
Rust 1.75+Required to build the server binary.
A compiled stackYour stack crate with the #[hyperstack(...)] macro, which generates a spec() function.

hyperstack-server reads configuration from environment variables:

VariableRequiredDescription
YELLOWSTONE_ENDPOINTYesYour Yellowstone gRPC endpoint URL
YELLOWSTONE_X_TOKENUsuallyAuthentication token for the endpoint

Use hyperstack-server when:

  • Developing and testing stacks locally
  • Running a single stack in your own infrastructure
  • You need full control over the server deployment
  • You already have Yellowstone gRPC access

Consider Hyperstack Cloud when:

  • You need multi-stack orchestration
  • You want managed Yellowstone infrastructure
  • You need built-in authentication and API keys
  • You prefer zero-config deployment