Keryx

•
206
•

Provides a fullstack TypeScript framework to define backend actions once for deployment across HTTP, WebSockets, CLI, background tasks, and AI agent (MCP) tools.

Keryx is a ground-up rewrite of ActionHero, built on Bun, offering a unified approach to backend development. It allows developers to define a single 'action' class that can serve various transports—HTTP requests, WebSocket messages, CLI commands, background tasks, and AI agent tools via the Model Context Protocol (MCP). This design eliminates code duplication, ensuring consistent inputs, validation, middleware, and responses across all interfaces, complete with built-in OAuth 2.1 authentication and type-safe error handling for AI agents. The framework leverages modern TypeScript tools like Zod for input validation and Drizzle ORM for robust database interactions.

主な機能

01MCP-native actions with OAuth 2.1 authentication, typed errors, and per-session isolation for AI agents.
02Built-in background task processing via node-resque, including a fan-out pattern for parallel job execution.
0322 GitHub stars
04Zod input validation for type-safe parameters, automatic error responses, and OpenAPI generation.
05Strongly-typed frontend integration providing type-safe API responses without manual code generation.
06Transport-agnostic actions supporting HTTP, WebSocket, CLI, background tasks, and MCP from a single class definition.

ユースケース

01Creating APIs that simultaneously support HTTP, WebSocket, and CLI interfaces from a single, consistent codebase.
02Developing AI agent tools that automatically inherit and expose existing backend API functionality.
03Building full-stack web applications with a unified backend logic that serves various client types.