Lightning Fly - A platform to quickly create apps that you can earn through bitcoin lightning payments.
No matter how good your prompt is, result quality varies widely. If the app doesn't work, try the "Regenerate" prompt button.
LNFly has limited knowledge of some lightning tools to enable your generated app to interact with lightning wallets:
- Bitcoin connect (Payment modal, WebLN)
- Lightning tools (Request invoice from lightning address, verify invoice)
- NWC (Make invoice, lookup invoice, pay invoice)
- Signing & posting notes
LNFly focuses on simplicity - 1 html file for frontend, and if needed, 1 deno file for the backend.
LNFly provides information on how to make payments to the LLM through a system prompt.
Deno is secure by default and can be run as child processes without endangering the parent app. The child processes can access the internet, but not the local filesystem (except for a single file, which is used for basic storage if the deno app needs it).
- Basic HTML app generation
- Accountless app management (publishing and unpublishing apps)
- Apps list on homepage
- Prompt suggestions on homepage
- Generate prompt improvement suggestions
- Generate app name from prompt
- Basic app backend generation
- Launching and stopping app backends
- Proxy frontend requests to app backend
- [Lightning Tools] Generate an invoice from a lightning address
- [Lightning Tools] Verify an invoice was paid
- [Bitcoin Connect] Launch Payment modal
- [Bitcoin Connect] Request WebLN provider
- [NWC] Create, lookup and pay invoices
- Generate system prompt based on request
- Allow configuring NWC connection
- Stop app backends automatically after 10 minutes
- Update dockerfile to add fly
- Basic data storage for backend apps (Sqlite)
- Pay to upvote/downvote apps on homepage
- [Nostr Tools] Posting notes
- Basic AI prompting knowledge for app backends (via PPQ.ai)
- React knowledge
- Nostr querying knowledge
- Nostr zaps knowledge
- User accounts
cd frontend
yarn install
yarn dev
This will allow you to access it served as static files from the backend at localhost:3001
.
yarn build
cd backend
cp .env.example .env
yarn install
yarn prisma migrate dev
yarn start
Install fly and run fly launch
and then set appropriate secrets using fly secrets set KEY=VALUE
based on your .env