โœจ Magek โ€” Build AI-Native Backends with Event-Driven Intelligence

Magek Framework

A framework for building intelligent, agentic applications with event sourcing, swarming agents, and LLM integrations โ€” cloud-agnostic and fully open source.


๐Ÿค– Start Coding with AI Assistants

Get your AI coding assistant ready to build Magek apps in seconds:

Claude Code:

claude mcp add magek -- npx -y @magek/mcp-server

Codex CLI โ€” add to .codex/config.json:

{ "mcpServers": { "magek": { "command": "npx", "args": ["-y", "@magek/mcp-server"] } } }

Then just ask your assistant to "create a new Magek project" or "implement a user registration feature" โ€” it knows the CLI commands, CQRS patterns, and best practices.

Learn more about AI coding assistants โ†’


๐Ÿง  What is Magek?

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.


โšก Key Concepts

Magek applications revolve around events. These are facts that describe what happened in your system. From there, the rest emerges:


๐Ÿงฌ Ambient Agents: The Next Frontier in AI Apps

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.


๐Ÿ”Œ Pluggable and Cloud-Agnostic

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.


๐Ÿ›  Features at a Glance


๐Ÿšง Roadmap Highlights

Weโ€™re building Magek in the open. Hereโ€™s whatโ€™s happening:


๐Ÿ™Œ Get Involved

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

For Maintainers

Releases are created manually via GitHub Actions workflow dispatch. See CONTRIBUTING.md for detailed instructions.


๐Ÿ“œ License

The Magek Framework is licensed under the Apache License, Version 2.0. See the LICENSE file for more details.


Resources

โ€œ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.