Inspiration
For about a decade, if you met someone in Lagos you didn't ask for their number. You asked for their PIN. BlackBerry Messenger gave everyone an 8-character code you could hand out without handing over yourself. Nigeria was one of its biggest markets. Then BBM shut down in 2019, and everybody went back to giving out phone numbers.
That trade got worse every year. In Nigeria your SIM is linked to your National Identification Number by law, and your bank sends its OTPs to that same number through your BVN. So when you give your number to a buyer on a marketplace, a dispatch rider, a date, or a stranger in a group chat, you're giving them the key that opens your identity and your bank account. And you can't take it back.
I wanted the PIN back, plus the one thing BBM never had: a way to take it back.
What it does
PinMe is a messenger where you chat by PIN instead of phone number.
- One step to start. Pick a name and you have a PIN like
2A4F9C1B. No phone number, no email, no account. - One PIN per part of your life. Keep a PIN for friends, one for Marketplace, one for the weekend hackathon. Nothing on the server links them, so nobody can tell they belong to the same person.
- Burn a PIN. When a buyer gets weird, burn your Marketplace PIN. A little ghost carries it off, the server retires it forever, and everyone who only had that PIN is cut off. They can't message it, re-add it, or find your other PINs.
- The BBM parts people actually loved. D and R markers, "Ada is writing a message...", PING!!! that shakes the other person's screen, status and personal message, broadcasts, and scannable PIN codes. There are also groups of up to 10.
- Private by design, not by promise. Messages are encrypted in your browser using the same design as Signal (X3DH and the Double Ratchet), so each message has its own key. The server relays ciphertext and deletes it after delivery. Private keys never leave your device. If you want a copy, there's an encrypted backup file that you keep yourself.
- Installs like an app. It runs on phones and laptops. With notifications on, you get an empty "you have something waiting" wake-up, never the content.
The README spells out exactly what the server can and can't see, because a privacy app that hides its limits isn't one.
How I built it
One Cloudflare Worker serves the app. Each PIN gets its own Durable Object, a tiny mailbox that holds the live connection and any undelivered ciphertext for that PIN, which makes burning a PIN as simple as closing one mailbox for good. Neon Postgres is a directory of public keys, invites and contact pairs, and it never holds a message. Encryption is libsodium in the browser. Every message type is one Zod schema shared by client and server.
The whole thing was built with Kiro, from spec to shipped. I wrote a spec, Kiro built the core of the app from it in one evening, steering kept the security rules in front of the agent the whole way, and property-based tests proved the important parts. Then my laptop broke, and I built the rest from my phone using Kiro Web and the Kiro Android app.
Challenges I ran into
Keeping the server unable to link your PINs. The easy design has a user table with your PINs in it. Burning would mean nothing then, because the server would know who you are. Every PIN has its own keys, its own mailbox and its own push endpoint, and the spec has a rule that no column, log or payload can mention two PINs of one owner.
Burn has to really burn. Burning closes the mailbox's sockets, deletes queued messages, removes invites and contact pairs, tells former contacts, and refuses that PIN forever, including if you burn it twice. Each of those is an acceptance criterion with a test.
My laptop died halfway through. It went into the shop, and I finished the project from my phone through Kiro Web cloud sessions and the Kiro Android app. It changed how I think about where coding can happen.
Accomplishments I'm proud of
- A Signal-style Double Ratchet with forward secrecy, in a hackathon project, with older clients still able to talk to newer ones.
- 369 passing tests, 30 of them property-based, plus a Playwright test that runs the full demo in two browsers. It then searches every network request and every database row for the message text and PIN label, and fails if it finds them.
- Burning a PIN is actually satisfying. The ghost is my favourite thing in the app.
What I learned
A spec isn't paperwork if the tool executes it. Writing "the server never stores a message" as an acceptance criterion meant it became a test, and later a property, instead of a hope.
I also learned I can ship from a phone if I have to. I wouldn't have believed that before this hackathon.
What's next for PinMe
- Put it in the hands of the people it's for: market sellers, dispatch riders and anyone who runs a business from their personal number. I want to start with a small group in Lagos and watch how they use multiple PINs.
- Disappearing messages, and a "burn after" timer on a PIN, so a weekend PIN can burn itself on Monday.
- PinMe is MIT licensed, and I'd love contributors. The
.kirofolder is the best onboarding doc in the repo: read the spec and you know how the whole system works.
Built With
- cloudflare-workers
- drizzle
- durable-objects
- fast-check
- indexeddb
- kiro
- kiro-android
- kiro-web
- libsodium
- neon
- playwright
- postgresql
- pwa
- react
- signal-protocol
- tailwindcss
- tanstack-start
- typescript
- vitest
- web-push
- webcrypto
- zod
- zustand
