Wikantik Reader UI - Implementation Plan

A modern, Medium-inspired reading experience built with React.

Overview

Build a standalone React SPA that consumes Wikantik's existing REST API, providing a modern reading experience while the traditional JSP templates handle editing/administration.

Architecture

Core Concept

Technology Stack

LayerChoiceRationale
FrameworkReact 18Industry standard, large ecosystem
BuildViteFast HMR, modern defaults
LanguageTypeScriptType safety, better DX
StateZustandLightweight, simple API
Data FetchingTanStack QueryCaching, background refetch
StylingVanilla CSSNo runtime cost, maximum flexibility

Component Design

Header (responsive)

Article Header


Wiki Content Processing

To bridge the gap between static HTML and a dynamic React app, the parser must:

  1. Transform Links: Convert standard wiki links to React Router internal links.
  2. Lazy Load: Automatically add loading="lazy" to all images.
  3. Horizontal Scroll: Wrap tables in a scrollable div container for mobile responsiveness.

See Also: