Briefly turns raw, messy notes into a structured brief — title, summary, action items, and key dates — using the same JSON schema on both inference paths. Short notes (600 words or fewer) run entirely on-device with Gemini Nano: private, instant, free, and offline-capable. Longer notes go to cloud Gemini for the bigger context window. Users can also force Auto, On-device only, or Cloud only mode, and the result badge always shows which path actually ran. Briefs are stored locally in the browser (max 10) with Markdown and JSON export.

How Firebase AI Logic is used: Briefly initializes Firebase AI Logic with the Gemini Developer API backend (getAI + GoogleAIBackend) and creates one hybrid generative model (getGenerativeModel with InferenceMode: PREFER_ON_DEVICE for short notes, PREFER_IN_CLOUD for long ones). On-device inference uses initializeDeviceModel() followed by generateContent() with a JSON response constraint; cloud inference uses the same prompt with responseMimeType application/json and a typed response schema. The response's inferenceSource drives the Cloud / On-device badge shown on every result. Firebase App Check is initialized with the debug provider for local development; enforcement is left unenforced for this demo project.

Built With

Share this project:

Updates

Submission history