Sandbox
@ankorstore/yokai

Go backend framework with observability and modules

Yokai gives you a Go foundation for backend apps with built-in logging, tracing, metrics, health checks, and dependency injection. You assemble an app from core and extension modules instead of wiring all the plumbing yourself.

839 stars31 forksGoUpdated 2mo ago
Who it's for

Builders who want a modular Go base for backend services with observability already in place.

What it delivers

You can start new backend apps with less boilerplate and a consistent structure for wiring, config, and telemetry.

What it does

Core observability modules

Provides logging, tracing, metrics, and health check instrumentation in the core framework.

Extension modules

Adds reusable modules for HTTP, gRPC, workers, cron jobs, configuration, and clock handling.

Dependency injection system

Uses Fx-based wiring so application parts are registered and resolved through the framework.

Application templates

Offers starter templates for gRPC, HTTP, MCP, and worker applications.

Showroom demos

Links to runnable demo apps so builders can see the framework in use.

README

Yokai

License: MIT Go version codecov Documentation Awesome Go

Simple, modular, and observable Go framework for backend applications.

Goals

Building backend applications with Go is amazing.

But to build production-grade applications, you need to put in place a bunch of efforts and boilerplate code, introducing complexity not even related to the logic of your application (like dependencies wiring, configuration management, observability instrumentation, etc.).

To solve this, Yokai was created with the following goals in mind:

  • Simple: it is easy to use, configure and test, enabling you to iterate fast and deliver quickly maintainable applications.
  • Modular: it can be extended with the available Yokai modules, or with your own, to build evolvable applications.
  • Observable: it comes with built-in logging, tracing and metrics instrumentation, to build reliable applications.

In other words, Yokai lets you focus on your application logic, while taking care of the rest.

Documentation

Yokai's documentation is available at https://ankorstore.github.io/yokai.

Overview

Architecture

Architecture

  • Yokai core modules preloads logging, tracing, metrics and health check instrumentation, and expose a private HTTP server for infrastructure and debugging needs.
  • Yokai extensions modules can be added to enrich your application features, like public HTTP / gRPC servers, workers, ORM, etc. You can also add the contrib modules or your own.
  • Those are made available in Yokai dependency injection system, on which you can rely to build your application logic.

Foundations

Yokai was built using robust and well known Go libraries, such as:

  • Echo for HTTP servers
  • gRPC-go for gRPC servers
  • Viper for configuration management
  • OTEL for observability instrumentation
  • Fx for dependency injection system
  • and more.

Extensions

Yokai's extension system enables you to enrich your application features with:

Getting started

Yokai provides ready to use application templates to start your projects:

Showroom

Yokai provides a showroom repository with demo applications, ready to run, to see it in action:

Contributing

This repository uses release-please to automate Yokai's modules release process.

[!IMPORTANT] You must provide atomic and conventional commits, as the release process relies on them to determine the version to release and to generate the release notes.

Files in the repo

Repository payload37 top-level entries
  • .github
  • config
  • docs
  • fxclock
  • fxconfig
  • fxcore
  • fxcron
  • fxgenerate
  • fxgrpcserver
  • fxhealthcheck
  • fxhttpclient
  • fxhttpserver
  • fxlog
  • fxmcpserver
  • fxmetrics
  • fxorm
  • fxsql
  • fxtrace
  • fxvalidator
  • fxworker
  • generate
  • grpcserver
  • healthcheck
  • httpclient
  • httpserver
  • log
  • orm
  • sql
  • trace
  • worker
  • .gitignore
  • .release-please-manifest.json
  • codecov.yml
  • LICENSE
  • mkdocs.yml
  • README.md
  • release-please-config.json

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More frameworks & sdks

HKUDS/nanobotFrameworks & SDKs

Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps

48k
microsoft/
SkillOpt
microsoft/SkillOptFrameworks & SDKs

SkillOpt is a text-space optimizer that trains reusable natural-language skills for frozen LLM agents through trajectory-driven edits, validation-gated updates, and deployable best_skill.md artifacts.

17k
omnigent-ai/omnigentFrameworks & SDKs

Omnigent is an open-source AI agent framework and meta-harness: orchestrate Claude Code, Codex, Cursor, Pi, and custom agents — swap harnesses without rewriting, enforce policies and sandboxing, and collaborate in real time from any device.

9.8k
kyegomez/
OpenMythos
kyegomez/OpenMythosFrameworks & SDKs

A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the available research literature.

15k
D4Vinci/ScraplingFrameworks & SDKs

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

80k