Jump to

Navigate the portfolio, run quick actions or ask the AI.

Projectslira

Lira

Invoices, a shop, bookings, tickets, memberships and a wallet in one account for Nigerian small businesses. I built the web app and the API.

FrontendBackend Private source
Lira preview

overview

About Lira

Lira is for small businesses that run on WhatsApp chats, bank-transfer screenshots and spreadsheets. It started as an invoicing tool and grew into one place to bill a client, sell a product, take a booking, sell a ticket, charge a subscription and collect a tip. Every payment lands in a wallet the owner can withdraw to any Nigerian bank account.

I built both halves. The web app has a marketing site, a workspace where owners set everything up, a page for every product their customers open without an account, and an admin console for the Lira team. The API is a FastAPI service that keeps the money, the plans and the background jobs.

The careful part is the money. A payment is credited once, whichever of the redirect or the webhook arrives first. A withdrawal is taken from the ledger before any transfer starts, and a failed transfer puts it back. Every fee is shown on every line. The source code is private, so this page shows the product instead.

Impact
Make getting paid feel boring in the best way: the customer pays in seconds, the owner sees it at once, the fees are plain and the money is theirs to withdraw.

gallery

See it in action

Click any screen to view it full size.

mobile app

Built for the phone

Real screens from the app. Click any screen to view it full size.

Portfolio AI · scoped to Lira

Have a question about Lira?

Ask the assistant about architecture, decisions, trade-offs or delivery. It answers from the published case study.

Ask the AI about this project

problem → solution

The problem, and how it was solved

What needed fixing, and the approach that fixed it.

01 · the problem

What was broken

Small businesses juggle chat threads, transfer screenshots and spreadsheets. Getting paid looks unprofessional, and nobody can see where the money went.

02 · the solution

What was built

I built Lira as a Next.js web app and a FastAPI service. Owners set up each product in a workspace, customers pay on shareable pages with no account, and every payment is credited to one wallet that withdraws to a bank account.

case study

How it came together

From the first constraint to the shipped result.

  1. 01

    Challenge

    Money from six different products had to end up in one place, correctly, and a seller had to be able to trust the number. A customer should never be charged twice, and a seller should never be able to withdraw the same naira twice.

  2. 02

    Approach

    I treated the wallet as the centre and built everything else around it. Each product creates its own record and a unique reference, then the same credit step handles all of them. Customers never sign up. Every public flow works from a link or a token and is confirmed through Paystack.

  3. 03

    Implementation

    The web app is Next.js 16 with React 19, TypeScript, Tailwind CSS 4 and shadcn/ui, with TanStack Query for server state and one API client that refreshes an expired token once and retries. Three shared kits keep the builders, settings and customer pages consistent. The API is FastAPI on MongoDB with Beanie. Paystack payments are confirmed by the return visit and by a signed webhook, and a unique ledger key makes the second one do nothing. Withdrawals debit first and reverse on a failed transfer. A scheduler sends reminders, creates recurring invoices, charges memberships and ends trials, and every job can safely run twice. Email goes through Brevo, images upload straight to Cloudinary, and browser push uses VAPID.

  4. 04

    Outcome

    An owner can sign up, create an invoice, a product or a pay-me page, share the link and watch the money arrive in the wallet. The Lira team can run plans, fees and support from the admin console, and every sensitive action is audited.

  5. 05

    Next improvements

    An admin view of wallets and withdrawals, refunds and chargebacks against the wallet, and automatic reconciliation of the ledger against the Paystack balance.

features

What the product delivers

The capabilities that make it work in production.

  • Invoices and quotes in 25 designs, with a secure pay link, deposits, part payments, reminders and recurring billing.
  • A shop with product pages, a cart, stock, discount codes and pickup or delivery.
  • Bookings with free time slots, opening hours, optional deposits and customer cancellation.
  • Events with ticket types, QR tickets, check-in and attendee export.
  • Memberships with a saved card, automatic renewals, retries and a member portal.
  • A pay-me page for tips and one-off payments, with suggested or fixed amounts.
  • One wallet for every payment, with the fee split on each line and withdrawals to saved, bank-verified accounts.
  • Brand settings that put the owner's colour, cover image and thank-you note on every public page.
  • A 7-day Business trial for new accounts, with plan limits decided in one place.
  • A customer list and books built from every source of income, plus an overview of the month.
  • In-app, email and browser push notifications, with a first-run product tour.
  • An admin console for users, plans, coupons, fees, payments, support, announcements, moderation and an audit log.

stack

Built with

Next.js 16React 19TypeScriptTailwind CSS 4shadcn/uiRadix UITanStack QueryFramer MotionGSAPLenisRechartsPythonFastAPIMongoDBBeaniePydanticPaystackBrevoWeb PushCloudinaryDocker

lessons

Practical takeaways

  • Keeping money in an append-only ledger with a unique key per payment, so a repeat credit is impossible.
  • Debiting before a transfer and reversing on failure, so two quick withdrawals can't spend the same money.
  • Putting every plan rule in one entitlements function instead of checking plan names across routes.
  • Sharing one UI kit across the builders, settings and customer pages so they read as one product.
  • Running reminders, renewals and expiry as jobs that are safe to run twice.

Want something like Lira?

Tell me about the product, the team and the timeline.