Barefi-BTC / barefi
Publicbarefi – TypeScript reference client + simulator for a minimum‑viable Bitcoin DeFi stack: over‑collateralized bareUSD stablecoin, CDP vaults with liquidation math, rBTC‑style liquid staking receipts, and a barefi‑cli to drive the flows locally. Educational foundation for OP_NET, BitVM, or Stacks.
barefi is an educational simulator that teaches people how Bitcoin-backed decentralized finance works. It recreates a simplified version of a 'minimum viable bank on Bitcoin' where users can open vaults (locked collateral positions), mint stablecoins against their Bitcoin, participate in liquidations, and try liquid staking—all in a safe local environment with pretend money. The project is explicitly designed as a learning tool with no connection to real networks or actual funds.
How It Works
You've heard about borrowing and lending with Bitcoin, but everything feels complicated and risky. You find a local simulator that teaches you how it all works.
You download and run a simple program on your computer that creates a safe, fake Bitcoin world where you can experiment without losing real money.
The simulator gives you pretend Bitcoin and stablecoins so you can try everything out without any cost or risk.
You lock up your test Bitcoin as collateral and receive a vault that tracks your position and health in real-time.
You borrow bareUSD against your locked Bitcoin, like taking a loan backed by your savings.
You stake your Bitcoin and receive receipt tokens that track your share of the pool and any yield earned.
You simulate price crashes to understand how vaults become unsafe and what triggers protective measures.
A dashboard shows all your vaults, staking positions, and risk levels so you always know where you stand.
You've learned how collateral, loans, liquidation, and staking work together—and you're ready for the real thing.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.