Delivered remotely for a business based in Gothenburg, Sweden. Names withheld by agreement.
Project Overview
Collectors of digital art and on-chain artifacts rarely lack marketplaces, yet they frequently lack a dedicated social environment designed around appreciation rather than floor-price speculation. Existing explorers scatter a collector's holdings across separate browser tabs per blockchain, render sluggish feeds over unreliable decentralized storage gateways, and bury artistic context beneath order-book clutter.
We engineered a non-custodial social discovery platform built in Gothenburg for collectors who want to curate cross-chain galleries, follow creators, and discuss provenance from a native mobile interface. A Swift iOS application delivers fluid visual browsing, powered by a Node.js and Express backend over PostgreSQL, AWS media normalization workers writing to S3, JWT session security, and Firebase for live social interactions.
Discovery & Multi-Chain Indexing Bottlenecks
Building a consumer-grade social network atop public blockchains exposes four persistent engineering obstacles:
- Heterogeneous token metadata: Different blockchains and legacy contracts encode traits, creator royalties, and media pointers inconsistently, breaking naive feed queries when left unnormalized.
- Unpredictable media gateways: Rendering raw IPFS hashes or oversized uncompressed GIFs directly inside a mobile scroll view causes blank tiles, memory spikes, and dropped frames.
- Custodial friction vs. mobile UX: Requiring desktop browser extensions alienates mobile-first collectors, while holding private keys on app servers introduces unacceptable security liability.
- Stale ownership states: Social badges and collector leaderboards lose credibility quickly if off-chain caches fail to reflect on-chain transfers or burned tokens.
Architectural Strategy
Our architecture treats blockchains strictly as read-only provenance sources and keeps all social velocity off-chain. Users link one or more public wallet addresses across supported networks by signing challenge messages externally; the backend never touches private keys or transaction signing flows.
Once a wallet connects, Node.js ingestion workers pull holdings through chain-specific adapters, normalize token attributes into PostgreSQL, and offload media fetching to AWS background processors. Those processors sanitize and transcode artwork into Amazon S3 so the Swift client fetches predictable, CDN-backed thumbnails rather than wrestling with congested public gateways. Social activity—comments, gallery curations, and follow alerts—flows through Firebase and JWT-authenticated Express endpoints.
Core Capabilities
- Multi-Wallet Provenance Aggregation: Collectors link multiple EVM and non-EVM addresses under a single profile, unifying scattered holdings into cohesive themed galleries.
- Native Swift Gallery & Provenance Viewer: High-framerate iOS views support pinch-to-zoom inspection, animated media playback, on-chain mint history, and trait breakdowns.
- Curated Social Feeds & Collections: Users follow creators and fellow collectors, assemble thematic exhibitions without transferring assets, and filter discovery streams by medium or chain.
- Spam-Filtered Token Management: Collectors hide unwanted promotional airdrops from public showcases while preserving transparent verification badges on authentic pieces.
- Real-Time Community Discussions: Item-level comment threads, reactions, and mention notifications keep collector conversations active without reloading feeds.
Technical Architecture
Authentication begins when Swift requests a single-use nonce from Express and hands the payload to the user's mobile wallet app for cryptographic signing. Express verifies the signature, binds the wallet address to a collector profile in PostgreSQL, and returns signed JWT access and refresh tokens. Background AWS workers then query chain RPC nodes, normalize token metadata into PostgreSQL, and stream remote media through sanitization filters into S3. When users browse feeds, comment, or curate collections, Swift communicates over JWT-guarded Express routes while Firebase synchronizes live thread updates and APNs push notifications.
Flow: Wallet Signature Auth (Swift → Express → JWT) → Multi-Chain RPC Adapters → PostgreSQL Canonical Asset Graph + AWS S3 Media Pipeline → Swift Curated Feeds & Firebase Live Social Events
Keeping media transcoding and blockchain polling entirely asynchronous ensures feed scrolling and social interactions remain decoupled from external node latency.
Technology Stack
| Category | Technology detail |
|---|---|
| iOS Native Client | Swift application for curated feeds, high-res asset viewing, and wallet linking |
| Backend API & Indexer | Node.js with Express for graph feeds, wallet signature verification, and RPC orchestration |
| Relational & Trait Store | PostgreSQL with relational social tables and JSONB token metadata indexing |
| Authentication | JWT (short-lived access and rotating refresh tokens bound to cryptographic signatures) |
| Media Ingestion & Storage | AWS workers normalizing IPFS/Arweave assets into Amazon S3 buckets |
| Real-Time Social Layer | Firebase for comment threads, reaction counters, and APNs push notifications |
| Cloud Infrastructure | AWS compute, CDN edge delivery, and background metadata synchronization jobs |
| Chain Connectivity | Multi-chain read-only RPC adapters normalizing ERC-721/1155 and alternate token standards |
Engineering Trade-offs & Solutions
| Engineering Challenge | Solution & Trade-off |
|---|---|
| Handling malformed or hostile external NFT metadata | Built defensive schema parsers and sandboxed SVG sanitization before caching assets in S3, trading delayed display on brand-new mints for strict client safety. |
| Combining relational social graphs with arbitrary token traits | Modeled followers, galleries, and ownership in normalized PostgreSQL tables while indexing variable attributes in GIN-indexed JSONB columns, avoiding separate document databases. |
| Detecting on-chain ownership transfers promptly without burning RPC quotas | Prioritized active-profile refresh triggers and webhook/log subscriptions for popular contracts, pairing them with staggered background sweeps for dormant accounts. |
| Securing persistent mobile sessions across wallet switches | Issued short-lived stateless JWT access tokens paired with revocable database-backed refresh tokens, letting users unlink compromised devices immediately. |
Security & Reliability
Zero-custody verification is foundational to platform trust. Challenge nonces carry explicit domain bindings, expiration timestamps, and replay protection inside PostgreSQL so intercepted signatures cannot be reused across sessions. Every Express route validates JWT claims, scopes profile mutations strictly to the authenticated collector ID, and applies strict CORS and payload-size limits.
Because third-party NFT contracts occasionally point to malicious scripts or tracking pixels inside token URIs, AWS media workers never execute embedded JavaScript, strip unsafe SVG elements, verify binary magic bytes against declared MIME headers, and serve cached media from isolated S3 origins without cookies or elevated permissions.
Performance & Scale
Visual social apps live or die by first-paint speed on cellular networks. AWS media pipelines generate multi-resolution WebP thumbnails, progressive JPEGs, and hardware-friendly H.264/HEVC video derivatives stored in S3, allowing Swift image caches to prefetch upcoming feed cards without exhausting device RAM.
On the API tier, stateless Express instances scale behind AWS load balancers while PostgreSQL read replicas absorb heavy discovery queries, leaderboard aggregations, and JSONB trait filters. Idempotent ingestion queues retry failed RPC calls with exponential backoff and dead-letter alerting whenever an upstream blockchain node experiences chain reorganizations or rate throttling.
Operational Outcomes
Focusing strictly on social curation and resilient media engineering unlocked an accessible collector experience across ecosystems:
- Fluid mobile artwork presentation: Caching normalized assets in AWS S3 eliminates stalled spinners from congested decentralized gateways inside Swift feeds.
- Unified multi-chain identity: Collectors present holdings from disparate networks inside a single authenticated profile without relinquishing custody of their keys.
- Dependable provenance visibility: Asynchronous reconciliation keeps displayed ownership badges aligned with on-chain state while honoring historical curation context.
- Clean, community-safe discovery: Automated spam-contract filtering and sanitized media ingestion protect users from unsolicited airdrops and hostile token payloads.