Skip to content

chahakgoswami/corefin

Repository files navigation

image

The world's open source lending platform

Corefin is the world's first open source lending platform. It allows you to deeply customize this software for your company's needs. It uses the Actual/365 method for calculating interest. See information from the CFPB.

Built by the engineers who built Square's first Consumer Lending product (Afterpay's Pay Monthly).

Prereqs

  • Make sure you have docker installed.
  • Make sure you have Java17 installed.

brew install openjdk@17 Check which Java versions you have installed: /usr/libexec/java_home -V Set the java version: export JAVA_HOME=$(/usr/libexec/java_home -v 17.0.10)

Getting Started

  • Boot it up

make docker-stubs

make db-migrate

make run-server

  • Create a 0% loan
curl --location 'http://localhost:8080/loans' \
--header 'Content-Type: application/json' \
--data '{
    "term": 6,
    "originatedAmount": 1000.00,
    "currency": "USD",
    "targetInterestRate": 0.10,
    "effectiveInterestRate": 0.10,
    "externalReference": "orderId_12345",
    "startDate": "2024-03-01",
    "endDate": "2024-03-01",
    "timezone": "America/Los_Angeles",
    "region": "US",
    "state": "CA"
}'
  • View installment schedule make db-shell select loan_installment_id, num_term, principal_amount, interest_amount from loan_installment;

Coming soon!

  • Accepting on-time, early and late payments
  • Paid, hosted version
  • BaaS integration for 1-line loan originations
  • Management portal
  • Auditability and reporting features
  • Authentication

Roadmap

  1. Completing the open source core LMS software.
  2. Simplify your embedded finance stack by offering underwriting and hosting services
  3. Build out auditability and reporting features.

Contact us at [email protected] for more information.

About

The open-source lending platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages