nexus
nexus is primarily a Rust codebase using React, Tailwind CSS, Tauri, Tokio, TypeScript, Vite. It has 193 files and about 36393 lines across 11 languages. 40 dependencies are declared in 2 manifest(s). Most files live in `src-tauri/`. Analysis flagged 0 high and 4 medium priority findings.
Languages
Architecture
Modules (folders) and the imports between them. A module sits above the modules it uses; thicker lines mean more imports; a red outline marks a dependency cycle.
Cycles — modules that depend on each other in a loop, which makes them hard to change or test separately:
- src ↔ src/components ↔ src/views ↔ src/views/lab ↔ src/views/settings
- src-tauri/src ↔ src-tauri/src/agents ↔ src-tauri/src/exec ↔ src-tauri/src/intel ↔ src-tauri/src/lab ↔ src-tauri/src/platform
| Module | Files | Lines | Uses | Used by |
|---|---|---|---|---|
| src-tauri/src | 16 | 6,885 | 5 | 5 |
| src-tauri/src/lab | 10 | 6,613 | 2 | 1 |
| src/views | 12 | 3,589 | 5 | 1 |
| src-tauri/src/intel | 7 | 2,690 | 1 | 2 |
| src/views/lab | 11 | 2,659 | 3 | 1 |
| src-tauri/src/agents | 5 | 2,485 | 2 | 1 |
| src/components | 14 | 1,683 | 2 | 4 |
| src-tauri/src/platform | 11 | 1,181 | 1 | 2 |
| src-tauri/src/exec | 3 | 936 | 1 | 1 |
| src/lib | 6 | 824 | 0 | 6 |
| src | 2 | 267 | 3 | 3 |
| tests | 4 | 263 | 2 | 0 |
| scripts | 4 | 176 | 0 | 1 |
| src/views/settings | 1 | 165 | 2 | 1 |
| src-tauri | 1 | 19 | 0 | 0 |
| (root) | 1 | 14 | 0 | 0 |
Where to start reading
Entry points by convention:
- src-tauri/src/lib.rs
- src-tauri/src/main.rs
- src/main.tsx
Most-imported files — changes here reach the most code:
| File | Imported by |
|---|---|
| src/lib/api.ts | 36 |
| src/components/ui.tsx | 30 |
| src/lib/util.ts | 30 |
| src-tauri/src/error.rs | 27 |
| src-tauri/src/lib.rs | 19 |
| src/App.tsx | 17 |
| src-tauri/src/db.rs | 15 |
| src/lib/lab.ts | 14 |
| src-tauri/src/activity.rs | 13 |
| src-tauri/src/ai.rs | 12 |
External packages in use
| Package | Files importing it |
|---|---|
| react | 39 |
| lucide-react | 29 |
| serde | 29 |
| clsx | 25 |
| tauri | 24 |
| rusqlite | 16 |
| tokio | 13 |
| @tauri-apps/api | 11 |
| serde_json | 9 |
| regex | 6 |
| node:fs | 5 |
| node:assert | 4 |
| node:path | 4 |
| node:test | 4 |
| tauri_plugin_dialog | 4 |
| node:url | 3 |
| node:os | 2 |
| tauri_plugin_opener | 2 |
| @monaco-editor/react | 1 |
| @tailwindcss/vite | 1 |
Declared dependencies
package.json npm 19 packages
| @monaco-editor/react | ^4.7.0 |
| @tauri-apps/api | ^2 |
| @tauri-apps/plugin-dialog | ^2 |
| @xterm/addon-fit | 0.11.0 |
| @xterm/addon-search | 0.16.0 |
| @xterm/xterm | 6.0.0 |
| clsx | ^2.1.1 |
| lucide-react | ^0.469.0 |
| monaco-editor | ^0.52.2 |
| react | ^19.0.0 |
| react-dom | ^19.0.0 |
| @tailwindcss/vite | ^4 |
| @tauri-apps/cli | ^2 |
| @types/react | ^19.0.0 |
| @types/react-dom | ^19.0.0 |
| @vitejs/plugin-react | ^4 |
| tailwindcss | ^4 |
| typescript | ^5.6.0 |
| vite | ^6 |
src-tauri/Cargo.toml cargo 21 packages
| chrono | 0.4 |
| ignore | 0.4 |
| keyring | 3 |
| portable-pty | 0.9 |
| regex | 1 |
| reqwest | 0.12 |
| rusqlite | 0.41 |
| serde | 1 |
| serde_json | 1 |
| sha2 | 0.10 |
| tauri | 2 |
| tauri-plugin-dialog | 2 |
| tauri-plugin-notification | 2 |
| tauri-plugin-opener | 2 |
| thiserror | 1 |
| tokio | 1 |
| toml | 0.8 |
| uuid | 1 |
| tauri | 2 |
| tokio | 1 |
| tauri-build | 2 |
Findings
4 medium · 3 info — from NEXUS's analysis: possible secrets, committed environment files, very large files, missing tests, README, licence or CI, and code markers.
| Severity | Finding | Where |
|---|---|---|
| medium | 1088 lines; consider splitting this file | src-tauri/src/lab/runtime.rs |
| medium | 1200 lines; consider splitting this file | src-tauri/src/lab/download.rs |
| medium | 1039 lines; consider splitting this file | src-tauri/src/lab/infer.rs |
| medium | 1033 lines; consider splitting this file | src-tauri/src/lab/bench.rs |
| info | Code marker (to-do, fix-me or hack note) | src-tauri/src/projects.rs:201 |
| info | Code marker (to-do, fix-me or hack note) | src-tauri/src/projects.rs:835 |
| info | Code marker (to-do, fix-me or hack note) | src-tauri/src/stress_tests.rs:149 |
Repository
| Branch | main |
| Commits | 8 |
| Contributors | 1 |
| First commit | 2026-11-11 |
| Last commit | 2026-11-17 |
| Uncommitted changes when generated | 74 |