A Fedi Mod for swapping between Lightning and on-chain Bitcoin using the Boltz API, and stablecoins using the FixedFloat API.
- Swap between Lightning Network and on-chain Bitcoin
- Support for stablecoin swaps (e.g., USDC, USDT)
- Real-time rate fetching and updates
- Reusable Fedi Mod UI components
FF_API_KEY
- FixedFloat API key
FF_API_SECRET
- FixedFloat API secret
No env variables required for Boltz, all signing done using throwaway keys generated per swap.
- Install packages with
bun install
- Set the required environment variables in a
.env.local
file - Run the development server with
bun run dev
- Build the mod with
bun run build
- Start the production server with
bun run start
- Next.js 14
- React
- TypeScript
- Tailwind CSS
- @fedibtc/ui components
- FixedFloat API
/app
: Next.js app router components and pages/components
: Reusable Fedi Mod components/lib
: Utility functions and API clients/public
: Static assets
- FixedFloat: Used for currency swaps and rate information
- Boltz: Implemented but not currently used (potential future integration)
For more details on the implementation, refer to the source code in the /app
and /lib
directories.