loading
Engineering notes Rev. 2026-11-25 Scope Production systems, 2025–2026 ← Portfolio

What I build, and what I refuse to let it do.

This page shows the systems underneath the work: how they are structured, what was genuinely hard, and the rules I hold each of them to. Online stores, a restaurant menu, WebRift OS (my studio's operating system), an ordering platform and a trading platform's interface.

All of it comes from code I wrote and can walk you through line by line. Where a system isn't finished, it says so.

Background. Self-taught, coding since 2020, and not officially an engineer yet, though the work here is engineering-level. I spent three months of summer 2025 as a software developer intern at Telecloud Vision in Beirut, worked full-time on Aris AI from October 2025 to April 2026, and founded WebRift in April 2026. One restaurant client is described without its name; everything else is named. Figures are counted from the repositories.

6 Systems written up
five named
128 MB Workers memory limit
the WASM kernel fits
27→0 Dependency audit findings
on Trendeall
534 Playwright + axe tests
WCAG 2.2 AA
01

Systems

Six builds · one client name withheld

Ordered by how much of the stack I owned. Each entry states what the system does, the parts that were genuinely hard, and where it stands today — including the ones that aren't deployed.

Live
Role
Full-stack
Platform
Next.js 16 · Payload 3 · Neon · R2
Counted
21 collections · 42 migrations · ~340 Vitest cases

Trendeall — e-commerce platform trendeall.com →

A retail client's online store, built from scratch on Next.js 16 and Payload 3, with Neon Postgres for data and Cloudflare R2 for media. I work across all of it: schema, checkout, caching, backups and the deploy path. HypeWalk, below, runs on the same platform.

The hard parts

  • Checkout can't oversell. Stock is decremented with a conditional update inside the same transaction as the order, so two buyers racing for the last unit can't both win.
  • Promo codes and receipt fingerprints are taken with SELECT … FOR UPDATE locks, so a code can't be spent twice and a receipt can't be reused.
  • An outage traced to uncached catalogue reads: 5 GB of egress in 12 days. Fixed with a tag-invalidated cache and ISR, so an edit clears the pages it touches and nothing else.
  • Nightly pg_dump backups, AES-256 encrypted, and restore-tested into a throwaway Postgres. A backup that has never been restored is a hope.
  • Dependency audit findings taken from 27 to 0, and about 340 Vitest cases.
  • Next.js 16
  • Payload 3
  • TypeScript
  • PostgreSQL
  • Neon
  • Cloudflare R2
  • Vitest
  • pnpm
  • Vercel
Live · on Cloudflare Workers
Role
Full-stack, platform migration
Moved
Vercel → Cloudflare Workers
Counted
~500 Vitest cases · 59 Playwright tests

HypeWalk — sneaker store at the edge hypewalk.store →

Another retail client's sneaker store, on the same platform as Trendeall, which I moved from Vercel to Cloudflare Workers: OpenNext for the Next.js build, Hyperdrive in front of Postgres, R2 for images, and D1 and Durable Objects alongside them.

The hard parts

  • Under the Workers connection pool, transaction rollbacks were silently doing nothing, so a failed write could leave partial changes behind. Found and fixed.
  • Workers get 128 MB of memory; the old image library needed 107 MB for a single image. I wrote a resize kernel in AssemblyScript, compiled to WebAssembly, whose output is byte-identical to sharp.
  • Uncached page loads went from about 2.3 s to between 1.2 and 2 s after the move.
  • About 500 Vitest cases and 59 Playwright end-to-end tests.
  • Next.js
  • Payload 3
  • Cloudflare Workers
  • OpenNext
  • Hyperdrive
  • R2
  • D1
  • Durable Objects
  • AssemblyScript
  • WebAssembly
  • Vitest
  • Playwright
My own product
Role
Product, design & build
Counted
100 pages · 224 API routes · ~1,300 tests in CI

WebRift OS

The operating system that runs my studio: leads, proposals, pricing and invoicing, and AI agents that route each task to a local or cloud model. Its video pipeline takes a script to a published video. a language model drafts the script, a voice model voices it, the video is assembled and cut with ffmpeg, and then it is published. n8n runs the automation around it.

The hard parts

  • One pipeline from script to voice to video to ffmpeg to publish, inside a single Next.js 16 app of 100 pages and 224 API routes.
  • SQLite with Litestream replication instead of a database server: one file, continuously replicated.
  • SSRF guards on the routes that fetch a URL for the user, and CSRF checks on the ones that change state.
  • About 1,300 tests, run in CI.
  • Next.js 16
  • TypeScript
  • LLM APIs
  • Voice AI
  • ffmpeg
  • SQLite
  • Litestream
  • n8n
Live demo
Role
Solo, schema to deploy
Period
Apr – Aug 2026
Authored
114 commits
Counted
13 screens · 22 API routes

Ordering & delivery platform

A restaurant ordering platform built end to end for a client: customer storefront, staff back-office, and the operational plumbing between them. Checkout hands off to WhatsApp and cash on delivery, because that is how the market it was built for actually pays — there is no card gateway, and pretending otherwise would have been the easier claim to make.

The hard parts

  • A staff back-office with per-tab permissions carried in a signed token, so a floor account cannot reach the books.
  • Redis in front of the menu: the read path is hot and constant, the write path is one person editing prices once a week.
  • Web push and an installable PWA, so a phone propped on a counter behaves like a point-of-sale terminal.
  • Loyalty mechanics and a taste quiz that personalises the menu — the parts that make a second visit more likely than the first.
  • Next.js 16
  • React 19
  • Supabase
  • PostgreSQL
  • Redis
  • Web Push
  • JOSE
  • Resend
  • PostHog
Live · client domain
Role
Solo, design & build
Period
Aug 2026
Counted
23 tables, all under row-level security

Mahramji — Sea Food & Fish almahramji.com →

A restaurant client's site, built end to end and maintained: a seafood restaurant on the Mina corniche in Tripoli. Guests scan a QR code at the table and read the menu in English or Arabic, priced in dollars or lira. A waiter still takes the order — that is how the restaurant works, and the software had no business changing it. The owner runs the whole site from a dashboard: menu, prices, photographs, hours, hero video, without me.

The hard parts

  • Two currencies and two languages, with right-to-left treated as a first-class layout rather than a flipped stylesheet.
  • Authentication written from scratch: scrypt password hashes, signed JWT sessions, TOTP two-factor, lockout after repeated failures, and an audit log.
  • Row-level security on all 23 tables, so the database enforces who can read and write what, not just the app.
  • The hero video cut from 13.3 MB to 2.7 MB, so the site stays inside its free-tier egress.
  • QR cards, print PDFs and app icons generated from the client's vector logo by script, so a logo revision is a re-run rather than an afternoon.
  • Next.js 16
  • React 19
  • Supabase
  • PostgreSQL
  • RLS
  • scrypt
  • JWT
  • TOTP 2FA
  • Vercel
Full-time · engagement ended
Role
Front-End & UI/UX Developer, full-time
Period
Oct 2025 – Apr 2026
Team
Two developers
Web app
37 routes · 220 components

Aris AI — real-time AI trading platform aristrading.ai →

A trading platform built by a two-developer team. I owned the UI/UX and the visual layer across the web app, and led the marketing site. The code belongs to the company, so I can describe the work but not point you at the commits.

The hard parts

  • A light/dark theme system on CSS variables, carried across 37 routes and 220 components.
  • A mobile-first layer for live trading: its own layout, drawer navigation, fullscreen charts, pull-to-refresh, and the iOS Safari and Android fixes that make it behave.
  • The marketing site, which I led, in Next.js with GSAP.
  • A product-video pipeline on Remotion and Playwright, so product videos are rendered from code rather than edited by hand.
  • Next.js
  • React
  • TypeScript
  • CSS variables
  • GSAP
  • Remotion
  • Playwright
02

The constraint ledger

Eight rules · enforced, not intended

An online store, a restaurant menu and a business operating system have almost nothing in common. What they share is this list. Each rule is a thing the system is not allowed to do, and each one names the mechanism that stops it and the project it comes from — because a rule enforced by good intentions is a rule you find out about in an incident report.

C-01

A sale never takes stock that isn't there.

Enforced byA conditional decrement inside the order's own transaction (Trendeall). The update only succeeds while the stock is still there, so two checkouts racing for the last unit can't both win.

C-02

A promo code is spent once.

Enforced bySELECT … FOR UPDATE on the code and on the receipt fingerprint, inside the checkout transaction (Trendeall). A second request waits for the first, then sees what it did.

C-03

A backup that has never been restored is not a backup.

Enforced byNightly pg_dump, encrypted with AES-256, and restored into a throwaway Postgres to prove it opens (Trendeall).

C-04

A rollback has to actually roll back.

Enforced byChecking transaction behaviour on the runtime the code ships to. On HypeWalk's move to Workers, rollbacks under the Workers connection pool were silently doing nothing; that was found and fixed.

C-05

A memory limit is a design input, not a surprise.

Enforced byFitting the work to the platform, not the other way round (HypeWalk). The image library needed 107 MB per image against a 128 MB Workers limit, so it was replaced with a WebAssembly resize kernel, byte-identical to sharp.

C-06

An admin login is the front door, and it gets locked.

Enforced byAuthentication written from scratch (Mahramji): scrypt hashes, signed JWT sessions, TOTP two-factor, lockout after repeated failures, an audit log, and row-level security on all 23 tables behind it.

C-07

The server only fetches what it is meant to.

Enforced bySSRF guards on the routes that fetch a URL for the user, and CSRF checks on the routes that change state (WebRift OS).

C-08

A page has to work on a slow phone, and for everyone.

Enforced by534 Playwright tests with axe-core checking WCAG 2.2 AA across webrift.dev and this site, a strict Content Security Policy, and a mobile LCP of 2.29 s on throttled Slow 4G with zero layout shift.

03

Stack, by layer

Shipped, not sampled

Listed only where I have run it in something real, and each line says what it actually did. A tool with nothing next to it doesn't belong on a page like this.

Interface
  • React · TypeScript every frontend here, including the visual layer of Aris AI's 220-component web app
  • Next.js 16 App Router, ISR and tag-based revalidation on Trendeall; the 100 pages of WebRift OS
  • CSS variables the light/dark theme system on Aris AI, and on this site
  • GSAP · Lenis interface motion, including the Aris AI marketing site and the page you're reading
  • Three.js the graph behind the name on this site's home page
  • Right-to-left English and Arabic on Mahramji, as a mirrored layout rather than a flipped stylesheet
  • Remotion the product-video pipeline on Aris AI, videos rendered from code
Runtime & services
  • Node.js API routes, server actions, background work
  • Payload 3 the CMS and commerce backend under Trendeall and HypeWalk — 21 collections on Trendeall
  • Cloudflare Workers · OpenNext HypeWalk in production, with Hyperdrive, D1 and Durable Objects
  • AssemblyScript · WebAssembly the image resize kernel that fits inside 128 MB
  • ffmpeg video assembly and cutting in the content pipeline
  • n8n the automation around WebRift OS
Data
  • PostgreSQL the default — conditional updates, row locks, row-level security, ordered migrations (42 on Trendeall)
  • Neon · Supabase managed Postgres, chosen per project rather than by habit
  • SQLite · Litestream WebRift OS's database: one file, continuously replicated
  • Redis read-path caching in front of the ordering platform's menu, where reads dwarf writes
  • Cloudflare R2 product images and media for both stores
AI
  • LLM APIs script drafting in WebRift OS
  • Voice AI the voice stage of the same pipeline
  • Guards SSRF and CSRF protection on the routes that act for a user
Infrastructure
  • Vercel Trendeall and this site, with ISR where the catalogue needs it
  • Cloudflare Workers, R2, D1, Durable Objects and Hyperdrive for HypeWalk
  • Backups nightly pg_dump, AES-256 encrypted, restore-tested into a throwaway Postgres
  • DNS · TLS · environment config the unglamorous half of a launch, which is still mine
Security
  • Authentication written from scratch on Mahramji: scrypt, JWT sessions, TOTP two-factor, lockout, audit log
  • Row-level security on all 23 of Mahramji's tables
  • Content Security Policy strict on this site: every script self-hosted, pinned by an integrity hash
  • Dependency audit findings on Trendeall taken from 27 to 0
Quality
  • Vitest about 340 cases on Trendeall and about 500 on HypeWalk
  • Playwright 59 end-to-end tests on HypeWalk; 534 tests with axe-core (WCAG 2.2 AA) across webrift.dev and this site
  • CI about 1,300 tests on WebRift OS
  • Performance mobile LCP 2.29 s on throttled Slow 4G, CLS 0
04

How the work runs

What you get, beyond the code

Fixes start from evidence

The Trendeall outage was traced to its cause, uncached catalogue reads costing 5 GB of egress in 12 days, before anything changed. The fix was a cache invalidated by tag, aimed at that cause and nothing else.

Numbers come with conditions

A performance claim states how it was measured: 2.29 s LCP on throttled Slow 4G, uncached loads from about 2.3 s to 1.2–2 s after a migration. A number without its test condition isn't a result.

Tests are part of the build

Counted from the repositories: about 340 Vitest cases on Trendeall, about 500 more and 59 Playwright tests on HypeWalk, and about 1,300 running in CI on WebRift OS.

The supply chain is pinned

Every library on this site is self-hosted and pinned by an integrity hash; nothing loads from a CDN. On Trendeall, dependency audit findings went from 27 to 0. A build that can change under you isn't reproducible.

Running cost is a constraint

For a small client the free tier is the budget. Mahramji's hero video went from 13.3 MB to 2.7 MB to stay inside its egress, and Trendeall's catalogue reads went behind a cache.

Handover is the deliverable

Migrations in order and the schema in the repository matching production. Restaurant owners run their own dashboards. The measure of the work is whether it survives me leaving.

If this is the kind of engineering you need, I have room for it.

Full-time and contract, remote, EMEA-friendly hours. I take the systems where being wrong has a cost — money, stock, logins, personal data — and I stay with them after launch. Happy to walk through any of the above in a call, at whatever depth your team wants.