A code architecture analysis tool that parses source code and builds a graph representation.
- Parse TypeScript/JavaScript code
- Extract code entities and relationships
- Store the data in a Neo4j graph database
- Export analysis results as JSON
- Visualize code architecture and dependencies
The project follows a monorepo structure using Lerna and Yarn workspaces.
packages/core: Core entities and interfacespackages/parsers-typescript: TypeScript/JavaScript parserpackages/cli: Command-line interfacepackages/mcp: Model-Controller-Provider architecture
- Clone the repository
- Install dependencies:
yarn install- Build the packages:
yarn build# Using the compiled CLI
node packages/cli/dist/index.js analyze ./path/to/repo --output ./outputs/typescript/typescript-analysis-reponame-$(date +%Y-%m-%d).json --include "**/*.ts,**/*.tsx,**/*.js,**/*.jsx" --exclude "**/node_modules/**"Analysis outputs are stored in the outputs/ directory, organized by language:
outputs/typescript/: TypeScript/JavaScript analysis outputsoutputs/python/: Python analysis outputsoutputs/java/: Java analysis outputs
See the outputs README for more details on file naming conventions and usage.
# Build all packages
yarn build
# Build a specific package
yarn workspace @codex-arch/core build# Run all tests
yarn test
# Run tests for a specific package
yarn workspace @codex-arch/core testMIT