Skip to main content

Crate mockforge_registry_server

Crate mockforge_registry_server 

Source
Expand description

Pillars: [Cloud]

MockForge Plugin Registry Server — library crate.

This crate is being extracted into a reusable library so that both the multi-tenant SaaS binary (mockforge-registry-server) and the single-tenant OSS admin server (mockforge-ui) can share the same domain models, storage layer, handlers, and authentication middleware.

Phase 0 of the extraction: expose the existing modules via lib.rs without behavior changes. Later phases will introduce a RegistryStore trait, a SQLite backend, and feature gates for SaaS-only integrations.

Modules§

ai
Cloud AI Studio surface.
auth
JWT/password auth helpers moved to mockforge-registry-core. Authentication and JWT handling
cache
Redis caching utilities for frequently accessed data
circuit_breaker
Circuit breaker pattern for external service resilience
config
Server configuration
database
Database connection and models
deployment
Deployment orchestrator for hosted mocks
email
Email notification service for user communications
error
Error types for the registry server.
fly_logs
Fly.io runtime log client for hosted-mock deployments.
fly_metrics
Fly Managed Prometheus client for hosted-mock runtime metrics.
handlers
API handlers
metrics
Metrics instrumentation helpers for marketplace operations
middleware
HTTP middleware
models
Domain models now live in mockforge-registry-core. Re-exported here so existing crate::models::X paths continue to resolve during the cloud-core extraction. Database models
pillar_tracking_init
Initialize pillar tracking with analytics database adapter
redis
Redis connection and utilities for rate limiting and caching
routes
API routes
run_queue
Helpers for pushing test_run jobs onto the Redis queue that the mockforge-test-runner worker consumes.
storage
Plugin binary storage (S3-compatible with local filesystem fallback)
store
Storage trait + backends now live in mockforge-registry-core. Re-exported so existing crate::store::* paths keep working. Unified storage layer for the registry domain.
two_factor
TOTP/2FA helpers moved to mockforge-registry-core. Two-Factor Authentication (2FA) utilities
validation
Validation helpers moved to mockforge-registry-core. Marketplace upload validation
workers
Background workers for periodic tasks

Structs§

AppState