Product Engineering——3 min read

Building a Touch-First Museum Kiosk with Next.js

Designing a kiosk experience for large displays: navigation, touch interaction, media delivery, and performance decisions for a Next.js museum application.

Visitor exhibition gallery displaying artwork inside a museum

When web developers think about responsive design, our minds naturally visualize the transition between desktop monitors and smartphone screens. We test with cursor hovers, responsive developer toolbars, and vertical touch scrolling. However, deploying a web application to a physical museum touchscreen kiosk—such as our work on the QOGLR historical exhibit platform—shatters conventional web design assumptions.

A public museum kiosk operates in an entirely different physical and technical context. Visitors stand three feet away, interacting with fingers on mounted 55-inch commercial displays. The application runs continuously for ten hours every day without a page reload, and content must captivate casual museum visitors within seconds. Designing for this environment requires rethinking ergonomics, media pipelines, and software stability.

Touch-first ergonomics on large displays

On a desktop website, buttons can comfortably measure 32 pixels because a mouse cursor offers sub-millimeter precision. On a large touchscreen, a 32-pixel button is frustratingly small: adult fingers have an average contact surface of 10 to 14 millimeters, and parallax distortion on thick kiosk safety glass increases touch inaccuracies.

In our kiosk interface, we enforced touch-first ergonomic standards:

• **Target dimensions:** Interactive elements feature minimum bounding boxes of 56px to 64px with generous touch margins.

• **No hover dependency:** Every visual state transition, tooltip, and navigation trigger operates on tap events rather than hover pseudo-classes.

• **Horizontal timelines:** Rather than forcing visitors to scroll long vertical pages, historical regiment campaigns were organized into horizontal scrubbing timelines that feel natural to swipe.

Content management for historical archives

Museum curators need the ability to update historical exhibits, add battle honor descriptions, and upload archival photographs without contacting a software engineer for code changes. Hardcoding exhibits into static templates is unsustainable.

We built an administrative CMS that structures historical data into relational models in Prisma: Regiments, Historical Epochs, Campaign Events, and Archival Media. Curators can organize photo galleries and draft exhibit narratives in a familiar admin interface, while the kiosk application renders the updated archive dynamically.

High-resolution media delivery and Cloudinary pipelines

Historical museum exhibits are visually intensive: curators upload high-resolution scans of antique uniform illustrations, battle maps, and medal honors measuring 4000 pixels across. Serving raw images directly to kiosk hardware would quickly cause memory exhaustion and sluggish frame rates.

We integrated Cloudinary into the CMS upload pipeline. When high-resolution scans are uploaded, Cloudinary automatically generates optimized WebP variants scaled precisely to container widths with responsive srcset candidates. This ensures archival photos load crisply on 4K displays without transferring unnecessary megabytes.

The Android WebView scaling investigation

To package the web application for commercial Android-powered kiosk hardware, we used Capacitor to run the Next.js frontend inside an Android WebView container. During deployment, a distinct technical problem emerged: while layouts rendered properly in desktop Chrome, the Android WebView on large widescreen displays exhibited unexpected image scaling distortions and aspect-ratio cropping.

I conducted a focused technical investigation into the issue. Android WebViews apply device-independent pixel (dp) scaling based on hardware density metrics. On wide commercial kiosk screens with unusual aspect ratios, percentage-based image wrappers collapsed or stretched archival photographs.

Technical takeaway: In WebView kiosk deployments, relying on percentage heights causes layout instability. Enforcing explicit CSS aspect-ratio properties and tuning Capacitor WebView configuration parameters proved essential for maintaining proportional media scaling.

Continuous operation and idle attract loops

A commercial kiosk runs all day without being closed. Any gradual memory leak in JavaScript event listeners, intervals, or video players will accumulate over hours and eventually freeze the hardware. We audited React components to guarantee that all DOM listeners and animation loops clean up thoroughly on unmount.

Additionally, when a visitor steps away mid-exhibit, the kiosk should not stay frozen on an internal page for hours. We implemented an idle timer: if no touch interaction occurs for three minutes, the application smoothly transitions back to the ambient historical attract screen, welcoming the next visitor.

Conclusion

Building a museum kiosk application requires thinking as much about physical ergonomics and display stability as frontend code. By designing for touch margins, automating media transformation pipelines, investigating Android WebView scaling constraints, and managing continuous kiosk lifecycles, web technologies can deliver exceptional physical interactive exhibits.

Dipesh Thapa

Dipesh Thapa

Full-Stack Engineer based in Nepal, specializing in Next.js, TypeScript, Prisma, and high-performance server architectures.

Related posts

Browse all articles

Get engineering
notes

Technical case studies, engineering lessons, and notes from building real-world digital products and systems.

Logo icon

Occasional deep-dives into software architecture, database performance, payment integration, and engineering practices.

No spam · Unsubscribe anytime