Skip to content
Sina KalantariAll Projects

Gadget and digital goods store

Live at starsor.ir

Starsor

An online store for smart gadgets, digital goods and home tech in Iran. Its prices and stock keep up with its suppliers, and the same stock sells on its own site and on a national marketplace. I'm the developer behind it.

Role
Full-stack developer
Period
2025 — Present
Market
Iran, in Persian
Sells through
Its own site & a marketplace
Starsor home page in Persian: a banner for kitchen appliances, two category banners, a row of nine categories and four service promises
The live home page, in Persian and right to left.

A shop that checks its own shelves

Starsor sells smart gadgets, phone and car accessories, small home appliances and tools to shoppers across Iran. Part of what it sells sits in its own warehouses. The rest ships from suppliers, whose prices and stock change every day.

A store like that goes wrong quietly: a price that is a week old, a product shown as available after the supplier has sold out, the last unit sold twice because it was listed in two places. Most of my work on Starsor is making sure none of that happens, without anyone having to check by hand.

The check nobody has to run

On its own schedule, the store checks the other sites it follows and brings its own price tag and stock count into line. The marketplace listing gets the same count a moment later.

Pick what the check finds.

What the check finds
A simplified model of the check. The product, the sites and the prices are examples.

What a shopper sees

Screens from the live store. The home page is a template I designed and built for Starsor. I reworked the listing and product pages for speed and search.

  1. Starsor home page: an orange deals rail of discounted products with countdowns, two category banners and a shelf of the newest products

    A home page made of shelves

    The home page is a stack of blocks: a banner slider, category shortcuts, four service promises, a deals rail with a countdown, product shelves, brands and the magazine. The owner fills and reorders them from the admin panel, so a seasonal campaign is a change of banners, not a change of code.

  2. Home and kitchen category: a grid of eight products with discount badges, beside filters for brand, colour, tags, price range, discounted items and items in stock

    Narrowing it down

    A category opens as a grid that can be cut down by brand, colour, tag and price range, limited to discounted or in-stock items, and sorted by newest, most viewed, most popular, best-selling or price.

  3. Product page for a video projector, with a special-offer countdown, a stock line reading one unit, the discounted price and an add to cart button, above the product's introduction
    The same product on a phone, with the price and the add to cart button fixed to the bottom of the screen above a note that one unit is left

    A product page that says how many are left

    The stock line on a product page is the count that the scheduled check and every sale keep current, so “only 1 left” means one. Around it sit the things a careful buyer looks for: a countdown on special offers, the price history, a restock alert and side-by-side comparison.

What it does without being asked

The jobs that keep a store honest are the ones people forget. Starsor runs them on a timetable.

  1. On a schedule

    Checks other sites

    Prices and stock are read from a set of other sites and the store's own figures are brought into line.

  2. On every change

    Tells the marketplace

    When a count changes, by a sale, a return, a delivery or a check of the other sites, the same number goes to the marketplace listing.

  3. Every 15 minutes

    Collects marketplace orders

    Orders placed on the marketplace land in the same order list as the store's own and take stock from the same count.

  4. Every 5 minutes

    Follows parcels

    Sent orders go to couriers through a shipping service, and each parcel's tracking status is fetched until it arrives.

  5. On every order

    Messages the team

    A new order reaches the team's group chat with its items and delivery address, wherever it was placed.

  6. When the owner decides

    Runs a campaign

    Discount campaigns with their own prices and dates, and bulk SMS to chosen customers with delivery reports.

That's the project. The rest is how it's built.

From here on, this page is written for technical readers: what I built for it, and how it runs. If you came to see the work itself, you've seen all of it.

Scroll to contact

What I built

Stack

  • Laravel 12
  • PHP 8.3
  • Inertia 2
  • Vue 3
  • TypeScript
  • SSR
  • MySQL
  • Redis
  • Queues
  • Docker

Starsor is one Laravel application that renders its pages on the server through Inertia and Vue 3, with TypeScript on the front end. Since December 2025 I have been the only developer on it.

The parts below are the ones I built for it, and they are where Starsor differs from an ordinary online store.

Crawling other sites

The store can crawl a set of other sites for prices and stock and bring its own figures into line. The work is spread over queued jobs and leaves a report of what changed.

Two kinds of stock

Warehouse stock and supplier stock live in separate columns, and what can be sold is their sum minus the units reserved by open orders. Keeping them apart closed the gaps that showed phantom stock and allowed overselling, and lets the sync rewrite supplier stock without touching what is physically on the shelf.

Marketplace integration

A two-way link with a national marketplace's seller API: matching store products to marketplace listings, pushing stock and price on every local change, importing orders under both of its fulfilment models, processing its webhooks, and syncing invoices and commission so each order's real margin is visible. Marketplace orders are packed and labelled from the store's own admin.

Several storefronts, one application

A storefront is a row, resolved from the request's host by middleware before anything else reads a setting. Each one carries its own template, settings, payment gateways, SMS account, price multiplier and campaigns, with its own canonical URLs, robots file and sitemap. The admin panel stays host-agnostic and manages all of them.

Shipping and tracking

Orders are pushed to a shipping aggregator, whose provinces, cities and couriers are mirrored locally. Tracking updates arrive by webhook and by a five-minute sync, and tracking codes are normalised so each one opens the right courier's page.

Search and speed

Canonical URLs built from an id and a slug, breadcrumbs that match their structured data, per-storefront sitemaps, and a signed, cursor-paginated product feed for a price-comparison engine. For page speed: responsive image variants, theme components loaded on demand, the UI library split out of the vendor bundle, and cache headers that let a CDN hold static files.

Running it

Docker images for the application and for the workers that run the queues and the SSR server, behind nginx; a pipeline that builds and deploys on every push to the main branch; every call to a third party logged for 72 hours with filters in the admin; a scheduler health check; and about 250 automated tests that run against an in-memory database.

Let's Work Together

Have a project in mind?

I'm always open to discussing new ideas, collaborations and exciting opportunities.