New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@aibind/svelte

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aibind/svelte

AI SDK bindings for Svelte 5 — reactive streaming, structured output, and agents

latest
Source
npmnpm
Version
0.12.0
Version published
Maintainers
1
Created
Source

@aibind/svelte

Low-level Svelte 5 reactive classes for AI streaming. If you're using SvelteKit, use @aibind/sveltekit instead — it wraps this package with sensible defaults, server handlers, and remote functions.

Install

npm install @aibind/svelte ai svelte

Using SvelteKit? Install @aibind/sveltekit instead — it includes this package and adds server handlers, default endpoints, and remote functions.

Usage

This package requires you to specify an endpoint for every class. For SvelteKit projects, @aibind/sveltekit provides defaults automatically.

<script lang="ts">
  import { Stream } from "@aibind/svelte";

  const stream = new Stream({
    endpoint: "/my/stream/endpoint", // required
    system: "You are a helpful assistant.",
  });
</script>

Entry Points

EntryExports
@aibind/svelteStream, StructuredStream, defineModels
@aibind/svelte/agentAgent
@aibind/svelte/markdownStreamMarkdown, StreamParser, HtmlRenderer, MarkdownRecovery
@aibind/svelte/historyReactiveChatHistory, ReactiveMessageTree
@aibind/svelte/projectProject

Documentation

Full documentation: aibind.dev

Requirements

  • Svelte 5.53+
  • AI SDK 6.0+

License

MIT

Keywords

svelte

FAQs

Package last updated on 10 Mar 2026

Related posts