This repository contains example applications demonstrating how to integrate Money Dev Kit into your projects. These examples use published npm packages and represent real-world usage patterns.
A Next.js application demonstrating the Money Dev Kit checkout flow integration. This example shows:
- Client-side checkout navigation with
useCheckouthook - Hosted checkout page rendering with
<Checkout />component - Server-side API route setup
- Next.js configuration with the MDK plugin
Live Demo: https://mdk-nextjs-demo-brown.vercel.app
Each example is a standalone project with its own dependencies and setup instructions. Navigate to the example directory and follow its README.
cd mdk-nextjs-demo
npm install
npm run dev- Node.js 20 or later
- npm or pnpm
- Money Dev Kit API credentials (get them at moneydevkit.com or run
npx @moneydevkit/create)
All examples in this repository use published versions of Money Dev Kit packages:
@moneydevkit/nextjs- Next.js integration components@moneydevkit/core- Core Lightning functionality@moneydevkit/create- CLI for generating credentials
For the latest stable versions:
npm install @moneydevkit/nextjsFor beta releases:
npm install @moneydevkit/nextjs@betaWant to add a new example? Follow these guidelines:
- Each example should be in its own directory at the repository root
- Use published npm packages (not local tarballs)
- Include a detailed README with setup instructions
- Add your example to the CI workflow matrix in .github/workflows/ci.yml
- Ensure the example builds and runs successfully
This repository is for user-facing examples with published packages. For integration testing with local development builds, see the mdk-checkout repository.
MIT