Installation

Install the LoadStrike package for your language and add it to the test project you already use. This page is the starting point before you write a scenario.

What this page helps you do

What this page helps you do

Install the right LoadStrike package for your SDK and confirm the supported runtime before you write a scenario.

Who this is for

Engineers setting up a first local evaluation or adding LoadStrike to an existing test project.

Prerequisites

  • A supported runtime for your chosen SDK
  • An existing project or repo where the test will live

By the end

Your package installed, your runtime confirmed, and the next step ready.

Choose this path when

Use installation first when you need the exact package name, runtime version, and the shortest path into a runnable scenario.

Visual guide

Sequence diagram showing install, define a GET request step, run the scenario, and review the report.
Installation is the first step in the same flow you will follow through the request-step quick start and report review.

Guide

Choose The Package

Start with the package that matches your language and toolchain: NuGet `LoadStrike`, Go module `loadstrike.com/sdk/go`, Maven `com.loadstrike:loadstrike`, npm `@loadstrike/loadstrike-sdk`, or PyPI `LoadStrike`. The website serves the Go vanity-import metadata behind `loadstrike.com/sdk/go`, so `go get` and pkg.go.dev resolve to the public Go SDK repository.

Check Runtime Support

Make sure the host matches the supported runtime for that SDK. LoadStrike currently supports C#, Go, Java, Python, TypeScript, and JavaScript. Runtime floors are C# on .NET 8+, Go 1.26.5+, Java 17+, Python 3.9.2+, and TypeScript or JavaScript on Node.js 20+. Python 3.9.0 and 3.9.1 users must update to a maintained 3.9 patch before installing the current secure dependency line.

Python Optional Extras

The base PyPI package covers the core SDK. Install `loadstrike[kafka]`, `loadstrike[rabbitmq]`, `loadstrike[nats]`, `loadstrike[redis]`, `loadstrike[eventhubs]`, `loadstrike[sqs]`, or `loadstrike[websocket]` for the matching native client. `loadstrike[all-transports]` installs all six broker clients plus native WebSocket support. Prometheus Remote Write and CloudWatch need `loadstrike[reporting]`; that reporting extra is separate, so projects that need everything can install `loadstrike[all-transports,reporting]`.

Go Compatibility And Validation

Install `loadstrike.com/sdk/go` with Go 1.26.5 or later, import that same public module path, provide a valid runner key, and run the workload from Go code. Normal license validation remains required. If required support is unavailable or incompatible, `Run()` fails before scenario callbacks or workload traffic starts.

Go v0.2.0 Migration

Before using Go SDK v0.2.0, install Go 1.26.5 or later and run `go get loadstrike.com/sdk/[email protected]` before executing workloads. This guidance prepares the migration and does not announce that v0.2.0 has already been published.

Go v0.1.x Support Window

After v0.2.0 is published, the last v0.1.x line remains on security-only support for at least 90 days. The v0.2.0 protocol and capability changes will not be backported to v0.1.x. The retained v0.1.30401 release already requires Go 1.26.5 or later, and release notes will state the exact deprecation window before v0.2.0 is promoted.

After Installation

Once the package is installed, import the LoadStrike types for scenarios, steps, simulations, and runner setup in your language. In Go, that means importing `loadstrike "loadstrike.com/sdk/go"` from the public vanity module path and configuring a valid runner key before execution starts.

Getting started samples

Use these install snippets to verify the exact package names, Go module path, and import surfaces before you start the first scenario in your SDK.

Go users install module loadstrike.com/sdk/go and import it as loadstrike "loadstrike.com/sdk/go". The website serves the vanity-import metadata for that public module path, so go get and pkg.go.dev resolve the GitHub repository automatically. After installation, configure a valid runner key and run the workload from Go code. If the installed SDK cannot prepare a compatible execution environment, it fails before test traffic starts.

If you run these examples locally, add a valid runner key before execution starts. Set it with WithRunnerKey("...") or the config key LoadStrike:RunnerKey.

Install

dotnet add package LoadStrike

Supported Packages

NuGet

Use package `LoadStrike` when you are writing tests in C# on .NET.

Maven

Use package `com.loadstrike:loadstrike` when you are writing tests in Java.

npm

Use package `@loadstrike/loadstrike-sdk` when you are writing tests in TypeScript or JavaScript.

Go modules

Use module `loadstrike.com/sdk/go` with Go 1.26.5 or later. The website serves the vanity-import metadata for that path so the Go toolchain and pkg.go.dev resolve the public repository automatically.

Go compatibility and validation

Use Go 1.26.5 or later, configure a valid runner key, and run workloads directly from Go. Normal license validation remains required. If required support is unavailable or incompatible, `Run()` fails before scenario callbacks or workload traffic starts.

Go v0.2.0 migration

Before using v0.2.0, install Go 1.26.5 or later and run `go get loadstrike.com/sdk/[email protected]`. This is advance migration guidance, not a notice that v0.2.0 is already published.

Go v0.1.x support window

After v0.2.0 is published, the last v0.1.x line remains on security-only support for at least 90 days. The v0.2.0 protocol and capability changes are not backported. The retained v0.1.30401 release already requires Go 1.26.5 or later, and release notes will announce the exact deprecation window before promotion.

PyPI

Use package `LoadStrike` when you are writing tests in Python. The base install contains the core SDK.

Python extras

Install kafka, rabbitmq, nats, redis, eventhubs, sqs, or websocket for that native client. `all-transports` installs those six broker clients plus WebSocket. Prometheus Remote Write and CloudWatch need the separate `reporting` extra, so use `loadstrike[all-transports,reporting]` when both sets are required.

Import surface

After install, import the LoadStrike runtime types for scenarios, steps, simulations, and runner configuration in your language. In Go, use `loadstrike "loadstrike.com/sdk/go"`.

using LoadStrike;