codeprysm-backend

Crates.iocodeprysm-backend
lib.rscodeprysm-backend
version0.1.0
created_at2026-01-05 23:24:25.77269+00
updated_at2026-01-05 23:24:25.77269+00
descriptionBackend abstraction layer for CodePrism
homepagehttps://github.com/codeprysm/codeprysm
repositoryhttps://github.com/codeprysm/codeprysm
max_upload_size
id2024779
size210,019
Andrey Moor (andrey-moor)

documentation

README

codeprysm-backend

Crates.io Documentation License: MIT

Backend abstraction layer for CodePrism.

Part of the CodePrism project.

Features

  • Unified API: Single interface for graph and search operations
  • Async Support: Full async/await support with Tokio
  • Lazy Loading: On-demand loading of graph partitions
  • Connection Pooling: Efficient Qdrant connection management

Installation

[dependencies]
codeprysm-backend = "0.1"

# With GPU acceleration
codeprysm-backend = { version = "0.1", features = ["metal"] }  # macOS
codeprysm-backend = { version = "0.1", features = ["cuda"] }   # Linux/Windows

Usage

use codeprysm_backend::Backend;
use std::path::Path;

// Create a backend instance
let backend = Backend::new(
    Path::new("/path/to/repo"),
    "http://localhost:6334",
).await?;

// Search for code
let results = backend.search("authentication handler", 10).await?;

// Get node details
let node = backend.get_node(&node_id).await?;

// Find relationships
let relationships = backend.get_relationships(&node_id).await?;

Architecture

The backend coordinates between:

  • codeprysm-core: Graph storage and traversal
  • codeprysm-search: Vector search and embeddings
  • codeprysm-config: Configuration management
┌─────────────────────────────────────────┐
│           codeprysm-backend             │
├─────────────┬─────────────┬─────────────┤
│ codeprysm-  │ codeprysm-  │ codeprysm-  │
│    core     │   search    │   config    │
└─────────────┴─────────────┴─────────────┘

License

MIT License - see LICENSE

Commit count: 12

cargo fmt