Inspiration
A barber, a dog walker, a freelance app developer: their whole business lives in their chats. A client texts "how much do I owe you?" and the owner has to leave the chat, open PayPal, build an invoice, copy a link and come back. They do this dozens of times a week.
I wanted getting paid to take one tap, inside the chat the owner is already in. The keyboard is the one app that is open in every chat, so Muninn lives there.
What it does
Muninn is an iPhone keyboard plus a companion app. You type the way you normally do. Muninn reads the message and offers one-tap PayPal actions:
| You type | Muninn offers | PayPal API |
|---|---|---|
invoice Sam 45 for a haircut |
Invoice $45 · Haircut | Invoicing |
send me 45 for the haircut |
Pay link $45 · Haircut | Orders |
remind Leo |
Nudge Leo · $150 owed | Invoicing (remind) |
pay Joe $20 |
Send $20 · Joe | Payouts |
refund sam $20 |
Refund $20 · Sam | Payments |
bill ana $40 every month |
Bill $40/mo · Ana | Subscriptions |
pause ana's plan |
Pause $40/mo · Ana | Subscriptions |
make me a projection for next 3 months |
A sales chart with a forecast, drawn in the keyboard | Transaction Search |
The app shows money in, who is late, disputes and a daily brief. Sign-in uses PayPal Connect (Partner Referrals). Webhooks keep everything live.
Nothing moves money without your tap. Every money action has a confirm step that names who gets told and where the money goes. The server then re-checks every amount and recipient before it calls PayPal.
How we built it
- iOS: SwiftUI app plus a custom keyboard extension. Charts and drawings use Excalidraw (MIT) in a web view that is created only when needed and torn down on close.
- Server: Hono on Node 24 with SQLite, deployed on Railway. Personal data is encrypted per user.
- PayPal (sandbox): Partner Referrals, Invoicing, Orders, Payments, Payouts, Subscriptions, Transaction Search, Disputes and Webhooks.
- AI pipeline:
- Regex first. Plain chat ("haha ok") never reaches a model, so it costs nothing and nothing leaves the phone.
- A fast intent router (TypeSafe jev, about 0.2 s) picks the action.
- Llama 3.3 70B via OpenRouter reads only the details regex can't.
- A business profile ("What does your business do?") goes into every prompt. A barber's "how much?" means a haircut. An app developer's means a price per screen.
- Prices come only from your catalog, never from the model. If an item has no price, Muninn offers "Add a price" instead of guessing.
Challenges we ran into
- Keyboard memory. iOS kills keyboard extensions at tight memory limits. I measured the keyboard, made the drawing engine export-only, and freed caches on memory warnings. I also stress-tested 20 chart opens with typing in between: memory stayed flat at about 70 MB, with no crash and no blank panel.
- Working for every business, not one demo. I built a test matrix of 24 business types and 163 real-style messages. It covers per-hour, per-word, per-session and monthly pricing, typos, Hinglish and German. On held-out messages that were never used for tuning, accuracy went from 92% to 98%.
- Knowing when not to help. "remind Emma to bring the leash" must stay quiet, while "remind Leo" must nudge. False chips destroy trust faster than missing ones.
- Auth that holds up. Sign-in is Apple or email, with lockouts and single-use Apple nonces. Logout wipes every cache, in the app and in the keyboard. A dedicated security review found no critical or high issues.
Accomplishments that we're proud of
- PayPal in every chat app. Invoices, pay links, reminders, refunds, monthly plans and payouts, all from the keyboard in iMessage, WhatsApp or anywhere else you type. No app switching.
- Nine PayPal APIs working together: Partner Referrals, Invoicing, Orders, Payments, Payouts, Subscriptions, Transaction Search, Disputes and Webhooks.
- It works for any business, not one demo. It was tested on 24 kinds of business (barber, plumber, tutor, lawyer on retainer, translator per word, SaaS, a Berlin bike shop in German, a Bangalore designer in Hinglish) and was 98% correct on messages the AI never saw while being tuned.
- Money never moves on a guess. Prices come only from your catalog, every money action needs your tap and a confirm step, and the server re-checks every amount and recipient.
- A live sales forecast inside the keyboard. Type "make me a projection for next 3 months" and get a chart of your real PayPal sales with a 3-month estimate, then send it as a link.
- Built to not crash. The keyboard survived 20 chart opens in a row with flat memory, and it recovers by itself if iOS kills the drawing process.
- Shipped, not mocked. It runs on a live server and is on TestFlight today.
What we learned
Calling PayPal is the easy part. The hard part is reading messy human text and offering exactly the right action, then making sure money never moves on a guess. Small details, such as naming the exact invoice in a confirm screen, matter more than clever models.
What's next for Muninn
Live PayPal (beyond the sandbox), more currencies, automatic payment reminders, invoice QR codes for in-person payments, and dispute replies from the keyboard.