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 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 existingcrate::models::Xpaths 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-runnerworker consumes. - storage
- Plugin binary storage (S3-compatible with local filesystem fallback)
- store
- Storage trait + backends now live in
mockforge-registry-core. Re-exported so existingcrate::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