Introduction
Mozaik is a TypeScript library for building, managing, and evolving LLM context.
Mozaik helps you build AI agent systems by turning model interactions into real objects and controlling them with reusable rules.
Get started
Installation
Add the package and configure API keys.
Quickstart
Build context, call a model, save and restore.
Core concepts
Context, items, repositories, and model output.
Why Mozaik
- Context as data — Messages, tool calls, reasoning traces, and outputs are first-class objects you can append, inspect, and serialize.
- Provider-oriented runtime — A domain-centric inference layer (e.g. OpenAI Responses) sits behind a stable shape instead of scattering provider calls through your app.
- Context engineering — Designed around problems like window overflow, bloated history, and multi-step / multi-agent flows.
Resources
Mozaik on GitHub
Source, issues, and development branch.
@mozaik-ai/core on npm
Published package and versions.
OpenResponses
Unified multi-provider LLM interface spec.
License
Mozaik is released under the MIT License by the JigJoy team.