Gallery
Overview
- Role
- Full-Stack Developer
- Duration
- Oct 26' – Dec 26'
Larindaroo is the public shop and daily operations workspace for Dr. Zahra Esmaeili’s pharmacy. Shoppers can browse and search in Persian, read detailed product information, check out and follow their orders. Staff can research a listing, prepare its photography, publish it, manage stock by lot, and follow the same order through payment and dispatch. I built both sides and the release, backup and analytics tooling that supports them.
What had to stay consistent
A shopper’s view of a product is the result of several staff decisions. A listing may be revised, stock can move between purchase units, and a bank can confirm payment after the browser has closed. Each interface needed to reflect the right state at the right moment.
- Make the catalog usable in Persian. Search, prices, mixed-language product names and Tehran calendar dates all need to make sense in a right-to-left interface.
- Let staff revise live content safely. Product copy, imagery and homepage collections need private previews, clear publication states and a record of what changed.
- Sell what the pharmacy can fulfil. Counting units alone is insufficient when boxes can be opened, expiry limits change which lots are eligible, and checkout temporarily holds stock.
- Keep the order recoverable. A customer, the pharmacy and the bank can see the same purchase at different points in time. The platform needs a record that ties their actions together.
What customers and staff can do
The work starts before a product reaches the storefront and continues after the customer completes checkout.
Find and understand a product
Search handles Persian spelling variants and groups suggestions into products, brands and categories. A desktop panel and a keyboard-friendly mobile sheet lead into filtered results. Product pages bring together photos, specifications, ingredients, packaging and expiry information where available.
- Meilisearch
- Persian query normalization
- Brand and category landing pages
- Canonical URLs and structured metadata
Publish the pharmacy’s catalog and storefront
Staff edit product drafts, preview them and publish revisions with a change log. They can also manage taxonomy, assemble homepage sections and illustrated collections, schedule announcements, and publish articles with their own media and metadata.
- Tiptap rich text
- Draft and published versions
- Editorial media
- Storefront preview
Research a listing and prepare its images
The optional catalog assistant streams research and suggests changes to product fields for staff to review. Image Studio provides a private before-and-after preview for individual photos, as well as manual rotation, replacement and restoration of the previous image.
- OpenAI-compatible APIs
- SearXNG and provider adapters
- AvalAI Images Edits
- Review before save
Keep physical stock and sellable stock separate
The inventory workspace records receipts, removals, recounts and box openings. Dated and quarantined lots are visible to staff. Checkout assigns eligible lots in earliest-expiry order, and dispatch works from the resulting picking assignments.
- Whole boxes and blister strips
- Per-unit reservations
- Expiry lots
- Stock movement history
Carry the cart through checkout
A guest can build a cart and keep it through phone sign-in. Saved addresses and an Iran-specific province and city selector feed delivery selection. Unit sales, coupons and free-shipping thresholds are reflected in the final total, and a changed price or package requires fresh confirmation.
- Phone OTP
- Saved addresses
- Exact toman arithmetic
- Checkout snapshots
Track fulfilment and resolve exceptions
The staff dashboard provides a shift view of order activity and work needing attention. Order detail records preparation, dispatch and delivery, while the payment queue helps staff reconcile uncertain attempts. Customers can review their orders and payments from their account.
- Order timeline
- Payment reconciliation
- SMS.ir notifications
- Staff and customer views
Results & Impact
- Persian storefrontLive
Shoppers can browse, search, explore product details and follow purchases in a responsive right-to-left storefront.
- Pharmacy operationsTraceable
Product revisions, stock movements and order timelines give staff a record from catalog publication through delivery.
- Commerce workflowRecoverable
Durable cart, stock, order and payment records let staff resolve interrupted handoffs without losing the original purchase terms.
Technology stack
A single Next.js application serves the shop and protected staff routes. Search, background jobs, analytics and deployment tooling have distinct responsibilities around the transactional core.
Application and UI
Next.js App Router · React · TypeScript · Node.js · CSS Modules · Base UI
Server rendering, Server Actions, route handlers, shared interaction primitives and responsive design tokens.
Persian design system
Ravi · Lucide SVG sprites · React Aria · Internationalized Date
Self-hosted type, lightweight icon delivery, RTL controls and Persian calendar selection.
Commerce data
PostgreSQL · Drizzle ORM · Drizzle Kit · node-postgres
Relational records, reviewed SQL migrations and transactional coordination of carts, stock, orders and settlement.
Discovery and performance
Meilisearch · Next.js Data Cache · Sharp
Catalog search from an asynchronous index, versioned public reads and optimized image variants.
Editorial and AI tools
Tiptap · OpenAI-compatible APIs · SearXNG · AvalAI Images Edits
Structured editing, optional web-grounded product research and image previews that staff review before applying.
Commerce integrations
Saman · Zarinpal · SMS.ir · Torob
Payment handoff and verification, transactional SMS, and a feature-gated catalog feed and attributed order reporting.
Operations and analytics
Docker Compose · Caddy · systemd · restic · pgAdmin · Umami
Reverse proxying, supervised services, encrypted backups, database operations and privacy-conscious funnel analytics.
Quality and delivery
GitHub Actions · Vitest · Testing Library · Playwright · Lighthouse
Automated build and release checks, component tests, PostgreSQL integration tests, browser flows and performance audits.
How the platform holds together
The public read path is optimized for browsing. The write path protects purchase terms, stock commitments and settlement evidence when requests overlap or a provider responds late.
Publish with a version bump and a durable indexing job
Versioned reads keep cached listing data consistent after changes. A worker updates the search index asynchronously, so publication can complete independently of the search engine.
Index discovery metadata and resolve sellable stock separately
Meilisearch ranks matches quickly. The storefront checks published product data and availability before displaying purchase options, and checkout validates the final demand again.
Lock the product and allocate eligible stock atomically
The transaction evaluates whole-box and loose-strip demand together. Expiry-aware allocations back the reservation and carry through to picking and dispatch.
Save the accepted purchase terms with the order
The order retains unit, packaging, price and discount details. Staff can explain the original purchase after a listing, coupon or shipping rule changes.
Persist the attempt before redirecting to the gateway
A dedicated handoff page bridges checkout and the provider. Workers and callbacks can reconcile an existing attempt, including when a customer closes the bank tab or comes back later.
Keep drafts, assisted changes and image previews private
An explicit staff decision applies a proposed change. Revision checks protect against stale edits, and Image Studio retains the previous file for restoration.
Release, recovery and measurement
The production deployment packages the web app and operations commands separately. Caddy handles the public edge, and Docker Compose keeps the application, workers, data and optional search services on separate networks and volumes as configured.
- Independent workers handle checkout expiry, payment reconciliation, SMS delivery and search synchronization. Health and heartbeat checks help distinguish a stalled worker from a slow request.
- GitHub Actions builds release images. The release tooling coordinates explicit migrations, readiness checks and recovery. Restic jobs protect the commerce database and media with encrypted backups.
- Umami records storefront events for discovery, cart, sign-in, checkout and confirmation views. Payment settlement remains a commerce-database record.
- Torob has a gated product feed and attributed order reporting in source. Provider commissioning is tracked separately from the live storefront.
A storefront the pharmacy can operate
The most important decisions came from the pharmacy’s daily work: what it takes to publish accurate information, how staff open a box or choose a lot, and what they need to see when a transaction stalls. Designing the staff and shopper workflows together gave the storefront a clear purchase path and the pharmacy a way to trace it afterward.
- Give staff a preview and a revision trail wherever their work changes the public catalog.
- Let search optimize discovery and let transactional records govern purchase and fulfilment.
- Treat release, recovery and measurement as part of operating the product.


