Urgent.News

What's breaking now, across thousands of outlets.

AI

Beyond the Demo: Architecting a Security-First AI Journal with Gemini

Most "AI-powered" side projects follow the same arc: a slick demo, a hardcoded API key, one shared database, zero auth boundaries — and it falls apart the moment a second user shows up. I wanted to build something different: a real, production-shaped application, designed the way a security engineer would design it before a single line of code got written. That's how Personal Gemini Journal came…

Personal Gemini Journal is an AI-powered, secure diary and brainstorming tool designed with security as its core principle. Unlike typical AI side projects that sacrifice security for demo appeal, Personal Gemini Journal begins with security in mind from the very beginning. Its architecture is built to withstand abuse attempts, rather than focusing on demo functionality first.

The app allows users to sign in, engage in multi-turn conversations with Gemini, and get their conversations automatically summarized and saved privately. One of its standout features is semantic search over saved entries, enabling users to query based on meaning rather than keywords.

The technology stack includes React 19 (Vite), Tailwind CSS v4, Lucide React for the frontend, Node.js + Express written in TypeScript for the backend, @google/genai SDK with Gemini 2.5 Flash for conversations and summarization, and text-embedding-004 for vector embeddings. Security measures like Firebase Authentication, Cloud Firestore, Firebase Secret Manager, and Zod for payload validation are employed to protect the system against various threats.

The backend strictly enforces user isolation by hardcoding queries to the authenticated user's ID and enforcing Firebase ID tokens server-side. Even if bypassed, Firestore's Security Rules prevent cross-user data leakage. This security-first approach, focusing on real-world threats and scale, sets Personal Gemini Journal apart from typical hackathon projects and positions it as a potentially trustworthy tool for personal data.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

I gave my STRIDE threat modelling tool an agentic interview mode

Back in June I shipped P2 Threat Model Generator — a Python tool that reads docker-compose, OpenAPI, and Kubernetes manifests, runs STRIDE analysis, scores threats, and spits out HTML + JSON reports…

  • Agentic mode implemented for STRIDE threat modelling tool
  • LLM interviews user to gather application details
  • Twelve @tool functions facilitate descriptor building

More from Wednesday 2 September →