# marginfi > marginfi is a decentralized borrowing and lending protocol built on the Solana blockchain by mrgn labs. Users lend supported Solana tokens to earn yield and borrow against supplied collateral. There is no hosted REST API — integration is done on-chain through the marginfi-v2 Solana program using the official TypeScript and Rust (CLI) SDKs. This llms.txt was generated by the API Evangelist enrichment pipeline from the public developer surface; it is not published by marginfi. ## Developer surface - [Documentation](https://docs.marginfi.com): marginfi protocol and developer documentation. - [Introduction](https://docs.marginfi.com/introduction): core concepts of decentralized borrowing and lending on marginfi. - [SDKs overview](https://docs.marginfi.com/sdks): the recommended official libraries for interacting with the protocol. - [TypeScript SDK](https://docs.marginfi.com/ts-sdk): the marginfi-client-v2 and mrgn-common NPM packages. - [Rust (CLI) SDK](https://docs.marginfi.com/rust-sdk): the marginfi command-line interface. - [GitHub organization](https://github.com/mrgnlabs): mrgnlabs open-source repositories (mrgn-ts, marginfi-v2-docs, marginfi-sdk). - [Launch App](https://app.marginfi.com): the marginfi web application. - [X / Twitter](https://x.com/marginfi) ## Packages - [@mrgnlabs/marginfi-client-v2 (npm)](https://www.npmjs.com/package/@mrgnlabs/marginfi-client-v2): official TypeScript SDK (deprecated; maintainers point to p0-ts-sdk). - [@mrgnlabs/mrgn-common (npm)](https://www.npmjs.com/package/@mrgnlabs/mrgn-common): shared helpers/types for the TypeScript SDK. - [@mrgnlabs/mrgn-utils (npm)](https://www.npmjs.com/package/@mrgnlabs/mrgn-utils): utility helpers. - [marginpy (PyPI)](https://pypi.org/project/marginpy/): early-alpha first-party Python SDK. - [marginfi-cpi (crates.io)](https://crates.io/crates/marginfi-cpi): Rust CPI interface crate for the marginfi-v2 program. ## Protocol - [marginfi-v2](https://docs.marginfi.com/mfi-v2): the on-chain lending/borrowing program. - [mrgnlend](https://docs.marginfi.com/mrgnlend): the lending product. - [mrgnloop](https://docs.marginfi.com/mrgnloop): leveraged looping. - [Liquid Staking Token (LST)](https://docs.marginfi.com/lst) - [Protocol design](https://docs.marginfi.com/protocol-design) - [Listing criteria](https://docs.marginfi.com/listing-criteria) - [FAQs](https://docs.marginfi.com/faqs)