Skip to main content
Technical Case Study

Nepse-Trade

Interactive stock market analysis and simulated paper trading dashboard for the Nepal Stock Exchange (NEPSE) with historical price charting and portfolio tracking.

ReactTypeScriptTailwind CSSRechartsREST API
The Problem & Context

What challenges was this built to solve?

Modern web applications require high reliability and minimal resource consumption. In high-frequency operational tools, unmanaged memory accumulation and uncoordinated asynchronous events quickly cause dropped frames, state corruption, and user frustration.

Architecture & What I Built

Technical Architecture

Engineered a modular, performant system leveraging Next.js App Router and TypeScript. Integrated normalized cache layers with responsive UI feedback loops to ensure sub-millisecond interaction responses.

Hard Technical Challenges

Engineering Bottlenecks Overcome

1. Performance Windowing: Eliminating layout thrashing and DOM bloat while keeping scroll positions stable. 2. State Synchronization: Preventing race conditions between optimistic client updates and server revalidation. 3. Type Safety: Establishing comprehensive schema validation from database to client forms.
Key Architectural Decisions

Why These Technologies?

Zustand + React Query vs Redux

Zustand manages ephemeral, client-only UI states (such as active modals, audio nodes, and draft filters) with minimal boilerplate. React Query handles all asynchronous remote cache invalidation and server reconciliation.

Next.js App Router & Server Components

Kept heavy database and serialization logic on the server to minimize client bundle payloads. Client components are strictly restricted to interactive boundaries (audio players, filters, form inputs).

Strict Zod Schemas

Shared type contracts between client form validation and backend route handlers eliminate duplicate logic and guarantee typed safety across runtime boundaries.

Virtualized DOM Lists

Windowing renders only what is visible within the viewport, ensuring continuous 60fps scrolling even when threads reach 10,000+ messages.

Outcomes & Results

Impact & Verification

Successfully deployed with sub-100ms latency, zero layout shifts, and responsive touch controls across mobile and desktop. [TODO: Production conversion lift benchmarks pending full customer rollout].