AFTERLIGHT — Memories Never Die 🕯️
What if the stories we never want to forget could live on, without depending on the cloud?
What I Built
For this week's Ghost in the Machine challenge, I built AFTERLIGHT, an offline-first, AI-powered digital memory archive inspired by Halloween and Día de los Muertos.
The idea is simple: our memories are some of the most personal things we own, so why should preserving them require uploading them to someone else's servers?
AFTERLIGHT provides a private space where users can preserve photographs, personal stories, important moments, and little details about people they want to remember.
It includes:
Memory Vault: Save personal stories, photographs, dates, and memorable moments.
AI Remembrance Writer: Transform saved memories into heartfelt letters, poems, captions, and short stories.
Memory Companion: Ask questions about your saved memories and get answers grounded in the information you've preserved.
Digital Ofrenda: A Día de los Muertos-inspired interface featuring warm candlelight, marigolds, and a peaceful memorial atmosphere.
Private Memory Storage: Your memories and photographs remain on your own device.
AFTERLIGHT isn't about pretending to bring someone back. It's about making sure the stories they left behind are never forgotten.
The best way to experience AFTERLIGHT is to add a few memories, generate a remembrance letter, and ask the Memory Companion a question about them.
You can also disconnect from the internet after the initial setup and experience local AI generation.
Code
GitHub Repository: https://github.com/MrHardik/afterlight
The project is open-source, and contributions are welcome!
How I Built It
I wanted the AI to be more than just an API integration. The open-source model needed to be at the core of the application.
Here's the technology stack:
Ollama: Runs the language model locally.
Qwen 2.5 (3B): Powers remembrance writing and memory-based conversations.
Python + Flask: Handles the backend and API endpoints.
HTML, CSS, JavaScript: Powers the frontend and interactive experience.
JSON + Local File Storage: Stores memories and uploaded photographs directly on the device.
When a user requests a remembrance letter, the application retrieves their selected memories and sends that context to the locally running Qwen model through Ollama.
The Memory Companion follows the same approach, answering questions using only the selected memories instead of inventing personal details.
Once the model is downloaded and installed, inference works without an internet connection.
Why Does Open Innovation Matter?
This is probably the most important part of AFTERLIGHT.
Personal memories deserve privacy.
Using a closed, cloud-based AI API would mean sending deeply personal stories and potentially sensitive photographs to an external service.
With an open-weight model running locally:
Privacy: Personal memories never need to leave the user's device.
Offline access: AI generation works without an active internet connection after setup.
Freedom: Models can be replaced, experimented with, and customized.
Independence: The application isn't dependent on a third-party AI service, its pricing, or its continued availability.
Accessibility: There are no per-request cloud AI API charges.
Open innovation made it possible to build something personal without compromising ownership of the data.
I believe the technology we use to preserve our memories should give us control over those memories, not take that control away.
The Spirit of It
Halloween is usually associated with ghosts, darkness, and things we cannot explain.
Día de los Muertos, however, reminds us that remembering someone is another way of keeping them close.
That inspired the name AFTERLIGHT.
Even after someone is gone, the light they left behind continues through their stories, photographs, words, and the memories we carry.
Technology cannot replace those people. But perhaps it can help us preserve the little things we might otherwise forget.
Some things fade with time. Their stories shouldn't have to.
Built with ❤️ using open-source technology.
AFTERLIGHT — Memories Never Die.
Top comments (0)