MCPcopy Index your code
hub / github.com/GaloyMoney/cala

github.com/GaloyMoney/cala @0.15.11

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.15.11 ↗ · + Follow
1,044 symbols 3,528 edges 110 files 9 documented · 1% updated 6d ago0.15.11 · 2026-06-10★ 334 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cala

Cala is a robust ledger system developed by Galoy, designed to handle complex financial transactions and accounting operations. It provides a flexible and scalable solution for managing financial records with strong consistency guarantees.

Features

Core Capabilities

  • Double-Entry Accounting: Built-in support for double-entry bookkeeping principles ensuring accurate financial records
  • SQL-Compatible: Engineered to work with SQL databases (PostgreSQL) for robust data persistence and querying
  • Strong Consistency: Ensures accuracy and reliability of financial records
  • Real-time Processing: Efficient transaction processing suitable for production financial systems

API & Integration

  • GraphQL API: Modern API interface with built-in playground for easy integration and testing
  • Extensible Architecture: Modular design with support for custom extensions via the Node.js bindings
  • Transaction Templates: Customizable transaction templates for common financial operations
  • Multi-Currency Support: Handle transactions across different currencies

Developing

Dependencies

Nix package manager

  • Recommended install method using https://github.com/DeterminateSystems/nix-installer curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

direnv >= 2.30.0

  • Recommended install method from https://direnv.net/docs/installation.html: curl -sfL https://direnv.net/install.sh | bash echo "eval \"\$(direnv hook bash)\"" >> ~/.bashrc source ~/.bashrc

Testing

Run unit tests with:

make reset-deps next-watch

Extension points exported contracts — how you extend this code

IncludeMigrations (Interface)
(no doc) [1 implementers]
cala-ledger/src/migrate.rs

Core symbols most depended-on inside this repo

id
called by 566
cala-ledger/src/entry/entity.rs
insert
called by 197
cala-ledger/src/param/mod.rs
create
called by 159
cala-ledger/src/journal/mod.rs
push
called by 136
cala-cel-interpreter/src/value.rs
account_sets
called by 128
cala-ledger/src/ledger/mod.rs
push
called by 103
cala-ledger/src/balance/effective/data.rs
accounts
called by 71
cala-ledger/src/ledger/mod.rs
code
called by 59
cala-ledger-core-types/src/primitives.rs

Shape

Function 459
Method 426
Class 111
Enum 46
Interface 2

Languages

Rust100%

Modules by API surface

cala-cel-parser/src/cel.rs294 symbols
cala-ledger/src/account_set/mod.rs36 symbols
cala-ledger/src/balance/mod.rs29 symbols
cala-cel-interpreter/src/interpreter.rs25 symbols
cala-ledger/src/balance/effective/data.rs22 symbols
cala-ledger/src/account_set/repo.rs22 symbols
cala-ledger/src/account/entity.rs22 symbols
cala-ledger/src/transaction/entity.rs21 symbols
cala-ledger/src/tx_template/entity.rs20 symbols
cala-ledger/src/velocity/account_control/value.rs19 symbols
cala-ledger/src/ledger/mod.rs19 symbols
cala-ledger/src/velocity/mod.rs18 symbols

Datastores touched

pgDatabase · 1 repos

For agents

$ claude mcp add cala \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page