{"id":34250376,"url":"https://github.com/ibrahimcesar/sketchddd","last_synced_at":"2026-04-21T12:02:55.564Z","repository":{"id":327004671,"uuid":"1106753877","full_name":"ibrahimcesar/SketchDDD","owner":"ibrahimcesar","description":"A visual and textual toolkit for Domain-Driven Design powered by category theory. Build precise domain models with drag-and-drop for domain experts or a DSL for developers. Validates aggregates, context maps, and business rules. Generates code.","archived":false,"fork":false,"pushed_at":"2025-12-03T14:54:51.000Z","size":425,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-03T16:53:06.727Z","etag":null,"topics":["aggregate","bounded-context","category-theory","code-generation","ddd","domain-driven-design","dsl","low-code","modeling","no-code","rust","software-architecture","visual-programming","wasm"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibrahimcesar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["ibrahimcesar"]}},"created_at":"2025-11-29T21:49:40.000Z","updated_at":"2025-12-03T14:53:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ibrahimcesar/SketchDDD","commit_stats":null,"previous_names":["ibrahimcesar/sketchddd"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ibrahimcesar/SketchDDD","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimcesar%2FSketchDDD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimcesar%2FSketchDDD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimcesar%2FSketchDDD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimcesar%2FSketchDDD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibrahimcesar","download_url":"https://codeload.github.com/ibrahimcesar/SketchDDD/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibrahimcesar%2FSketchDDD/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27761837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aggregate","bounded-context","category-theory","code-generation","ddd","domain-driven-design","dsl","low-code","modeling","no-code","rust","software-architecture","visual-programming","wasm"],"created_at":"2025-12-16T09:18:51.970Z","updated_at":"2025-12-16T09:18:54.313Z","avatar_url":"https://github.com/ibrahimcesar.png","language":"Rust","funding_links":["https://github.com/sponsors/ibrahimcesar"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# SketchDDD\n\n**Build Domain Models Visually or with Code**\n\n[![Crates.io](https://img.shields.io/crates/v/sketchddd.svg)](https://crates.io/crates/sketchddd)\n[![License](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](LICENSE)\n[![CI](https://github.com/ibrahimcesar/SketchDDD/workflows/CI/badge.svg)](https://github.com/ibrahimcesar/SketchDDD/actions)\n\n[Website](https://sketchddd.dev) • [Documentation](https://docs.sketchddd.dev) • [Visual Builder](https://app.sketchddd.dev)\n\n\u003c/div\u003e\n\n---\n\n## What is SketchDDD?\n\nSketchDDD bridges the gap between **domain experts** and **developers** by providing two ways to build the same precise domain model:\n\n| 👩‍💼 Domain Experts | 👨‍💻 Developers |\n|-------------------|---------------|\n| Visual drag-and-drop builder | Text-based DSL |\n| Guided wizards | Full expressiveness |\n| Templates to start fast | Version control friendly |\n| Plain English rules | CI/CD integration |\n\nBoth interfaces produce the same model, validated by **category theory** to ensure precision.\n\n---\n\n## Quick Start\n\n### Visual Builder\n\nVisit [app.sketchddd.dev](https://app.sketchddd.dev) and start building.\n\n### CLI\n```bash\n# Install\ncargo install sketchddd\n\n# Create a new project\nsketchddd init my-domain\n\n# Validate your model\nsketchddd check my-domain.sddd\n\n# Generate code\nsketchddd codegen my-domain.sddd --target rust\n\n# Start visual builder locally\nsketchddd serve\n```\n\n\u003e **File Extension:** SketchDDD uses `.sddd` files - short for **S**ketch**DDD**. See [examples/](examples/) for sample models.\n\n---\n\n## Example\n```sketchddd\ncontext Commerce {\n  \n  objects { Customer, Order, LineItem, Product, Money }\n  \n  morphisms {\n    placedBy: Order -\u003e Customer\n    items: Order -\u003e List\u003cLineItem\u003e\n    product: LineItem -\u003e Product\n    price: LineItem -\u003e Money\n  }\n  \n  aggregate Order {\n    root: Order\n    contains: [LineItem]\n    invariant: totalPrice = sum(items.price)\n  }\n  \n  value Money {\n    amount: Decimal\n    currency: Currency\n  }\n}\n```\n\n---\n\n## Features\n\n- 🎨 **Visual Builder** - Drag-and-drop for non-technical users\n- 📝 **Text DSL** - Full control for developers\n- ✅ **Validation** - Catch errors before runtime\n- 🔗 **Context Maps** - Model system integration\n- 🏭 **Code Generation** - Rust, TypeScript, Kotlin, Python, Java, Clojure\n- 📊 **Diagrams** - Auto-generated visualizations\n- 📚 **Templates** - Start with common patterns\n\n---\n\n## Editor Support\n\nFirst-class editor support for `.sddd` files:\n\n| Editor | Status | Features |\n|--------|--------|----------|\n| **VS Code** | ✅ Available | Syntax highlighting, snippets, bracket matching |\n| **Sublime Text** | ✅ Available | Syntax highlighting |\n| **Vim/Neovim** | ✅ Available | Syntax highlighting, indentation |\n| **Any LSP Client** | ✅ Available | Full LSP support |\n\n### Language Server Protocol (LSP)\n\nThe `sketchddd-lsp` binary provides:\n- Real-time diagnostics and error reporting\n- Auto-completion for keywords, types, and morphisms\n- Go to definition and find references\n- Hover documentation\n- Document symbols and outline\n- Code formatting\n\n```bash\n# Install LSP server\ncargo install sketchddd-lsp\n\n# For Neovim (add to your config)\n# lua: require('lspconfig').sketchddd.setup{}\n```\n\nSee [editors/](editors/) for installation instructions\n\n---\n\n## Documentation\n\n- [Getting Started](https://docs.sketchddd.dev/getting-started)\n- [Visual Builder Guide](https://docs.sketchddd.dev/visual-builder)\n- [DSL Reference](https://docs.sketchddd.dev/dsl-reference)\n- [Theoretical Foundation](https://docs.sketchddd.dev/theory)\n\n---\n\n## Why Category Theory?\n\nDDD concepts like \"aggregate\" and \"bounded context\" are often vague. SketchDDD uses **category theory** to give them precise mathematical definitions:\n\n| DDD Concept | Mathematical Definition |\n|-------------|------------------------|\n| Bounded Context | Sketch (graph + equations + limits) |\n| Aggregate | Limit cone with root |\n| Value Object | Limit with structural equality |\n| Context Map | Sketch morphism |\n\nThis precision enables **automated validation** and **code generation** that actually works.\n\n---\n\n## Contributing\n\nWe welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n### Open Discussions\n\nWe're building this in the open! Join the conversation:\n\n- [Visual Builder Frontend Framework](https://github.com/ibrahimcesar/SketchDDD/discussions/31) - Help us choose React, Vue, Svelte, or Solid\n\n---\n\n## License\n\nLicensed under either of:\n\n- [MIT License](./LICENSE-MIT)\n- [Apache License, Version 2.0](./LICENSE-APACHE)\n\nat your option.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibrahimcesar%2Fsketchddd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibrahimcesar%2Fsketchddd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibrahimcesar%2Fsketchddd/lists"}