Thanks to visit codestin.com
Credit goes to lib.rs

#rdf #domain

ggen-domain

Domain logic layer for ggen - pure business logic without CLI dependencies

12 stable releases (3 major)

new 5.1.3 Jan 6, 2026
5.0.2 Dec 21, 2025
4.0.0 Dec 13, 2025
3.4.1 Dec 11, 2025
2.7.1 Nov 16, 2025

#55 in #domain


Used in 6 crates (5 directly)

MIT license

4MB
85K SLoC

ggen-domain - Domain Logic Layer

This crate contains all domain/business logic for ggen, completely separated from CLI concerns. It provides pure business logic functions that can be used by CLI, web APIs, or other interfaces.

Architecture

  • No CLI dependencies: This crate has ZERO dependencies on clap or clap-noun-verb
  • Infrastructure dependencies: Uses ggen-core, ggen-ai, ggen-marketplace for operations
  • Async by default: Domain functions are async for non-blocking operations

Module Organization

Domain logic is organized by functional area:

  • ai - AI operations (code analysis, generation)
  • graph - Graph operations (RDF loading, SPARQL queries)
  • marketplace - Marketplace operations (search, install, publish)
  • template - Template operations (generate, lint, render)
  • project - Project operations (create, generate, plan)
  • rdf - RDF metadata operations
  • audit - Security auditing
  • ci - CI/CD operations
  • shell - Shell completion generation

Dependencies

~115MB
~2M SLoC