Abu Shyed Hemel
All work
ProfessionalMevrik · June 2026 — Present

AI Customer-Support Platform

Cut first-load JavaScript by up to 47% with no change to the UI.

Role
Primary Front-End Engineer
When
June 2026 — Present
Stack
Next.js 16, React 19, TanStack Query
−47%
First-load JS
15× fewer
Search requests
5–10× fewer
Background polls
100–250× faster
Redirects

Overview

An agentic customer-experience platform where support teams and AI agents share one queue. I'm the primary front-end engineer on its web console and work on its internal operations console: the module layout, the typed API layer every screen sits on, the AI assistant's live answer stream, the approval flow for AI-proposed actions, and the performance work that keeps the console light.

The problem

The console was heavy in both directions: every open tab polled the backend on a timer, a plain login form downloaded most of the app's JavaScript, and the busiest screen re-parsed every message on every render.

What I did

Ran a read-only audit across server, bundle, network and rendering, ranked the findings into tiers, and shipped them one item at a time — each measured before and after, with no change to UI or behaviour.

The result

First-load JavaScript fell 17–47% per route, background polling dropped 5–10×, search makes 15× fewer requests, and redrawing the conversations screen no longer re-parses a single message.

How it's built

  1. 01

    Feature modules

    The console is split into independent product areas, so each one loads and evolves on its own.

    Next.js 16 App Router

  2. 02

    Typed API layer

    Types → services → hooks for every domain. Components never call fetch or axios directly.

    TanStack Query v5 + Axios

  3. 03

    Live answer stream

    Server-sent delta frames ordered by sequence number; frames from a stale turn are dropped instead of rendered.

    EventSource + Zustand

  4. 04

    Edge delivery

    Prerendered pages served straight from the static-assets cache instead of waking the server.

    OpenNext on Cloudflare Workers

What I built

  • Token-by-token streaming of the AI assistant's answers over SSE
  • Approve / decline cards before any AI-proposed action runs
  • Route- and action-level permission gates
  • Cookie sessions with CSRF hardening
  • Distinct loading, empty and error states — no fabricated data

A pattern from this project

useDeltaStream.ts
import { useEffect, useRef, useState } from 'react';

type Delta = { turnId: string; seq: number; text: string };

// A generic sketch of the pattern: order frames by seq, ignore stale turns.
export function useDeltaStream(url: string, turnId: string) {
  const [text, setText] = useState('');
  const frames = useRef(new Map<number, string>());

  useEffect(() => {
    frames.current.clear();
    setText('');
    const source = new EventSource(url);

    source.addEventListener('delta', (event) => {
      const delta: Delta = JSON.parse(event.data);
      if (delta.turnId !== turnId) return;
      frames.current.set(delta.seq, delta.text);
      const ordered = [...frames.current.entries()].sort(([a], [b]) => a - b);
      setText(ordered.map(([, chunk]) => chunk).join(''));
    });

    return () => source.close();
  }, [url, turnId]);

  return text;
}

Stack

Next.js 16React 19TanStack QueryZustandSSETailwind v4Cloudflare Workers

Want to talk about this work?

I'm open to front-end and product engineering roles.

Email me