Architecture of copilotkit/opendots
copilotkit/opendots is 122 source files holding 360 symbols across 4 modules, written mainly in TypeScript, JavaScript, Dockerfile. The largest module is src, with 67 files, and 3 files are entry points into the dependency graph.
How opendots fits together
User text and calls, Space pages, and Slack thread messages enter through the client entry point src/client/App.tsx, a React UI for Spaces, chat, and per-Dot tool actions. Requests reach the server entry point src/server/app.ts, where createApp builds the server routes, including a computer service backed by persisted workspace data. src/server/dot-agent.ts contains the server-side Dot agent code, and it is the file the index marks as a hotspot. src/shared defines domain shapes such as task status, computer permissions, and page-review payloads that the client and server both use. src/browser performs a safety-gated HTTP(S) fetch of user-provided references, blocking local and private networks and disallowing redirects. The output is timeline updates in chat and approved pages saved to Spaces.
Largest modules
- src: 67 files and 10,507 lines of code
- tests: 35 files and 3,798 lines of code
- root: 3 files and 51 lines of code
- deployment: 1 file and 27 lines of code
Languages
By file count: TypeScript 102 files, JavaScript 3 files, Dockerfile 1 file.
Documentation
Repowise documents opendots in 105 pages generated from the source, 12 of them written explanations of the repository and its modules. Module guides include:
- src/browser: Browser Communication Transport
- root: Build and Lint Configuration
- deployment/computers: Computer Hardening
More on opendots: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos