DEV Community

Cover image for Passion Bridge-UnityNets
TOZAMMEL HAQUE
TOZAMMEL HAQUE

Posted on

Passion Bridge-UnityNets

What I Built
Passion Bridge — a new feature inside UnityNets, the platform I've been building around a simple belief: humanity has far more in common than the things that divide us.
The idea is simple. You share one thing you're passionate about — your country's food, a sport, a tradition, a value you hold close. Our AI then searches across every other entry submitted from around the world and finds someone whose passion, on the surface, looks completely different — but shares an unexpected emotional thread with yours. The AI explains why the two are connected, turning two strangers from two countries into a small, human bridge.
With the World Cup filling stadiums and living rooms with passion this month, it felt like the right moment to build something that takes that same intensity of feeling and points it toward connection instead of rivalry.
Demo
https://unitynets.com/passion-bridge
Code
https://github.com/TOZAMMELSPACE/unitynets.com
How I Built It
Passion Bridge is built directly into the existing UnityNets stack — React/TypeScript on the frontend, Supabase for the backend.
When a user submits their passion entry, a Supabase Edge Function sends it — along with a batch of existing entries from other countries — to the Google Gemini API. Gemini looks for a shared emotional or cultural thread between entries (not a keyword match, a genuine underlying connection) and generates a short "unity message" explaining the link in an inspiring, human tone.
Matches are stored and rendered as cards in a "Bridges built by the community" feed, filterable by country. Successful matches also feed into UnityNets' existing Trust Score system, rewarding people for participating in building these cross-border connections.
The trickiest part was prompting Gemini to reliably return clean, structured JSON with genuinely thoughtful (not superficial) connections — solved with a strict system prompt and a fallback retry if the response came back malformed.
Prize Categories
Submitting to Best Use of Google AI — the Gemini API is the core engine of Passion Bridge, responsible for discovering and articulating the human connections between passions from different corners of the world.

Top comments (0)