{"slug": "midnight-oracle-an-open-weight-ai-fortune-teller-beyond-the-veil", "title": "Midnight Oracle: An Open-Weight AI Fortune Teller Beyond the Veil", "summary": "A developer built Midnight Oracle, an open-source AI fortune-teller web app that pairs a 3D crystal ball, floating tarot cards and an animated ghost with an open-weight language model behind a FastAPI backend. A system prompt defines the Oracle's persona, and Pydantic validates the structured fortune responses before they render as animated prophecy cards. The project is pitched as entertainment, with the architecture separating inference from the frontend so it can run against different open-weight models or a local Ollama setup.", "body_md": "*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine](https://dev.to/challenges/hacktoberfest-week4-2026-10-26)*\n\n**Midnight Oracle** is an AI-powered digital fortune teller that brings a mysterious supernatural experience to the web.\n\nInspired by Halloween, tarot symbolism, and the idea of mysterious entities communicating from beyond the veil, I wanted to build something more immersive than a conventional AI chatbot.\n\nUsers enter a mystical chamber, interact with an animated 3D crystal ball, select a tarot-inspired reading category, and ask questions about:\n\nThe Oracle responds with a personalized fortune, symbolic signs, a reflective message, and mystical elements such as a lucky colour, number, and object.\n\nThe experience features an original gothic-inspired interface with a 3D crystal ball, floating tarot cards, an animated ghost entity, atmospheric particles, and subtle lighting effects.\n\nMidnight Oracle is designed purely for entertainment. Its fortunes are fictional interpretations, not actual supernatural predictions.\n\n**Live Demo:** [Insert deployed application URL]\n\n**Video Demonstration:** [Insert video link]\n\n**GitHub Repository:** [https://github.com/aniket937/Midnight-Oracle](https://github.com/aniket937/Midnight-Oracle)\n\nExplore the complete project, including its frontend, backend, AI integration, 3D components, and setup instructions.\n\nI built Midnight Oracle using a modern full-stack architecture combining web technologies, 3D rendering, and open-weight AI.\n\n**Frontend:**\n\n**Backend:**\n\n**AI Integration:**\n\nUsers submit a question along with a selected fortune category.\n\nThe FastAPI backend processes the request and sends it to the configured open-weight language model using a carefully designed system prompt that defines the Midnight Oracle's personality.\n\nThe model generates a structured response containing:\n\nPydantic validates the response before it is displayed on the frontend as an animated prophecy card.\n\nThe frontend handles the 3D environment, tarot interactions, crystal ball animations, fortune generation experience, and reading history.\n\nThe most important decision in this project was making an open-weight AI model central to the experience rather than relying entirely on a proprietary AI API.\n\nUsing open-weight models gives Midnight Oracle flexibility and independence.\n\n**1. Model Freedom**\n\nThe application can be configured to use different compatible open-weight models instead of being permanently tied to one model provider.\n\n**2. Local AI Possibility**\n\nWith a local Ollama setup, the Oracle can generate fortunes without sending prompts to an external inference service. Once the model is downloaded, local inference can work without an internet connection.\n\n**3. Greater Control**\n\nThe system prompt and model configuration can be modified to change the Oracle's personality, response style, and behaviour.\n\n**4. Reduced Provider Dependency**\n\nThe application architecture separates AI inference from the frontend. This makes it easier to replace or change the inference provider without rebuilding the entire experience.\n\nOpen innovation makes the project more adaptable and gives users more control over how their AI experience operates.\n\nThere is something fascinating about asking a question in an empty, dark chamber and receiving a mysterious response from an entity that doesn't really exist.\n\nThat was the inspiration behind Midnight Oracle.\n\nI wanted to combine the atmosphere of Halloween, the symbolism of tarot cards, and the possibilities of open-weight AI into one interactive experience.\n\nThe crystal ball represents the unknown, the ghost represents the mystery, and the AI represents the intelligence hidden inside the machine.\n\n**Not every mystery needs an answer. Some just need an Oracle.**", "url": "https://wpnews.pro/news/midnight-oracle-an-open-weight-ai-fortune-teller-beyond-the-veil", "canonical_source": "https://dev.to/aniket937/midnight-oracle-an-open-weight-ai-fortune-teller-beyond-the-veil-5bc5", "published_at": "2026-11-01 05:14:53+00:00", "updated_at": "2026-11-01 05:21:52.722115+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "generative-ai", "ai-tools", "developer-tools"], "entities": ["Midnight Oracle", "FastAPI", "Pydantic", "Ollama", "Hacktoberfest"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/midnight-oracle-an-open-weight-ai-fortune-teller-beyond-the-veil", "markdown": "https://wpnews.pro/news/midnight-oracle-an-open-weight-ai-fortune-teller-beyond-the-veil.md", "text": "https://wpnews.pro/news/midnight-oracle-an-open-weight-ai-fortune-teller-beyond-the-veil.txt", "jsonld": "https://wpnews.pro/news/midnight-oracle-an-open-weight-ai-fortune-teller-beyond-the-veil.jsonld"}}