Inspiration

Visual learners understand a water molecule when they can turn it around and watch two lone pairs squeeze the bonds to 104.5°, not when they read the number in a textbook. Textbooks have flat pictures, and 3D tools are built for researchers. Concio sits in between: every figure is a real 3D model with numbered parts, checked notes, an AI tutor and a quiz.

What it does

  • Explore 56 hand-checked 3D figures across chemistry, biology, physics, earth science, engineering and math, including detailed heart, brain and eye models. Tap numbered parts, isolate them, slice along X/Y/Z, pull the model apart, or go full screen.
  • Ask the tutor about any part. Answers are grounded in the figure's checked notes, and the tutor can act on the model ("take it apart", "show me the lens").
  • Take quizzes: tap the right part, pick an answer, or explain in your own words and get graded with feedback.
  • Build new figures from a prompt ("magnetic field of a bar magnet"). They come with parts, notes and a quiz, clearly labeled AI-generated · not reviewed.
  • Study PDFs: highlight a passage and get questioned on it Socratically, with saved margin notes.
  • Sign in with Google to sync figures, scores and notes. The app also relaunches offline.

How we built it with Firebase AI Logic

Each task runs where it makes sense, and every AI answer shows where it ran (from inferenceSource).

  • On device: PREFER_ON_DEVICE with Gemini Nano in Chrome. This covers tutor answers, typed-answer grading (structured JSON), hints, and PDF grilling. Prompts are small and single-turn so they fit Nano. If the on-device session fails for any reason, the request retries in the cloud. With the network off, studying keeps working.
  • In the cloud: ONLY_IN_CLOUD. Building a figure has three steps:
    1. Gemini plans the lesson (a JSON schema with parts, notes and a quiz).
    2. It writes a Three.js scene using our "scene kit" helpers, so bonds meet their atoms and angles are exact.
    3. The scene is compiled in Google's three-live sandbox, checked so every part maps to real geometry, and repaired once if needed.

Models are tried in order (Gemini 3.5 Flash-Lite, then 3.6 Flash, then 3.5 Flash), with timeouts and retries for busy errors.

  • Other Firebase products:
    • App Check with reCAPTCHA Enterprise
    • Authentication with Google sign-in
    • Cloud Firestore, with owner-only security rules
    • Hosting
  • Also:
    • A service worker so the app relaunches offline.
    • WebMCP tools, so browser agents can drive the library, the 3D stage and the PDF reader.

Stack: React, TypeScript, Vite, three-live, Three.js, pdf.js, plain CSS with our own "Bench" design system.

Challenges we ran into

  • Gemini Nano's limits. Its small context and lack of multi-turn chat meant redesigning every study prompt as a compact, single-turn request, with a fallback parser for JSON output.
  • Generated geometry. Models wrote covalent radii that swallowed the bonds, so the scene kit ignores radii for generated figures and builds bonds from directions.
  • Sandbox quirks we found by testing:
    • some rotations behave wrongly
    • some Three.js APIs are missing
    • clicks on sliced models hit the clipped-away shell

We patched the picking at build time.

  • Free-tier rate limits made us switch the primary build model to Flash-Lite, with an ordered fallback.

What we learned

Hybrid inference changes the design. Once study runs on the device, it can be private, free and offline, and the cloud is reserved for the one expensive step: building a figure once.

What's next

  • A guided Steps mode
  • Faster builds, by generating quizzes separately
  • Building a figure from a photo of a textbook diagram
  • Syncing the PDF files themselves
  • Remote Config for model names

Built during the hackathon & disclosures

Concio was created during the submission period (first commit Nov 26, 2026).

  • Third-party code:
    • three-live by Google (Apache-2.0), with two small patches applied at build time
    • Three.js, pdf.js, React and the Firebase JS SDK
    • Fonts: Archivo and Atkinson Hyperlegible (SIL OFL)
  • Anatomy models: [SOURCE AND LICENSE OF THE HEART, BRAIN AND EYE MODELS]
  • AI assistance: the code was written with Claude Code as a coding assistant. The demo narration voice was generated with ElevenLabs.
  • AI in the app: all AI at runtime goes through Firebase AI Logic.

Built With

Share this project:

Updates

Submission history