Struktur

Installation

Install the Struktur TypeScript SDK.

npm install @struktur/sdk
bun add @struktur/sdk

Peer dependency: typescript ^5.

The package exports all types, functions, and strategy factories from the entrypoint. The @ai-sdk/anthropic, @ai-sdk/google, @ai-sdk/openai, and @openrouter/ai-sdk-provider packages are bundled as dependencies — you do not need to install them separately.

Exports

// Main function
import { extract } from "@struktur/sdk";

// Strategy factories
import { simple, parallel, sequential, parallelAutoMerge, sequentialAutoMerge, doublePass, doublePassAutoMerge } from "@struktur/sdk";

// Artifact helpers
import { parse, fileToArtifact, urlToArtifact } from "@struktur/sdk";

See also

On this page