Skip to main content

Installation

Struktur is available as an npm package and can be installed with your preferred package manager.

Package manager

npm install @mateffy/struktur

Prerequisites

Struktur requires the following peer dependencies:
  • TypeScript ^5.0.0 or higher
  • Node.js or Bun runtime
Struktur is built with Bun and works seamlessly in Bun environments. It also supports Node.js runtimes.

AI SDK providers

Struktur uses the Vercel AI SDK for LLM integrations. You’ll need to install at least one provider based on which models you plan to use:
npm install @ai-sdk/anthropic
You can install multiple providers if you want to use different models for extraction, merging, and deduplication.

Verify installation

Create a simple test file to verify Struktur is installed correctly:
test.ts
import { extract, simple } from "@mateffy/struktur";
import { google } from "@ai-sdk/google";

console.log("Struktur is installed!");
bun run test.ts
If the script runs without errors, you’re ready to start extracting structured data.

Next steps

Quick start

Build your first extraction workflow with Struktur

Build docs developers (and LLMs) love