How izwi-ai/izwi works
Izwi is a local-first voice AI product delivered through a CLI, desktop app, web UI, and local server. A typical user starts the server or opens an interface, selects or downloads a model, submits audio or text for inference, and receives speech, transcript, chat, or diarization results. The graph separates user-facing workflows, server APIs and batch processing, model lifecycle, and inference. README statements establish several product-level links; unsampled handler internals are shown only where their connections are documented, otherwise omitted.
Main entry points: api Server APIs · mod.rs Inference engine · media_ingest.rs Media ingest · manager.rs Model lifecycle
Components 17
User interfaces
- CLI commands
crates/izwi-cli/src/commands - Desktop app
crates/izwi-desktop/src/app/server.rs - Web workflows
ui/src/features
Server workflows
- Server APIs
crates/izwi-server/src/api - OpenAI gateway
crates/izwi-gateway/src/app/prefix_router.rs - Batch worker
crates/izwi-server/src/batch_runtime/worker.rs
Model lifecycle
- Model lifecycle
crates/izwi-core/src/model/manager.rs - Model registry
crates/izwi-core/src/models/registry.rs - Artifact downloader
crates/izwi-core/src/artifacts/downloader.rs
Inference runtime
- Inference engine
crates/izwi-core/src/engine/mod.rs - Audio processing
crates/izwi-core/src/audio - Model families
crates/izwi-core/src/models/architectures
Media and jobs
- Media ingest
crates/izwi-server/src/media_ingest.rs - Batch job store
crates/izwi-server/src/batch_runtime/store/mod.rs - Speech history
crates/izwi-server/src/speech_history_store.rs - Local media storage
crates/izwi-server/src/state.rs
Other components
- User
Connections 20
- User → CLI commands: runs commands
README.md - User → Desktop app: uses app
README.md - User → Web workflows: uses workflows
README.md - User → OpenAI gateway: calls API
README.md - CLI commands → Server APIs: starts server
README.md - Web workflows → Server APIs: submits workflows
- Desktop app → Server APIs: hosts server
- OpenAI gateway → Server APIs: routes requests
crates/izwi-gateway/src/app/prefix_router.rs - Server APIs → Inference engine: requests inference
- Server APIs → Media ingest: ingests audio
crates/izwi-server/src/media_ingest.rs - Server APIs → Speech history: stores history
crates/izwi-server/src/api/speech_history/handlers.rs - Server APIs → Batch worker: submits jobs
crates/izwi-server/src/api/speech_history/handlers.rs - Batch worker → Batch job store: claims and settles
crates/izwi-server/src/batch_runtime/worker.rs - Media ingest → Batch job store: registers assets
crates/izwi-server/src/media_ingest.rs - Media ingest → Local media storage: writes media
crates/izwi-server/src/state.rs - Model lifecycle → Artifact downloader: downloads artifacts
crates/izwi-core/src/model/manager.rs - Model lifecycle → Model registry: refreshes catalog
crates/izwi-core/src/model/manager.rs - Inference engine → Model registry: dispatches models
crates/izwi-core/src/engine/mod.rs - Inference engine → Model families: runs inference
crates/izwi-core/src/engine/mod.rs - Inference engine → Audio processing: processes audio