hexagonal

Installation
SKILL.md

Hexagonal Architecture (Ports and Adapters)

Hexagonal Architecture aims to create a loosely coupled application component that can easily connect to their software environment by "ports" and "adapters". It treats the database, the web UI, and external APIs as interchangeable "details" (infrastructure).

When to Use

  • Core Business Logic Isolation: Keeping domain models completely pure and independent of database choices, web frameworks, and messaging tools.
  • Pluggable Architecture: Systems where components (e.g. storage engine, notification providers, payment gateways) must be easily swappable.
  • Automated Regression Testing: Running full business scenario tests with fast, zero-dependency in-memory adapters.
  • Microservice Reusability: Allowing the exact same business core to be driven by an HTTP REST controller, a gRPC server, and a CLI simultaneously.

Quick Start

// --- CORE (Inside the Hexagon) ---
Installs
7
GitHub Stars
15
First Seen
Feb 10, 2026