_  
FRAGMENT is the Ledger API for engineers that move money.
Pleo LogoTrucksmarter LogoFragile LogoNala Logo
Why FRAGMENT
Postgres wasn't built for money and forces you to invent your own ways to track it. FRAGMENT comes with real-time, double-entry accounts that store and track every penny out of the box.
Postgres
FRAGMENT
_
How it works
1
 Design your Schema
Choose from a library of example Ledgers. Use our Schema designer to customize them to match your flow of funds.
2
 Link your
financial systems
Track the state of every transaction from your bank, card and payment systems. Instantly update your Ledger when they change.
3
 Integrate your product
Generate an SDK to read and write balances. Call our API to check or update them.
Store your Schema
mutation StoreSchema(
  $schema: SchemaInput!
) {
  storeSchema(schema: $schema) {
      schema {
        name
        version {
          version
          created
          json
        }
      }
    }
  }
}
Post an entry
mutation WalletTransfer(
  $ik: SafeString!
  $entry: LedgerEntryInput!
) {
  addLedgerEntry(
    ik: $ik, entry: $entry
  ) {
    lines {
      amount
      account { path }
    }
  }
}
Query a balance
query GetBalance(
  $account: LedgerAccountMatchInput!
) {
  ledgerAccount(
    ledgerAccount: $account
  ) {
    balance(
      consistencyMode: "strong"
      at: "2022-02-01"
    )
  }
}
Work with us to design your Ledger in 45 minutes.
Performance
FRAGMENT is really fast. Check out our latest load test:
Requests: 19,622,609
Metric
Throughput
Latency
Reads
7,489rps
33ms
Writes
14,578rps
69ms
No one builds their own database. Why build one for money?
©
 FRAGMENT  
2024