Cookie delivery · Philadelphia

Insomnia Cookies

Insomnia Cookies sells warm cookies for delivery and pickup, including late at night. The shop already had a large site. The work was to keep the slow pages fast, let a store talk to a customer while an order is on the way, and make delivery, pickup and refunds clear.

  • Laravel
  • Vue
  • Nuxt
  • Orders
Visit site
Delivery or pickup, with the address typed in before the order starts.
The store can tell a customer the order is a few minutes late, in the same thread.
A refund for part of an order, with the tax worked out before it is sent.

What was hard

The site was already live, and some pages were waiting on a database with hundreds of millions of rows.

Pages that had to stay fast

A shop this size cannot reload a slow screen while someone is trying to order. We looked for the queries and pages that were waiting, and made those ones answer sooner.

A message while the order is moving

A store needs to tell a customer that the driver is a few minutes late, or that one item has been swapped. That has to arrive while the order is still on the way.

Old jobs in the way

Scheduled jobs and unused code made a small change risky. We removed what was no longer used so the next change had less to trip over.

What we connected

Messages, the order, and the choice between delivery and pickup sit on the same shop.

Store messages

A webhook carries a message from the store to the customer. Delay notes and item swaps show up in the order thread.

Delivery and pickup

The customer picks delivery or pickup, then enters an address. The shop can take the order either way.

Refunds

Staff choose how many of each item to refund. The screen recalculates tax and the total before the refund is submitted.

What we built

Laravel and Vue work on the live shop, checked before it shipped.

The order thread

A message list for one order, so the customer can see what the store just said.

The address step

Delivery or pickup, with the address on the same screen as the choice.

Faster pages

The slow screens were tuned against tables of more than 300 million rows. AI helped draft and review the changes. A person still checked them before they went live.

What the client said

★★★★★ 5.0

“Wizards of Web was a reliable and valuable part of our development team. The work was consistently high quality, communication was clear, and the team was easy to work with.”

Insomnia Cookies

More of our work