https://producingtechnology.com/65-apps/tsaihsinyu_183237_15200710_text_media_json_viewer.html
Author: tsaihsinyu
This app is a single-file JSON viewer that takes a Wikipedia-style JSON file
(one hosted on producingtechnology.com) and turns it into a
styled article reading experience. The user pastes a JSON URL into a text
input and clicks "Load JSON," or clicks "Use Sample Path" to load a default
example. The app then fetches the file, reads the HTML stored inside
parse.text["*"], and re-renders it as a cleaner article with a
topic title, section navigation, summary counters (sections / images), and a
visual gallery. Before anything is loaded, the main area shows "No article
loaded · Waiting for a JSON URL" and the counters sit at 0.
producingtechnology.com,
which isn't stated near the field itself; if you paste a normal Wikipedia
API URL, it's unclear whether it will silently fail or reject you.
Improve the Text Media JSON Viewer with the following changes:
- Add a loading state (spinner + "Fetching article…" text) while the JSON is being retrieved, and a clear inline error message if the fetch fails, the URL is off-domain, or
parse.text["*"]is missing.- Show what "Use Sample Path" will load by displaying the sample article title next to the button, and validate the URL field in real time with a hint explaining that only
producingtechnology.comURLs are accepted.- Keep a small history of recently loaded JSON URLs in
localStorageand show them as clickable chips below the input so users can quickly revisit past articles.- Hide the Quick Navigation, Topic, Sections, and Images panels until an article is actually loaded, and make section links scroll smoothly with the active section highlighted as the user scrolls.
- Add a lightbox to the visual gallery (click to enlarge, arrow keys to navigate) and a reading-mode toggle with adjustable font size and a light/dark theme.