ui

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package ui provides the AI SDK UI layer — a Go re-interpretation of the AI SDK UI libraries (React, Svelte, Vue, Angular) using server-side Templ components and Datastar for streaming reactivity.

The UI layer is the outermost layer in the onion model. It depends on domain interfaces (pkg/chat) and services (pkg/core) but no provider implementations.

Sub-packages:

  • chat: Chat state management equivalent to the JS useChat() hook
  • components: Templ component files (.templ) for rendering chat UIs
  • handlers: HTTP handler implementations for chat endpoints

Directories

Path Synopsis
Package chat provides server-side chat state management — the Go equivalent of the AI SDK's useChat() hook.
Package chat provides server-side chat state management — the Go equivalent of the AI SDK's useChat() hook.
templ: version: v0.3.1001
templ: version: v0.3.1001
Package handlers provides HTTP handler implementations for AI SDK UI endpoints.
Package handlers provides HTTP handler implementations for AI SDK UI endpoints.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL