Project case study

Front-end engineering / 2026

Ultraverse

A marketplace template, wired to live data.

A three-month virtual internship: I turned a static NFT marketplace template into a React app driven by a live API, with loading, empty and error states, accessible carousels and 93 automated tests.

Explore live project
Project
Virtual internship (supplied template and API)
Role
Front-End Development
Built with
React 17 · React Router · Jest · React Testing Library
Code
View on GitHub ↗
Ultraverse Explore page with a Sort items menu and a grid of NFT cards showing creator avatars, prices, likes and countdown pills
Explore: every card comes from the API, with sorting, live countdowns and a Load more button.

01 / The brief

A static template, made live.

Ultraverse was a three-month virtual internship. I received a Create React App template of an NFT marketplace with every card hard-coded, plus a REST API, and turned it into an app driven by live data.

Six sections across four pages now load from the API: Hot Collections, New Items and Top Sellers on the home page, then Explore, Author and Item Details. I built each feature on its own branch and merged it into main.

02 / The key decision

Bad data shows an error, not a broken card.

The template assumed the data would always be there. A live API doesn’t promise that: a request can fail, come back empty or come back in a shape nobody expected.

So every section has three outcomes besides success. Skeleton cards hold the layout while it loads and a screen reader hears a status message. An empty list says so. A failed or malformed response shows a clear error, because each section checks the data before it renders a single card. Changing the sort on Explore cancels the request it replaces, so a slow answer can’t overwrite a newer one.

src/components/home/HotCollections.jsx ↗
// Fail closed on malformed responses; never render invented collections.
if (
  !Array.isArray(data) ||
  !data.every(
    (collection) =>
      collection &&
      collection.id != null &&
      Number.isSafeInteger(collection.nftId) && collection.nftId > 0 &&
      typeof collection.title === "string" &&
      typeof collection.nftImage === "string" &&
      typeof collection.authorImage === "string" &&
      collection.code != null
  )
) {
  throw new Error("Invalid collections response");
}
Ultraverse home page with the Hot Collections carousel showing Abstraction, Patternlicious, Skecthify and Cartoonism with previous and next buttons, and the start of the New Items row with countdown timers
Hot Collections and New Items: live data in carousels with labelled previous and next buttons.

03 / Countdowns

One clock per section, not one per card.

Many items carry an auction countdown. The obvious build gives every card its own timer, which means dozens of intervals ticking at once, plus duplicates for the copies a carousel makes to loop.

I wrote a small hook instead. Each section keeps one clock that every card reads from, and the clock stops ticking once no auction in that section is still running.

src/components/UI/useItemClock.js ↗
// One clock per section, shared by cards and carousel clones.
export default function useItemClock(items) {
  const [now, setNow] = useState(Date.now);
  useEffect(() => setNow(Date.now()), [items]);
  const hasActiveCountdown = items.some(
    (item) => item.expiryDate !== null && item.expiryDate > now
  );
  useEffect(() => {
    if (!hasActiveCountdown) return;
    const interval = setInterval(() => setNow(Date.now()), 1000);
    return () => clearInterval(interval);
  }, [hasActiveCountdown]);
  return now;
}

04 / Verification

93 tests for the states nobody sees in a demo.

Jest and React Testing Library cover every API-driven section: loading, empty, failed and malformed responses, the countdowns and the scroll animations. Most of those tests check what a demo never shows, which is exactly where a live API breaks things.

The carousels use real buttons with labels and a list structure screen readers can count, and the animations stop when someone has asked their device to reduce motion.

What I took into Summarist: decide what the app does when the data is wrong before writing what it does when the data is right.

Explore the work

Browse the marketplace.