Architecture of stablyai/orca
stablyai/orca is 36,527 source files holding 215,330 symbols across 13 modules, written mainly in TypeScript, JavaScript, Swift. The largest module is src, with 30,548 files, and 39 files are entry points into the dependency graph.
How orca fits together
src is the largest module and holds the desktop app, where agents are started and their worktrees and diffs are managed. mobile is the React Native companion app that lets a phone watch worktrees, read terminal output and send commands to a desktop running Orca. The cloud entry points cloud/apps/relay-ingress/src/index.ts and cloud/apps/push/src/index.ts connect the mobile app to a desktop host and send push notifications to phones. native holds small packages that give Orca access to Windows and macOS features that Electron and Node cannot call directly, and its macOS package is a standalone Swift binary. config contains the scripts that check, build and package Orca, along with the build and test configuration those scripts use.
Largest modules
- src: 30,548 files and 3,278,366 lines of code
- mobile: 3,446 files and 362,073 lines of code
- config: 819 files and 121,695 lines of code
- cloud: 327 files and 50,314 lines of code
- tests: 228 files and 32,659 lines of code
- native: 76 files and 14,828 lines of code
- docs: 32 files and 1,756 lines of code
- .github: 21 files and 1,385 lines of code
Languages
By file count: TypeScript 34,464 files, JavaScript 876 files, Swift 76 files, Kotlin 32 files, Shell 24 files, Python 17 files.
Documentation
Repowise documents orca in 12,728 pages generated from the source, 60 of them written explanations of the repository and its modules. Module guides include:
- src/shared/agent-hook-listener: Agent Hook Listener
- src/main/native-chat/agent-session-journal: Agent Session Journal
- src/main/native-chat/agent-session-wire: Agent Session Wire
- mobile/packages/expo-two-way-audio/android/src/main/java/expo/modules/twowayaudio: Android
- cloud/apps: Apps Packages (5)
More on orca: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos