Project
Kuvert
Gift cards, punch cards and tickets that Danish businesses sell from their own website. Built and run together with Adsmark.
- Bun
- Hono
- React
- Postgres
- Stripe Connect
- Apple Wallet
- Google Wallet
What it is#
Kuvert lets restaurants, cafés, venues and salons sell digital gift cards, punch cards and tickets from their own website. The buyer pays with MobilePay, card, Apple Pay or Google Pay and gets a code and a QR code straight away, by email or as a card in Apple Wallet or Google Wallet. Staff redeem it at the counter on the phone they already have.
Table booking can be added on. It covers ordinary restaurant booking, and a nightclub mode where a club sells its tables as packages for the night.
I build and run Kuvert together with Adsmark, the marketing agency in Vejle whose clients it was first made for. Adsmark looks after content and marketing. I look after the product, the code and the running of it.
Why it was needed#
A small business that wants to sell gift cards online usually ends up with a platform where the shop looks like someone else's, or a WooCommerce plugin nobody maintains once the agency has moved on. Neither handles tickets for a Friday night, a punch card for ten coffees or a gift card spent over three visits.
Kuvert does all of it on the business's own website, and the sales, the redemptions and the bookkeeping sit in one dashboard.
Decisions that shaped it#
Kuvert never holds the money. Payments go through Stripe Connect as direct charges. The buyer pays into the business's own Stripe account, and Kuvert only takes its fee. No customer money sits with us waiting to be paid out. I explain why in Why Kuvert never holds the money.
The card in the wallet shows the real balance. A card saved in Apple Wallet or Google Wallet is a copy, and it doesn't update itself. So whenever a balance changes, Kuvert sends the new balance to Apple and Google as well. More in A saved wallet pass is a copy.
The door scanner is built for a queue. At a club door the staff have a phone in one hand, it's dark and people are waiting. The scanner keeps running between guests, so nobody has to tap the screen after every ticket. More in Teaching a gift card platform to sell a club night.
How it's built#
The API runs on Bun and Hono. The shop, the dashboard and the website are React 19 with Vite, the data is in Postgres through Drizzle, and Hono RPC keeps the types the same from database to browser. Amounts are stored as whole øre. Email goes through PostStack, and it all runs on HostStack.
There are several thousand tests, and they run without a database or a network. The rules for money and access, such as a card's balance, a ticket's state and who gets in at the door, are written once and shared by the API, the shop and the dashboard, so they always agree.
Other projects
PostStack
The email API I built after a year of stitching three vendors together. Transactional mail, newsletters and inbound mail in one product, with a TypeScript SDK, a real test mode and hosting in the EU.
HostStack
The European hosting platform I built because I wanted Render's ease and Hetzner's prices on the same invoice. Git push, deploys without downtime, managed Postgres and Redis, billed in euros.
Skyskraber
A 2D chat world for Danish-speaking adults, in the tradition of Habbo, Netstationen and 3Dbyen. The rooms are floors in a tower. Built and run by one developer.








