At-Tuhfa: A gift shop,
end to end.

A gift shop’s storefront, and the point of sale and back office behind its counter.

Real screens from a demonstration shop: the At-Tuhfa catalogue and prices, with about 1,350 invoices across 90 days. The customers, staff and every figure are invented, and the storefront uses stock photography.

At-Tuhfa · Shop overview
The shop overview: revenue, gross profit, net profit and money owed across the top, a 30-day revenue trend, and the profit after everything
The At-Tuhfa storefront on a phone, opening on “Find a gift that feels like a treasure” with buttons to browse departments and gift ideas by occasion
The point of sale on a phone: search, filters and a two-column grid of products with price and stock

At-Tuhfa is a gift shop in Bangladesh: showpieces, attar, Islamic gifts, clocks, lamps and chocolates, with a gift bag to go with every present. Shoppers want to know what is on the shelves and what it costs. The people behind the counter want to sell quickly, keep the stock honest, chase what is owed and know, at the end of the month, what the shop actually earned. One project serves both.

SECTOR
Gift retail
PLATFORM
Storefront, point of sale and back office
WE DID
Design, frontend, backend, database and documentation
ENGAGEMENT
Build it

Find the gift,
then visit the shop.

The storefront answers the questions a gift buyer actually has. What do you have? What would suit a wedding, an Eid visit or a new baby? What can I get for ৳500? It is built phone-first, because that is where most shoppers will see it.

Visit the storefront
The At-Tuhfa storefront on a phone, opening on “Find a gift that feels like a treasure” with buttons to browse departments and gift ideas by occasion
attuhfa.mahfuz.tech · Gift ideas
Gift ideas by occasion: Eid and Ramadan, wedding and nikah, birthdays, little ones and a new home, each with four suggestions
attuhfa.mahfuz.tech · By budget
Gifts by budget: picks under ৳200, under ৳500, under ৳1,000, and from ৳1,000 up
  • By department

    The shop’s categories grouped the way a shopper thinks, each with a “from” price, so nobody has to guess whether a section is in budget.

  • By occasion

    Eid and Ramadan, weddings, birthdays, little ones and a new home, for the shopper who has not decided yet.

  • By budget

    Picks under ৳200, ৳500 and ৳1,000, an Islamic corner of its own, and gift bags from ৳80 at the counter.

It is for discovery and a visit to the shop. Every word and price lives in one data file, so the page is fully static and keeps working even if the back office is down.

Takings are easy.
Profit is the hard part.

A shop owner can tell you today’s takings. Ask what the shop earned and the answer gets vague, because the honest version needs four things at once: what the goods cost, what went out on credit, what came back or broke, and what the month’s overheads were.

Those four numbers usually live in four different places: a cash drawer, a notebook, somebody’s memory and a shoebox of bills. At-Tuhfa’s back office keeps them in one system and does the subtraction, so the last line, the one the owner actually wanted, is on the screen without anybody reaching for a calculator.

At-Tuhfa

Profit after everything

  1. +Gross salesThe counter
  2. −ReturnsReturns
  3. =Net revenue
  4. −Cost of goodsPurchase batches
  5. =Gross profit
  6. −ExpensesExpenses
  7. =Operating profit
  8. −Stock written offRemovals
  9. =Net profit

Scan, sell, print.
Next customer.

The register is its own world: no sidebar, no dashboard chrome, nothing to click by accident during a queue.

At-Tuhfa · Point of sale
The till: one search box for name, SKU or barcode, category and brand filters, and every product in stock with its price and stock level

Search by name, SKU or barcode. A hardware scanner types into the same box, and the grid narrows to the product. Anything out of stock never appears, so a cashier cannot sell what is not there.

Every sale lands
in the books.

Seventeen back-office screens sit behind one sign-in. These six are the ones an owner opens first.

At-Tuhfa · Shop overview
The shop overview: revenue, gross profit, net profit and money owed across the top, a 30-day revenue trend, and the profit after everything

One screen answers “how are we doing?”. Revenue, gross profit, net profit and money owed sit across the top. Beneath them: a revenue trend, a profit chain from takings down to what the shop kept, the products earning their shelf space, and what is running low.

