Skip to main content

A simple graph builder based on LSP calls

Project description

This repo introduces a method to represent a local code repository as a graph structure. The objective is to allow an LLM to traverse this graph to understand the code logic and flow. Providing the LLM with the power to debug, refactor, and optimize queries.

Supported Languages

  • Python
  • JavaScript
  • TypeScript
  • Ruby
  • Go
  • C#

Example

This graph was generated from the code in this repository.

Quickstart

Get started with blarify by following our quickstart guide:

➡️ Quickstart Guide

Dependencies

SCIP Support (Optional, for faster reference resolution)

For enhanced performance, blarify supports SCIP (Source Code Intelligence Protocol) which provides up to 330x faster reference resolution compared to LSP.

Install the SCIP Python indexer:

# Install scip-python globally via npm
npm install -g @sourcegraph/scip-python

Note: SCIP provides identical accuracy to LSP but with dramatically better performance. When available, blarify will automatically use SCIP for reference resolution.

Article

Read our article on Medium to learn more about the motivation behind this project:

➡️ How we built a tool to turn any codebase into a graph of its relationships

Future Work

  • Gracefully update the graph when new files are added, deleted, or modified
  • Add more language servers
  • Experiment with parallelizing the language server requests

Need help?

If you need help, want to report a bug, or have a feature request, please open an issue on this repository.

You can also reach out to us at Discord

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

blarify-1.3.6.tar.gz (322.3 kB view details)

Uploaded Source

Built Distribution

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

blarify-1.3.6-py3-none-any.whl (427.6 kB view details)

Uploaded Python 3

File details

Details for the file blarify-1.3.6.tar.gz.

File metadata

  • Download URL: blarify-1.3.6.tar.gz
  • Upload date:
  • Size: 322.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.7 Darwin/24.6.0

File hashes

Hashes for blarify-1.3.6.tar.gz
Algorithm Hash digest
SHA256 dc2c4edab8c1b5581d6f4e8458e0b6c48d7984cd458a9df20ae6a0ef59a54f39
MD5 558906198bc2d344cb886bcd2d9ba829
BLAKE2b-256 6ffef8640053300ca4dc5ba3e6d38d385f9fb2f2fda658d100d14b7929d07f04

See more details on using hashes here.

File details

Details for the file blarify-1.3.6-py3-none-any.whl.

File metadata

  • Download URL: blarify-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 427.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.7 Darwin/24.6.0

File hashes

Hashes for blarify-1.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1e6e1e7e6c4099f239b2af79bfdfa964f05f13b21f91a32d07791b229dd7623e
MD5 544a1c3f39cde47038164c9e5831a206
BLAKE2b-256 118019f1b4f05ca7fa9152d231b566a6adf9b380fdf1b7c33d471c741c3c84f5

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