nextdocs-codegraph
Статический граф кода одного репозитория в одном файле SQLite: символы и вызовы через tree-sitter, роуты и подписки, инфраструктура (compose, Helm, Terraform, Ansible, Dockerfile), таблицы и обращения к ним.
Это тот же индексатор, которым пользуется Nextdocs (rag), собранный
отдельно — чтобы граф можно было построить на любой машине, где идёт работа
с кодом, без сервиса и без Postgres.
uv tool install nextdocs-codegraph
# один проход по чекауту
codegraph index /path/to/repo --db graph.sqlite
# вопросы к готовому графу
codegraph impact validateUser --db graph.sqlite
codegraph context validateUser --db graph.sqlite
codegraph stats --db graph.sqlite
# процесс над рабочей копией: индексирует её, пересобирает по изменениям
# и отвечает по HTTP (порт печатается первой строкой stdout)
codegraph sidecar --root /path/to/worktree --state ~/.cache/codegraph/x --port 0
Ответы — JSON, той же формы, что у графа Nextdocs: impact отдаёт
{target, direction, impacted_count, risk, by_depth}.
Поддержаны языки из tree-sitter-language-pack, а кроме кода — compose,
Helm, Kustomize, Terraform, Ansible, CloudFormation/SAM/Pulumi/CDK, Bicep,
Dockerfile, GitHub Actions и GitLab CI.
Сайдкар живёт на одну рабочую копию: /health говорит, готов ли индекс,
/impact?file=&symbol=&dir=&depth= отвечает на вопрос о символе, /reindex
пересобирает насильно. Перед каждым ответом индекс пересобирается, если файлы
копии ушли вперёд, так что незакоммиченная правка видна сразу.
Лицензия — MIT (LICENSE-codegraph); на сервис rag, из репозитория которого
пакет собирается, она не распространяется.
Metadata
Release files for nextdocs-codegraph 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nextdocs_codegraph-0.1.0.tar.gz | 394.2 kB | Without provenance | Details for nextdocs_codegraph-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nextdocs_codegraph-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nextdocs_codegraph-0.1.0-py3-none-any.whl |
Total release size: 731.2 kB
Release files / nextdocs_codegraph-0.1.0.tar.gz
| Download URL | nextdocs_codegraph-0.1.0.tar.gz |
|---|---|
| Size | 394.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ead55ab146ee37da954e786f5be76079813880ba7581593226e095bb4d02c8be
|
|
BLAKE2b-256 checksum How to use checksums |
5dbf08ad0884bc2879a337cb12c278900b950ff8c1db9b64cbfa95f6fe9c7f90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / nextdocs_codegraph-0.1.0-py3-none-any.whl
| Download URL | nextdocs_codegraph-0.1.0-py3-none-any.whl |
|---|---|
| Size | 337.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7ef157fcadf68e228fc5bffb9c2fbf53703e018b1828eff947ae54a71cb94d5
|
|
BLAKE2b-256 checksum How to use checksums |
bbc0af4e1357ba0e015231984c51bf011d00766b65b3b5953e945db89b83bc96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for nextdocs-codegraph 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.