Six roles,
one editable grid.

Access is not compiled in. The SuperAdmin ticks a page-by-role grid, and it takes effect on the user’s next click: in the sidebar, on the page and on the API behind it. Staff land on the till; everyone else lands on the dashboard.

SUPERADMIN
Administers everything, and cannot be locked out: it is deliberately not on the grid.
OWNER
The shop owner.
ADMIN
A trusted manager who also handles money and staff.
MANAGER
Runs the floor and the stock: products, purchases, removals and setup.
STAFF
The cashier: sells, takes returns and payments, and by default never sees a cost price.
CUSTOMER
Reserved for buyers rather than shop staff.
At-Tuhfa · Settings
The page permission grid: every page down the side, the Owner, Admin, Manager, Staff and Customer roles across, ticked cell by cell

The paper trail

Every request that changes data is recorded: who, what, when, from which address, and each changed field’s value before and after. Nobody can edit or delete the log, the SuperAdmin included. Beside it, a one-click backup downloads the whole database, and a restore puts it back.

At-Tuhfa · Settings
The audit log: the time, actor and role, action, entity, change and result of every request, a refused one included

No slides.
Just the app, running.

Three silent clips, recorded straight from the demonstration shop.

One shop, one workflowFrom the storefront to a sale at the counter, and on into the books.23 seconds, no sound
Scan, sell, printSearch for attar, scan a barcode, take mobile banking, print the receipt.20 seconds, no sound
The story behind every salePurchase batches, who owes what, and a year of profit and loss.16 seconds, no sound

One process,
one port.

The storefront and the point of sale are one Next.js and NestJS project, served by one Node process on one port. One deployment, one certificate, one log to read.

  • 17 back-office screens, plus the storefront
  • 16 backend service modules
  • 18 database models
  • 6 roles on an editable grid
  • 26 selling units, whole and fractional
  • 2 languages of user manual
EXPERIENCENext.js 16 · React 19 · TypeScript · Tailwind CSS 4 · shadcn/ui
STATE & FORMSTanStack Query · Redux Toolkit · React Hook Form + Zod · Recharts
SERVICESNestJS 11 · 16 modules · class-validator · Swagger
DATAPostgreSQL · Prisma 6 · 18 models · an append-only ledger
PLATFORMRotating JWT cookies · Helmet · rate limiting · Winston logs
  • Permissions live in the database

    One table feeds the sidebar, the route guard and the API guard, so the menu and the API can never disagree.

  • Every stock change locks its rows

    A sale, return or removal runs in one transaction, so two tills selling the last item at the same moment cannot both succeed.

  • Numbers come from a sequence

    INV-, PAY- and RTN- numbers are drawn inside the transaction that writes the document, never worked out from a row count.

  • The shop’s day is Dhaka’s day

    Times are stored in UTC, but “today” and every daily bucket follow Asia/Dhaka, on the server and in the browser.

  • The ledger only grows

    Each movement records the balance before, the change and the balance after, so a disputed due can be walked back line by line.

  • The manuals are generated

    Fourteen chapters in English and Bangla compile into two searchable manuals that print as a real book.

See it for yourself,
edges included.

Being straight about the edges is more useful than pretending there are none.

What it doesn’t do yet

  • Online ordering

    The storefront has no cart, payment or delivery. It is for discovery and a visit to the shop.

  • Tax at checkout

    A tax rate is stored in Settings, but it is not applied to a sale.

  • Reprinting a receipt

    It prints once, when the sale completes.

  • Password reset

    An administrator sets passwords; there is no self-service reset.

Have something
worth building?

Tell us what it has to do, and what happens if it fails. We'll take it from there.

  1. 01A person reads it

    Not a routing queue and not an auto-responder. Someone who could work on it reads it first.

  2. 02We reply within two days

    From aethrasoft@gmail.com, on working days, with a real answer rather than a calendar link.

  3. 03Or we point elsewhere

    If we are not the right team for it, we say so and suggest who might be. That costs us nothing.