Existing project Full-stack

Engineering a Web3 Marketplace for Creators

Building infrastructure for an NFT marketplace while solving SPA crawling, video delivery, and blockchain event synchronization challenges.

Role
Fullstack Engineer
Year
2022 · Archived
Stack
Node.js, React, AWS Amplify
Static Route Generation
Static page generation.
User Generated Page Generation
User-generated page generation.
Crawler-Aware Request Routing
Crawler-aware request routing.

What I built

Fans.inc is a Web3 marketplace built for musicians and creators to publish and sell digital collectibles to their audience. I contributed to the platform by solving several infrastructure and backend challenges around content discoverability, media delivery, and NFT transaction state.

My work included building a static page generation system to make the React SPA accessible to web crawlers, optimizing video delivery through AWS MediaConvert, and implementing event-driven processing to synchronize NFT purchase events with the platform's application data.

SPA discoverability

  • Generated crawler-friendly pages from the React SPA using AWS Lambda and Puppeteer
  • Routed crawlers to pre-rendered HTML on S3 with a CloudFront function that inspects the User-Agent
  • Kept regular users on the client-rendered SPA served through AWS Amplify

Media and NFT transactions

  • Processed creator videos through AWS MediaConvert for more efficient delivery and playback
  • Listened for blockchain events to detect NFT purchase transactions
  • Updated marketplace data and related records based on confirmed NFT events

How a crawler request is served

  1. Generate

    AWS Lambda and Puppeteer render marketplace pages into static HTML.

  2. Store

    The generated pages are kept in S3.

  3. Detect

    A CloudFront function checks the User-Agent of each incoming request.

  4. Serve

    Crawlers receive the pre-rendered HTML; regular users get the React SPA.

Outcome

  • Made SPA-based marketplace pages accessible to web crawlers through generated static pages
  • Improved video delivery efficiency through automated media processing
  • Established an event-driven mechanism for synchronizing blockchain transactions with application state
  • Reduced reliance on client-side rendering for crawler-facing content
  • Created a more reliable connection between on-chain NFT activity and marketplace data

Want something like this built?

Get in touch