This monorepo contains code for the fallback and lite apps, as well as a UIKit for components they share.
To get started:
git clone https://github.com/morpho-org/morpho-lite-apps.git
cd morpho-lite-apps
# Install packages
pnpm install
# Run
pnpm run fallback-app:dev # ← for fallback app
pnpm run lite-app:dev # ← for fallback app
After running the commands above, open http://localhost:5173/ in your browser to use whichever app you ran.
A resilient frontend, designed for emergencies with minimal dependencies
- 🦋 View your deposits in MetaMorpho vaults
- 🌌 View your borrow positions
- 📤 Withdraw from MetaMorpho vaults
- ⚡️ Repay loans, add collateral, and remove collateral
- ⛓️ Support any chain with Morpho contracts
- 🏗️ Requires no additional infrastructure/services
A lightweight frontend, designed for rapid multichain expansion without compromising quality in the main app
All features from the Fallback App, plus:
- 👀 Explore all whitelisted vaults and markets, rather than just those you've used before
- 📥 Deposit or open new positions
- ✨ View Merkl rewards campaigns for lending and borrowing on Morpho
- 🏎️ Faster -- calls are tuned for Alchemy rather than public RPCs
If you want to give your users a tailored experience across chains, the Lite App can also be whitelabeled. It only takes a few minutes to add your logo and deploy to Vercel.
A package containing core components that are shared across apps
- various shadcn components with Morpho styling
- robust
useContractEvents
hook with adaptiveeth_getLogs
fetching strategies - utility hooks like
useDebouncedMemo
,useDeepMemo
, anduseKeyedState
(the latter being useful in avoiding state desychronization when switching chains) - tevm for rapid development of type-safe lens contracts
- a
restructure
function that can be used in the "select" parameter ofuseReadContracts
to recover objects rather than arrays -- quite useful, but use judiciously
Both apps are single page apps built with React 19, Vite, shadcn, and wagmi.
The Lite App uses React Router v7 (BrowserRouter
) to enable URL-based navigation. If you're deploying
somewhere other than Vercel, take care to redirect all URL's to the route index.html
, similar to what's done here.
You're reading the monorepo summary. For more details on individual apps, check out their respective READMEs: