Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

miraserver

Latest version: v0.8.14

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
PyPI package Publisher: nicwu
4 Versions
216 Downloads

Scan summary

miraserver was last scanned on 1 Dec 2026 at version 0.8.14. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest 2 were published on 1 Dec 2026.
  • Findings: No rules fired in version 0.8.14.
  • Downloads: 216 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.8.14 LATEST 1 Dec 2026 No rules fired
0.8.13 1 Dec 2026 No rules fired
0.8.13rc1 16 Oct 2026 No rules fired
0.8.13rc0 12 Oct 2026 Not shown

No rules fired in 0.8.14

Findings

Findings for v0.8.14. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.8.14; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

lite-server

High-performance model inference server — Rust core for I/O, Python for inference.

中文文档

Table of Contents

  • lite-server
    • Table of Contents
    • Why lite-server?
    • Quick Start
    • Features
      • Inference Modes
      • Model Management
      • Custom Routes
      • Worker Resilience
      • Traffic & Reliability
      • Security
      • Observability
      • Operations
    • Installation
      • From Wheel (Recommended)
      • From Source
    • Examples
    • API Endpoints
    • Configuration
    • Documentation
    • FAQ
    • Multi-Platform
    • Development
      • Project Structure
    • License

Why lite-server?

Feature What it means for you
Fast Rust HTTP core (axum/tokio), zero-copy data path, adaptive batching Higher throughput, lower latency than pure-Python servers
Stable Outlier detection, heartbeat, auto-respawn, lifecycle hooks Self-healing workers that detect hangs and restart automatically
Simple pip install, write one model.py, done No Docker, no Java, no C++ build tools
Flexible Hot reload, multi-version, ensemble DAG A/B testing, canary deploys, multi-model pipelines in one server
Observable Prometheus metrics, timeline, alerts Know what's happening in production without guessing
Lightweight Single binary + Python workers, cross-platform Runs on a laptop, scales on a server

Quick Start

# 1. Install
pip install miraserver

# 2. Scaffold a project
python -m lite_server init my_project --template empty
cd my_project

# 3. Serve
python -m lite_server serve --config server.yaml

# 4. Test
python test_request.py
# or manually:
curl -X POST http://localhost:8000/v2/models/my_model/infer \
  -H 'Content-Type: application/json' \
  -d '{"input": 21}'
# => {"output": 42}

Currently only the empty template is available. Use --wizard for interactive project setup.

Features

Inference Modes
  • Standard batching — group requests into batches for GPU efficiency
  • Continuous batching — for LLM workloads with prefill/step/has_finished hooks
  • Streaming — token-by-token output via SSE, WebSocket, or gRPC
  • Decoupled streaming — 1:N push streams over gRPC (DecoupledInfer) whose lifetime the model controls (predict_decoupled)
  • Ensemble — DAG-based multi-model pipelines with parallel execution, over HTTP and gRPC alike
Model Management
  • Triton-style repository — model_name/version/model.py directory structure
  • Hot reload — modify model.py, server picks up changes automatically
  • Multi-version — load, unload, activate, deactivate versions independently
  • Canary routing — per-version traffic weights + x-lite-version request pinning (canary_override)
  • Load policies — explicit, latest, all for version management
  • Model warmup — dummy inferences run before a version reports Ready (policies.warmup), with a WarmingUp state machine
  • Model packing — .lma format with SHA256 + HMAC signature
  • Model upload/download — upload .lma artifacts or raw files via HTTP API, with auto-load support
Custom Routes
  • Decorator routing — @route.get("/status") on LitAPI methods, served under /v2/models/<model>/<tail>
  • Same channel as inference — route handlers run in the model worker; no separate process
  • Server context access — ctx.server.registry and cross-model ctx.server.inference.infer() from handlers
  • Callback chain — model-level callbacks (auth, rate limiting, CORS, logging) cover inference and custom routes alike (Rust-side per-model CORS middleware falls back to the global policy on custom routes)
Worker Resilience
  • Outlier detection — consecutive errors trigger automatic worker ejection (Envoy-style)
  • Request retry — failed requests retry on a different worker (up to 3 attempts)
  • Least-loaded routing — requests go to the worker with fewest inflight tasks
  • Max-requests recycle — auto-restart workers after N requests, with jitter to prevent thundering herd
  • Heartbeat detection — periodic ZMQ probes detect hung workers, auto-kill and respawn
  • Lifecycle hooks — shell commands and HTTP callbacks on worker ready/exit/error for alerting and observability
  • Per-request timeout — hard timeout prevents stuck requests from blocking the queue
