How 0xff-ai/omnifs works
omnifs projects external services and data sources into read-only filesystem paths. Users configure providers and credentials with the CLI, which changes daemon-owned mount state over local typed RPC; the daemon prepares serving generations, and attached host or guest filesystems expose those mounts for ordinary file tools. The README also documents multiple filesystem protocols/runtimes, OAuth-based sign-in, and live inspection. Edges follow README-documented flows or indexed source references; unsampled implementation details are represented without speculative call chains.
Main entry points: mod.rs CLI commands · manager.rs Mutation and generations · server.rs VFS wire serving · cli.rs CLI entry and routing
Components 24
CLI and setup
- CLI commands
crates/omnifs-cli/src/commands/mod.rs - CLI entry and routing
crates/omnifs-cli/src/cli.rs - Filesystem specs
crates/omnifs-cli/src/client_fs_state.rs - Client directories
crates/omnifs-cli/src/client_dir.rs - Typed RPC client
crates/omnifs-cli/src/rpc.rs - Status and inventory
crates/omnifs-cli/src/status.rs - Output rendering
crates/omnifs-cli/src/ui/output.rs - OAuth flows
crates/omnifs-auth/src/request.rs
Daemon control
- Control service
crates/omnifs-daemon/src/control/service.rs - Control mapping
crates/omnifs-daemon/src/control/mapping.rs - Mutation and generations
crates/omnifs-daemon/src/manager.rs - Durable state
crates/omnifs-state/src/lib.rs
Projection runtime
- Namespace engine
crates/omnifs-engine/src/namespace/implementation.rs - Provider SDK handlers
crates/omnifs-sdk/src/handler.rs - Provider context
crates/omnifs-sdk/src/cx.rs - Built-in providers
providers/github/src/lib.rs - Provider artifacts
crates/omnifs-provider/src/manifest.rs
Filesystem serving
- VFS wire serving
crates/omnifs-vfs/src/server.rs - FUSE filesystem
crates/omnifs-fuse/src/filesystem.rs - NFS export and server
crates/omnifs-nfs/src/export.rs - Filesystem runtimes
crates/omnifs-cli/src/filesystem_driver.rs
Inspection and events
- Live Inspector
crates/omnifs-inspector/src/app.rs - Event wire format
crates/omnifs-api/src/events/wire.rs
Other components
- User / scripts
Connections 24
- User / scripts → CLI commands: runs commands
README.md - CLI commands → CLI entry and routing: dispatches to
crates/omnifs-cli/src/commands/mod.rs - CLI entry and routing → Output rendering: formats results
crates/omnifs-cli/src/cli.rs - CLI commands → Filesystem specs: manages specs
README.md - Filesystem specs → Client directories: uses root paths
crates/omnifs-cli/src/client_fs_state.rs - CLI commands → Typed RPC client: sends mutations
README.md - Typed RPC client → Control service: calls locally
README.md - Control service → Control mapping: maps requests
crates/omnifs-daemon/src/control/service.rs - Control service → Mutation and generations: submits changes
- Mutation and generations → Durable state: persists state
- Mutation and generations → Namespace engine: prepares serving
- Built-in providers → Provider SDK handlers: implements handlers
- Provider SDK handlers → Provider context: uses context
crates/omnifs-sdk/src/handler.rs - Provider artifacts → Mutation and generations: pins mount artifact
README.md - Namespace engine → VFS wire serving: serves namespace
- Filesystem runtimes → FUSE filesystem: launches runtime
- Filesystem runtimes → NFS export and server: launches runtime
- FUSE filesystem → VFS wire serving: attaches over wire
README.md - NFS export and server → VFS wire serving: attaches over wire
README.md - Typed RPC client → Status and inventory: fetches status
README.md - CLI entry and routing → Live Inspector: opens live view
README.md - Event wire format → Live Inspector: feeds records
- User / scripts → VFS wire serving: reads projected paths
README.md - OAuth flows → CLI commands: supports sign-in