Architecture of baarai/artex
baarai/artex is 1,109 source files holding 10,361 symbols across 28 modules, written mainly in Go, TypeScript, JavaScript. The largest module is server, with 261 files, and 3 files are entry points into the dependency graph.
How artex fits together
The server package in server/server.go handles net/http routing, JWT authentication and server-sent events, and its Manager owns tasks, engines and database stores. The agent package runs the security-testing agents and decides each run's model, tools, prompts and budgets before the run starts. agent/tools.go exposes the asset and exploration graphs to the LLM as tools, so agents read and write both graphs during a task. The db package holds the PostgreSQL schema and the code that reads and writes tasks, assets, findings and intercept rules. The enrich package adds DNS and web context to findings, and the evidence package keeps the captured traffic attached to reported findings. The web directory holds the Next.js UI, which is embedded into the Go binary.
Largest modules
- server: 261 files and 58,349 lines of code
- web: 203 files and 56,147 lines of code
- db: 170 files and 40,852 lines of code
- agent: 150 files and 23,052 lines of code
- traffic: 60 files and 20,497 lines of code
- intercept: 46 files and 9,751 lines of code
- notify: 29 files and 4,234 lines of code
- scripts: 19 files and 2,093 lines of code
Languages
By file count: Go 767 files, TypeScript 189 files, JavaScript 18 files, Shell 18 files, Python 14 files, Dockerfile 2 files.
Documentation
Repowise documents artex in 803 pages generated from the source, 38 of them written explanations of the repository and its modules. Module guides include:
- skills/api-recon/scripts: API Recon Harvesting Scripts
- cmd/artex: ARTEX CLI Entry Points
More on artex: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos