Shefitjon Bregu

I build Magento storefronts and report numbers I can defend.

I'm a frontend developer in Tirana. I work with Hyvä, Alpine.js and Tailwind on German-speaking stores. Since 2024 I've also been building side projects on Salesforce.

My M.Sc. thesis predicts shopping-cart abandonment. Its model runs further down this page, and you can see which shoppers it gets wrong.

The first result was 99.7%. It was wrong.

My thesis predicts shopping-cart abandonment. An early version of the pipeline scored an F1 of 0.997. Some of its features were computed from events that happen after the moment of prediction, so the model was reading the answer.

I removed every one of those features, rebuilt the rest with a strict time cutoff and reported what was left: about 0.47 on 19,989 held-out sessions. Predicting abandonment from browsing alone is hard, and that is the finding.

99,941 sessions, 20 features, three models. Code, data notes and results on GitHub.

F1 score on held-out sessions

Model Bar F1 ROC-AUC
First version Withdrawn: features leaked future events 0.997 n/a
Neural network 0.481 0.634
Logistic regression 0.467 0.618
Random forest 0.438 0.621
  1. 1 Engineer Build session features that only use events from before the first add to cart.
  2. 2 Predict Train logistic regression, a random forest and a neural network on those features.
  3. 3 Explain Show which behaviour drove each prediction with SHAP and LIME.
  4. 4 Respond Have a language model write a recovery message, and a second model score it.

Try the model: will this shopper buy?

This is the logistic regression from the thesis, running in your browser with the weights it was fitted with. Below are six real sessions it never trained on. Pick one, then change it.

chance of a purchase

Leaves Buys

What moved the result

Toward leaving Toward buying

Each bar is that group's share of the model's log-odds. Bars stop at ±1.5; an arrow marks a larger value.

Storefronts that stay fast and pass the security policy.

Day to day I build and maintain Magento 2 stores on Hyvä. Most of that work is components: product pages, carts, checkouts and the page-builder elements content teams use.

Magento 2
Open Source storefronts, layout XML, view models
Hyvä
Themes, checkout and custom modules under a strict CSP
Alpine.js
Small components that pass a Content Security Policy
Tailwind CSS
Token-driven themes, one template for several palettes
Magewire
Server-driven components for checkout and account pages
PHP 8
Templates, blocks and the glue between frontend and backend
Docker
Local environments that match production
OpenMage
Keeping a Magento 1 store healthy

One template, two palettes

Canvas weekender

Waxed cotton, 38 litres

€ 189,00

1

Your cart is empty

Stores with several brands often copy a template to change its colours. This card is one template: the palette is a class on the wrapper that swaps CSS variables. The Alpine component has no inline expressions, so it runs under the strict Content Security Policy a Hyvä checkout needs. This whole site ships with that policy.

Side projects on Salesforce since 2024.

I started experimenting with Salesforce in 2024 and have been building side projects on it since, alongside the storefront work. What I already know carries over: component-based frontends, cart and checkout logic, and the integrations between a store and the systems behind it.

If your Salesforce team wants someone who has shipped commerce frontends and checks their own numbers, I'd like to hear from you.

Get in touch

The quickest way to reach me is a message on LinkedIn. My code is on GitHub.