Inspiration

Crypto prices and headlines live in a dozen tabs, and most market-cap rankings count stablecoins, wrapped tokens and tokenized assets as if they were native coins. RealCryptoCap already ranks coins by real market cap, and I wanted that, plus an AI that can explain it, on every page I browse, with no new app to open.

What it does

RealCryptoCap is a Chrome extension. One click on the toolbar icon adds an opt-in bar to the current page (header or footer, your choice):

  • A scrolling ticker of the top 50 coins by real market cap, with news headlines between them, and a speed control like a video player (0.5x to 3x, pause).
  • A stats strip: real vs reported market cap, Fear & Greed, and longs vs shorts.
  • Click a coin or headline for a fold-out box with an AI summary and a link to the source or coin page.
  • An AI chat about any top-50 coin or the news. It fetches live data first and gives it to the model so answers stay grounded. Ask about a coin outside the top 50 and the free tier tells you and links to the full top-500 list.
  • Modes: ticker + chat, ticker only, or chat only.

How we use Firebase AI Logic hybrid inference

All AI goes through one Firebase AI Logic model created with getGenerativeModel(ai, { mode: InferenceMode.PREFER_ON_DEVICE }). It runs on-device first (Gemini Nano through Chrome's built-in Prompt API) and falls back to cloud Gemini through the Gemini Developer API when the local model is not available. Every response reports inferenceSource, and the UI shows an "on-device" or "cloud" badge so users see where each answer ran. App Check protects the cloud path. The extension UI runs in an extension-origin iframe so the Firebase SDK and the Prompt API work normally under Manifest V3. See src/ai.js.

Honest note: in the demo video the recording machine did not have the Gemini Nano model installed yet, so it shows the cloud fallback and badge. The on-device path is the default whenever Chrome has the model.

How we built it

Manifest V3, esbuild, the Firebase JS SDK (v13), and the free public RealCryptoCap endpoints for prices (cached about a minute), news (refreshed every 6 hours) and articles (daily). A small guard module detects questions about coins outside the free top-50 scope and answers with a customer-friendly message instead of guessing.

Challenges

MV3 forbids remote scripts, so reCAPTCHA-based App Check cannot run in an extension; we use a debug-token provider for the contest build. The on-device model needs a large download and a user gesture, so the UI has an explicit "Enable on-device AI" button and always falls back cleanly.

What's next

A Chrome Web Store release and more coin and market views. The extension is free to use.

Built With

Share this project:

Updates

Submission history