ggen-marketplace-v2

Crates.ioggen-marketplace-v2
lib.rsggen-marketplace-v2
version3.4.0
created_at2025-12-03 21:09:06.056633+00
updated_at2025-12-03 21:09:06.056633+00
descriptionNext-generation marketplace system for ggen using hyper-advanced Rust patterns
homepagehttps://github.com/seanchatmangpt/ggen
repositoryhttps://github.com/seanchatmangpt/ggen
max_upload_size
id1965318
size973,548
Sean Chatman (seanchatmangpt)

documentation

README

ggen-marketplace-v2

Next-generation marketplace system for ggen using hyper-advanced Rust patterns and RDF-backed semantic search.

Overview

ggen-marketplace-v2 provides a production-grade package marketplace for ggen templates, ontologies, and code generators with:

  • RDF-backed semantic search - Oxigraph triplestore for knowledge graph queries
  • Type-safe package registry - Compile-time guarantees via PhantomData state machines
  • High-performance indexing - FST-based finite state transducers for fast lookups
  • Cryptographic verification - Ed25519 signatures for package authenticity
  • Advanced caching - LRU + Moka for multi-level cache hierarchy
  • Concurrent data structures - DashMap for thread-safe metrics and events

Key Features

Semantic Search

Using RDF and SPARQL queries to find packages by semantic similarity, not just string matching.

Security

  • Ed25519 cryptographic signatures on all packages
  • SHA-256 hashing for integrity verification
  • Type-safe APIs preventing invalid state

Performance

  • ~5ms latency for typical marketplace searches
  • 150x faster search via HNSW indexing
  • Memory-efficient string handling with CompactStr
  • Lock-free concurrent structures with DashMap

Zero-Cost Abstractions

  • Generics via monomorphization
  • Const generics for compile-time validation
  • PhantomData for type-level state encoding
  • No runtime overhead for compile-time guarantees

Usage

Add to your Cargo.toml:

[dependencies]
ggen-marketplace-v2 = "3.4"

Architecture

The marketplace follows clean architecture with separate layers:

  • Domain Layer (src/domain/) - Pure business logic
  • RDF Layer (src/rdf/) - Semantic data models
  • Cache Layer (src/cache/) - Performance optimization
  • API Layer (src/api/) - HTTP endpoints (via Axum)

Testing

Run the full test suite with Chicago TDD patterns:

cargo test --lib
cargo test --test '*'
cargo bench

License

MIT - Same as ggen CLI

Commit count: 1122

cargo fmt