Everything you need for AI governance
Drop-in binary with embedded ONNX model, tokenizer, and personas. Zero external dependencies. Production-ready from day one.
Security Scanning
7 SAST + 5 antipattern rules
Enterprise-grade static analysis with real-time CVE detection and antipattern enforcement.
SAST Scanner
Production7 patterns for SQL injection, command injection, secrets, weak crypto, and more.
src/security/scanner.rsSQL Injection Detection
Production14 patterns detecting f-string queries, .format() concatenation, and raw SQL.
14 pattern rulesCommand Injection Detection
ProductionDetects subprocess.shell=True, os.system, os.popen, and eval() patterns.
Built-in patternsOSV Dependency Scanner
ProductionReal-time CVE detection via osv.dev API integration for Python dependencies.
src/security/dependency_osv.rsAntipattern Detector
ProductionRanex-specific rules for architecture violations, forbidden folders, layer breaches.
src/security/antipattern.rsSecret Detection
ProductionDetects hardcoded API keys, passwords, tokens, and connection strings.
Pattern-based scanningContract System
Cryptographic verification
Blake3 hash chains with Ed25519 signatures for tamper-proof audit trails.
FFI Type Validation
ProductionPyO3 bindings with sub-100ns target latency for real-time validation.
src/contract/ffi_validator.rsSchema Validation
ProductionFull JSON Schema support with Pydantic model_json_schema() integration.
src/contract/schema_validator.rsPydantic Integration
ProductionNative support for Pydantic v2 models with automatic schema extraction.
register_schema() APICryptographic Audit Trail
ProductionBlake3 hash chain with Ed25519 signatures for enterprise compliance.
src/contract/audit.rsAudit Integrity Verification
Productionverify_integrity() method with tamper detection and chain validation.
Built-in verificationState Machine
YAML-based workflow control
Define valid state transitions in YAML and enforce them at runtime with zero overhead.
YAML-based State Machine
ProductionDefine states and transitions in app/features/{feature}/state.yaml files.
src/validation/state_machine.rsTransition Validation
Productiontransition() method validates against allowed transitions at runtime.
Built-in validationMulti-Tenant Isolation
ProductionPer-tenant state machines via feature+tenant key for SaaS applications.
Tenant key supportCLI & MCP Tools
8 commands, 10 MCP tools
Drop-in binary with embedded ONNX model, tokenizer, and personas. Zero external dependencies.
ranex init
ProductionCreates .ranex/, .windsurfrules, and MCP configuration files.
CLI commandranex scan
ProductionSecurity + architecture scan with cryptographic attestation.
CLI commandranex arch
ProductionArchitectural layer verification against defined rules.
CLI commandranex fix
ProductionAuto-remediate violations with intelligent suggestions.
CLI commandranex doctor
ProductionSystem health check for configuration and dependencies.
CLI commandranex-cli (Rust)
ProductionPure Rust binary for regulated environments - untamperable.
src/bin/ranex_mcp.rsCore Infrastructure
Production-grade foundations
Structured logging, Prometheus metrics, error aggregation, and panic handling.
Structured Logging
ProductionFull tracing-subscriber integration with JSON output format.
src/core/logging/init.rsLog Rotation
ProductionSize and time-based rotation with configurable thresholds.
src/core/logging/rotation.rsLog Sanitization
Production9 regex patterns for PII and secrets redaction.
src/core/logging/sanitization.rsPrometheus Metrics
Productionmetrics-exporter-prometheus integration with auto-recording.
src/core/metrics/metrics.rsError Aggregation
ProductionStatistics, rate calculation, and error type tracking.
src/core/errors/aggregation.rsPanic Handler
ProductionFull backtrace logging with graceful error recovery.
src/core/logging/init.rs:207-258RAG Infrastructure
Embedded AI model
All-MiniLM-L6-v2 ONNX model compiled INTO the binary. Zero setup for users.
Embedded ONNX Model
Feature-gatedAll-MiniLM-L6-v2 compiled into binary via include_bytes!().
src/rag/embedded.rs:27Embedded Tokenizer
Feature-gatedTokenizer JSON compiled into binary for zero-setup usage.
src/rag/embedded.rs:31Vector Database
Feature-gatedSQLite-based vector storage with cosine similarity search.
src/rag/vector_db.rsEmbedding Cache
Feature-gatedLRU cache for query embeddings to reduce computation.
src/rag/cache.rs7 Built-in Personas
Feature-gatedranex_architect, python_engineer, fastapi_contributor, and more.
Embedded in binaryMachine Learning
Native ML pipeline
Logistic regression classifier with TF-IDF features, training pipeline, and model persistence.
Logistic Regression
ProductionFull gradient descent implementation in pure Rust.
src/ml/classification.rsTraining Pipeline
ProductionEarly stopping, checkpointing, and validation splits.
src/ml/training.rsTF-IDF Feature Extraction
ProductionVocabulary building and IDF computation for text features.
src/ml/features.rsDataset Management
ProductionTrain/test/validation splits with stratification.
src/ml/dataset.rsModel Persistence
ProductionJSON serialization for model checkpoints and deployment.
src/ml/persistence.rsClassification Metrics
ProductionAccuracy, precision, recall, F1, and confusion matrix.
Built-in metricsDatabase Support
Multi-database introspection
PostgreSQL, MySQL, and SQLite support with schema validation and SQL parsing.
PostgreSQL Support
ProductionFull schema introspection with scan_postgres().
src/database/schema.rsMySQL Support
Productionscan_mysql() with connection pooling.
src/database/schema.rsSQLite Support
Productionscan_sqlite() with PRAGMA introspection.
src/database/schema.rsSQL Validation
Productionvalidate_query() with sqlparser AST validation.
Built-in validationCLI Integrity System
Tamper detection
BLAKE3 hash verification and Ed25519 attestations for regulated environments.
IntegrityRegistry
ProductionBLAKE3 hash verification for Python CLI files.
src/cli/integrity/registry.rsAttestationEngine
ProductionEd25519 signed attestations proving scan completion.
src/cli/integrity/attestation.rsCLI Hash Verification
ProductionVerifies Python CLI files at startup before execution.
Built-in verificationStrict Integrity Mode
Production--strict flag with exit code 78 (EX_CONFIG) on violation.
CLI flagDrop-in binary architecture
Everything embedded INTO the binary. Users just pip install and go.
Ready to get started?
Install Ranex in seconds and start validating AI-generated code immediately.