TruthShield
Revealing truth behind digital lies.
The problem TruthShield solves
TruthShield was developed to address one of the most pressing challenges of the digital age — the rampant spread of misinformation and deepfake content. With the rise of social media and short-form video platforms, fabricated stories and manipulated visuals have become increasingly indistinguishable from genuine ones. Traditional fact-checking mechanisms, which rely heavily on human verification, are slow, reactive, and often incapable of keeping up with the speed at which misinformation spreads. This gap creates an environment where false narratives influence public opinion, damage reputations, and even incite social unrest before accurate information can surface. TruthShield aims to solve this by offering an AI-driven, real-time detection platform that empowers individuals and organizations to verify the authenticity of news articles and videos instantly.
The platform bridges multiple layers of the misinformation problem. For textual content, TruthShield leverages the Gemini API to analyze context, cross-check facts, and assess credibility within seconds. Instead of simply flagging content as fake or real, it provides reasoning and source references, enabling users to understand why something might be misleading. For videos, the system uses a Vision Transformer (ViT)-based deepfake detection model trained on visual cues that distinguish real from synthetically generated footage. Together, these components form a unified verification pipeline that addresses both forms of modern digital deception — linguistic and visual.
Beyond detection, TruthShield solves the accessibility problem of fact-checking tools. Most existing solutions are fragmented or accessible only to technical users or media professionals. TruthShield democratizes verification by integrating a lightweight Chrome extension, allowing users to fact-check directly while browsing, and a web-based dashboard that maintains their detection history. It simplifies complex AI analysis into intuitive, user-friendly interactions without compromising accuracy.
Additionally, TruthShield tackles the trust and transparency problem often associated with AI-driven verification systems. By storing user activity and detection logs securely in MongoDB Atlas, the platform ensures accountability and reproducibility of results. Each detection is accompanied by detailed metadata — including model version, confidence score, and reasoning — enabling auditability and long-term tracking of misinformation patterns. This makes TruthShield not just a detection engine, but a transparency-oriented ecosystem designed to foster digital literacy and information integrity.
In essence, TruthShield solves the modern misinformation crisis by merging cutting-edge AI, explainable reasoning, and seamless accessibility. It empowers users to challenge false information confidently, offering an intelligent shield against deception in an age where truth is often the first casualty of virality.
Challenges we ran into
During the development of TruthShield, several challenges surfaced that tested both the technical and architectural design of the system. One of the earliest and most persistent hurdles was achieving seamless communication between multiple backend services. Since the project relies on FastAPI for the model servers and Express.js for the main backend, coordinating cross-origin requests and managing CORS policies required extensive debugging. Simple API calls between the React frontend, Chrome extension, and the Python-based AI endpoints often failed due to differing ports, leading to intricate CORS misconfigurations. Balancing security with flexibility while ensuring smooth data flow across these components demanded fine-tuned middleware adjustments and custom header handling.
Another major challenge was optimizing the integration of the Gemini API for fake news detection. While the API provided powerful contextual reasoning, structuring prompts to produce consistent and parsable results proved difficult. Early outputs were verbose or unstructured, which complicated the extraction of “Result,” “Sources,” and “Reasoning” fields. Overcoming this required prompt engineering, regex-based parsing logic, and response normalization to maintain reliability in real-time detection. Moreover, ensuring that Gemini’s responses aligned with factual data without bias or hallucination was an ongoing task, involving multiple iterations of testing and refinement.
The deepfake detection pipeline posed its own set of obstacles. Working with large video files and Vision Transformer (ViT) models introduced performance bottlenecks, especially during concurrent API requests. Managing GPU memory, optimizing model loading times, and preventing server timeouts were critical concerns. Implementing asynchronous request handling and caching mechanisms eventually stabilized the service, but only after considerable experimentation.
Deploying MongoDB Atlas and integrating it securely also came with challenges. Establishing secure database connections while handling sensitive user data required strict adherence to environment variable management and IP whitelisting. Initially, incorrect URI configurations and cluster access permissions caused frequent connection errors. Transitioning from local MongoDB instances to Atlas forced a rethink in schema design to better accommodate both user authentication and AI detection logs without performance degradation.
Finally, ensuring the Chrome extension, React frontend, and backend services operated cohesively in real-time was far from straightforward. Handling asynchronous responses from AI models while maintaining responsive UI feedback loops demanded careful frontend state management. Debugging inconsistencies between local and production environments, especially with cookies and CORS policies, consumed significant time. Despite these challenges, each obstacle ultimately strengthened the platform’s architecture, leading to a more robust, scalable, and secure TruthShield system.
Tracks Applied (2)
Best Use of Gemini API
Major League Hacking
Best Use of MongoDB Atlas
Major League Hacking

