#cala #ledger #server #record #docker #capabilities #querying #cala-ledger #pg-sq-lx

bin+lib cala-ledger

An embeddable double sided accounting ledger built on PG/SQLx

88 releases

0.4.5 Apr 18, 2025
0.3.24 Apr 9, 2025
0.3.21 Mar 26, 2025
0.3.2 Dec 6, 2024
0.2.30 Jul 23, 2024

#10 in #cala

Download history 219/week @ 2025-01-27 1262/week @ 2025-02-03 886/week @ 2025-02-10 790/week @ 2025-02-17 388/week @ 2025-02-24 663/week @ 2025-03-03 1069/week @ 2025-03-10 939/week @ 2025-03-17 884/week @ 2025-03-24 858/week @ 2025-03-31 1369/week @ 2025-04-07 1302/week @ 2025-04-14 331/week @ 2025-04-21

3,942 downloads per month
Used in cala-server

Apache-2.0

455KB
12K SLoC

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

direnv >= 2.30.0

Docker

Testing

Run unit tests with:

make reset-deps next-watch

Run end-to-end tests with:

make e2e

Running the Server

To run the server:

make run-server

Dependencies

~54–76MB
~1.5M SLoC