Skip to main content

Code knowledge graph for Claude Code & AI coding agents — index TypeScript, Python, NestJS, FastAPI, React into Neo4j and query architecture in Cypher. Note: v0.2.0 is deprecated, use 0.1.x.

Project description

codegraph

Map a TypeScript codebase into Neo4j with NestJS + React awareness, then query it.

Quick start

cd codegraph

# 1. Python env
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt

# 2. Neo4j
docker compose up -d
# Browser UI:  http://localhost:7475   (neo4j / codegraph123)
# Bolt:        bolt://localhost:7688

# 3. Index easy-builder
.venv/bin/python -m codegraph.cli index /home/edouard-gouilliard/easy-builder

# 4. Validate
.venv/bin/python -m codegraph.cli validate /home/edouard-gouilliard/easy-builder

# 5. Ad-hoc query
.venv/bin/python -m codegraph.cli query "MATCH (e:Endpoint) RETURN e.method, e.path LIMIT 10"

See queries.md for example queries.

Schema

Nodes: File, Class, Function, Interface, Endpoint, Hook, Decorator, External Edges: IMPORTS, IMPORTS_EXTERNAL, DEFINES_CLASS, DEFINES_FUNC, DEFINES_IFACE, EXPOSES, INJECTS, EXTENDS, IMPLEMENTS, RENDERS, USES_HOOK, DECORATED_BY

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cognitx_codegraph-0.1.0.tar.gz (126.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cognitx_codegraph-0.1.0-py3-none-any.whl (109.4 kB view details)

Uploaded Python 3

File details

Details for the file cognitx_codegraph-0.1.0.tar.gz.

File metadata

  • Download URL: cognitx_codegraph-0.1.0.tar.gz
  • Upload date:
  • Size: 126.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for cognitx_codegraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5647238739876b447fb868be1962be8279a68d321014548775e66708f5f54d9d
MD5 070000e65bf6cfe1fe10f7bb49a93709
BLAKE2b-256 e5f94a4b2e06c0628b8d84db0cdc62c3d58e716d66b6cb5e31f118724bda5a14

See more details on using hashes here.

File details

Details for the file cognitx_codegraph-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cognitx_codegraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 672ca876b5ae19e0d545583ed00c89d66e745c0bc7b2dd9ea2d6f79bf1b9377f
MD5 f87d6e3789c45b33e9fb76c270bbbb05
BLAKE2b-256 90ab66025af919cfdb0b8870eb7857b3f14ffe66a96986f3a722123f6d1d4a91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page