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

@aibind/core

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aibind/core

Shared internal utilities for @aibind packages

Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
20
400%
Maintainers
1
Weekly downloads
 
Created
Source

@aibind/core

Shared core utilities for @aibind packages. Framework-agnostic controllers, tree-structured conversation history, durable stream infrastructure, and project management.

Install

npm install @aibind/core

Most users should install a framework package (@aibind/sveltekit, @aibind/nuxt, @aibind/nextjs, @aibind/solidstart) instead, which includes this package automatically.

What's Inside

Controllers

Framework-agnostic controllers that power all framework packages:

  • StreamController — manages streaming text state, abort/resume, SSE reconnection
  • StructuredStreamController — streaming JSON parsing with schema validation
  • AgentController — multi-step tool-calling agent state

Tree-Structured Conversation History

  • MessageTree<M> — low-level tree data structure with full branching support
  • ChatHistory<M> — high-level wrapper for append, edit, regenerate, and navigate alternatives

Durable Streams

Server-side infrastructure for resumable AI streams:

  • MemoryStreamStore — in-memory stream chunk storage with TTL
  • createDurableStream — pipes async iterables through a store, returns SSE Response
  • createResumeResponse — resume from a given sequence number
  • SSE utilities: formatSSE, formatSSEEvent, consumeSSEStream

Server Handler

  • createStreamHandler — generic Web Request/Response handler for /stream and /structured endpoints
  • ServerAgent — server-side agent with tools and multi-step loops

Project Management

  • Project — Claude-like project context with instructions, knowledge, and multi-conversation management

Documentation

Full documentation, API reference, and guides: aibind.dev

License

MIT

FAQs

Package last updated on 06 Mar 2026

Related posts