A framework for building intelligent, agentic applications with event sourcing, swarming agents, and LLM integrations — cloud-agnostic and fully open source.
Magek is an open-source framework for building modern backends designed for AI-native applications. It helps you structure your code using event sourcing, run ambient agents that operate continuously, and plug into LLMs, vector databases, and retrieval systems — all from a single, unified developer experience.
Magek was born as a fork and deep refactor of the Booster Framework, a production-ready event-sourced backend framework. With Magek, we're taking those solid foundations and bringing them into the age of intelligent, agentic applications.
Whether you're building a data ingestion pipeline for LLMs, a Slack agent swarm for your team, or a full RAG-powered assistant with real-time memory and insight — Magek gives you the primitives to do it.
Magek applications revolve around events. These are facts that describe what happened in your system. From there, the rest emerges:
Unlike synchronous chat-based agents that wait for a user to prompt before reacting, Ambient Agents operate proactively: they run continuously in the background, listening to event streams, maintaining memory over time, and triggering complex workflows when contextually relevant. They can reason asynchronously, coordinate in swarms, and handle multi-step tasks automatically—escalating to humans only when approval is needed—allowing systems to scale beyond on-demand interactions and deliver real-world intelligence without constant human prompting.
Magek’s event-sourced architecture is a perfect match for these agents. Why?
With Magek, you can define agents that act like smart coworkers — not just API endpoints.
Magek apps can be run in two ways: either as a Fastify-powered Node.js server (perfect for local development or Docker-based deployments), or deploying your app’s root functions directly to your favorite FaaS provider (no Fastify required).
All infrastructure is abstracted behind adapters, so you can connect to the tools and databases that make sense for your stack:
Magek gives you full control without sacrificing the developer experience.
We’re building Magek in the open. Here’s what’s happening:
@magek/server: Fastify-based runtime (local/Docker)create-magek: project scaffolding CLI (npm create magek@latest)Magek is built in the open, and we’re just getting started. Whether you're into event-driven systems, AI agents, data engineering, or building amazing dev tools — we’d love your help.
👀 Star us on GitHub
🐛 Open an issue to report bugs or request features
💬 Start a discussion to help define what Magek becomes
🤝 Open a PR to shape the future of AI infrastructure
The Magek Framework is licensed under the Apache License, Version 2.0. See the LICENSE file for more details.
“Magek” was the Guanche deity of the sun — a symbol of light and insight. We believe your backends should reflect that: continuously aware, reactive, and illuminating.