dshbox/cordis-rs

dshbox★ 0RustLast synced: 2026-08-16

Open on GitHub

Runtime-agnostic Rust port of Cordis, the plugin framework at the core of DeepSeek Harness — scoped dependency injection, lifecycle-owned effects, events, structured logging. Zero dependencies.

README excerpt

cordis-rs English 简体中文 A runtime-agnostic Rust port of Cordis 4.x — the plugin framework at the core of DeepSeek Harness, vendored there as @deepseek-ai/cordis . This implementation is based on Cordis 4.0.1 from DeepSeek Harness. Its core structure mirrors the original Context / Events / Fiber / Logger / Reflect / Registry / Service modules and preserves automatic activation when dependencies arrive, automatic unloading when dependencies disappear, scoped isolation, effect cleanup, and all five event dispatch modes as closely as Rust allows. Cordis is a context-based plugin framework for applications that need explicit dependency injection, scoped services, lifecycle-managed cleanup, structured events, and configuration-driven plugins. cordis-rs preserves that model while replacing JavaScript-only mechanisms (Proxy, prototype inheritance, callable objects, decorators, and any ) with explicit Rust APIs, Arc , and checked downcasts. Status The crate currently ports the complete core runtime : TypeScript Cordis Rust API Status new Context() / extend() Context::new() / extend() ✅ isolate() and shared labels isolate() / isolate with() ✅ intercept() intercept() / intercepts() ✅ Proxy-bac…

View full README on GitHub →
Tools / Devcordisdeepseek-harnessdependency-injectiondsh-plugineventsplugin-frameworkportrust

Category