whatisgithub

What is easy-ddd?

alizhangsan602-bit/easy-ddd — explained in plain English

Analysis updated 2026-05-18

26Audience · developerComplexity · 1/5LicenseSetup · easy

In one sentence

A set of Markdown coding guidelines that show developers exactly where each piece of code goes when building an app with Domain-Driven Design.

Mindmap

mindmap
  root((easy-DDD))
    What it does
      DDD coding guides
      Layer placement rules
      AI assistant rules
    Architecture
      Domain layer
      Application layer
      Adaptor layer
      Infrastructure layer
    Patterns
      Write pattern
      Read pattern
      Rules plus calculation
      Pure calculation
    Use with AI
      Cursor rules
      Copilot rules
    Audience
      Backend developers
      Teams adopting DDD

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Drop the rule files into Cursor or Copilot so the AI writes new code in the correct DDD layer.

USE CASE 2

Use the decision tree to pick the right pattern for a new feature before writing any code.

USE CASE 3

Onboard a team onto a shared hexagonal architecture without inventing conventions from scratch.

What is it built with?

Markdown

How does it compare?

alizhangsan602-bit/easy-dddaevella/sky-pc-mcp-companionaffaan-m/behavioral_rl
Stars262626
LanguagePythonHTML
Setup difficultyeasymoderatemoderate
Complexity1/53/54/5
Audiencedevelopervibe coderresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

Easy-DDD is a collection of coding guidelines and documentation for a software design approach called Domain-Driven Design, or DDD. DDD is a way of organizing code in medium-to-large applications so that the business rules and logic stay at the center of the codebase, kept separate from database connections, external APIs, and other technical details. This project addresses a common frustration: developers often understand DDD in theory but do not know where to put the actual code or how to structure their files. The project uses a hexagonal architecture, which organizes code into six defined layers named Domain, Application, Adaptor, Infrastructure, Client, and Model. The Domain layer holds pure business logic with no technical dependencies. The Application layer handles use-case orchestration. The Adaptor layer sits between the business code and outside systems, acting as a buffer. The Infrastructure layer contains technical implementation details like database access. The Client layer defines external API contracts, and the Model layer holds shared data structures used across the other layers. The documentation covers four development patterns for common coding situations. A write pattern applies to operations that create or change data. A read pattern handles queries that only fetch data. A rules-plus-calculation pattern covers cases involving business rules without state changes. A pure calculation pattern handles computations with no data persistence, such as fee calculation or view rendering. One feature the README highlights is that the specification documents are designed to work as AI coding assistant rules. You can drop the Markdown files into the configuration directory for tools like Cursor or GitHub Copilot, and the AI assistant will follow the DDD conventions when generating code. The repository contains separate Markdown files for each architectural layer, an overview document, and a decision tree for choosing which pattern fits a given business scenario. MIT licensed.

Copy-paste prompts

Prompt 1
Read the easy-DDD Domain layer guide and generate a Domain class for a new Order entity following its rules.
Prompt 2
Using the easy-DDD write pattern, scaffold the Application and Adaptor layers for a create-user use case.
Prompt 3
Explain which easy-DDD pattern fits a feature that calculates shipping cost without saving any data.
Prompt 4
Set up my Cursor rules directory using the easy-DDD Markdown files so generated code follows this architecture.

Frequently asked questions

What is easy-ddd?

A set of Markdown coding guidelines that show developers exactly where each piece of code goes when building an app with Domain-Driven Design.

What license does easy-ddd use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is easy-ddd to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is easy-ddd for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.