Traffic & Reliability
  • Overload protection — global max_inflight cap rejects excess inference with 503 + Retry-After (health/admin stay reachable)
  • Priority queue — x-lite-priority header (higher = dispatched first) and per-model queue_timeout with reject action
  • Per-request deadlines — x-lite-timeout (HTTP) / grpc-timeout bound the wait; expiry returns 504, propagated across ensemble DAGs
  • Sequence-sticky routing — x-sequence-id pins a client sequence to one worker (sequence_ttl_secs / max_sequences; soft pin with load-balancing thresholds)
Security
  • TLS / mTLS — rustls-based TLS on HTTP and gRPC, client-certificate mTLS, live certificate hot-rotation (file poll + SIGHUP)
  • Endpoint access control — per-class (admin / inference / health × http / grpc) API-key or loopback-only policies; admin is fail-closed by default; constant-time key comparison
  • Trusted-proxy client IP — trusted_proxies cleansing of X-Forwarded-For / X-Real-IP; fail-safe default (headers ignored) prevents forged-IP rate-limit bypass
  • CORS + WebSocket Origin gate — global or per-model CORS (exact-origin matching, Vary: Origin); WS handshakes checked at upgrade (403 on mismatched Origin)
  • Admin API auth — separate admin bind (grpc.admin_bind, e.g. UDS), API-key gating, structured audit log for every control-plane mutation
Observability
  • Prometheus metrics — QPS, P50/P90/P99 latency, queue depth, TTFT, batch size, worker ejections
  • Custom metrics — gauge, counter, histogram from model code via register_metric() / report_metric()
  • OpenTelemetry — opt-in OTLP/gRPC traces + metrics SDK (cargo telemetry feature + telemetry.enabled), W3C traceparent bridging to workers
  • Timeline — historical metric sampling per model
  • Alerts — built-in alert rules for anomaly detection
  • Structured logging — tracing-based logs with model/worker context; lite_server::audit target for control-plane mutations
Operations
  • Admin gRPC service — 11 RPCs (GetInfo, ListModels, Load/Unload/Reload, ActivateVersion, SetRouting, GetModelStats, …) on a separate bind
  • Unix-domain sockets — HTTP (server.host: unix:...) and gRPC (grpc.host / grpc.admin_bind) with socket_mode control
  • KEDA / autoscaler integration — vLLM-compatible metric namespace ({ns}:total_queued_requests, kv_cache_utilization) + ScaledObject recipe
  • Graceful shutdown — drain in-flight requests, 503-drain gate, force-flushed telemetry with a capped drain window

Installation

From Wheel (Recommended)

Pre-built wheels for Linux (x86_64 + aarch64), macOS (Apple Silicon), and Windows (x86_64), Python 3.10-3.14:

pip install miraserver-<version>-cp310-abi3-<platform>.whl
From Source

Requires a recent stable Rust toolchain (CI builds on stable) and Python >= 3.10.

pip install maturin
maturin develop          # dev build
maturin build --release  # release wheel

Web Console (lite-ui)

A web console ships inside the wheel: multi-instance dashboard, model lifecycle management (load/unload/activate/canary routing), and an inference playground. It runs as a small Python service (FastAPI) that reverse-proxies each configured lite-server instance — no changes to the server needed.

lite-server web        # serves the UI + API on :8600

The SPA source lives in ui/web/. See ui/README.md.

Examples

See examples/ for runnable model repositories:

# Example Description
01 basic Minimal echo model
02 batching Request batching with adaptive timeout
03 streaming Token-by-token streaming via SSE/WebSocket
04 multi_version Two versions with activation switching
05 ensemble DAG-based multi-model pipeline
06 custom_route Custom HTTP routes with @route decorator
07 custom_params Config-driven model behavior
08 error_handling Exception-to-HTTP mapping, request timeout, worker ejection
09 custom_metrics Custom Prometheus metrics (gauge/counter/histogram)
10 async Asynchronous inference (unified async pipeline)
11 logging Structured logging at every stage
12 continuous_batching LLM continuous batching (prefill/step/has_finished)
13 bidi_streaming Bidirectional streaming for ASR
14 lifecycle_hooks Worker lifecycle hooks (shell + HTTP callbacks)
15 callbacks Python callback pipeline (auth, cache, validation, error metrics)
16 grpc gRPC inference endpoints (incl. ensemble DAGs)
17 config_templates Config templates, env vars, multi-env server.yaml
18 tls_mtls TLS/mTLS + live certificate rotation
19 canary Canary traffic weights + x-lite-version pinning
20 overload_control max_inflight, queue timeouts, priorities, deadlines
21 admin_security Admin gRPC on its own UDS, access control, audit log
22 warmup Model warmup + readiness state machine
23 advanced_routing sequence_id stickiness + DecoupledInfer 1:N
24 proxy_security Trusted-proxy client IP, CORS, WebSocket Origin gate

See examples/README.md for learning path and usage details.

API Endpoints

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases miraserver

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229