Build a notes app that automatically surfaces related notes by embedding similarity, not manual links — Mem's actual differentiating idea. Use Next.js/TypeScript with Postgres and the pgvector extension for storing and querying embeddings. Store notes as Markdown, and on save, generate an embedding for the note's content using an embeddings API from your Anthropic or OpenAI key's provider, or a dedicated embeddings endpoint. As the user writes a new note, query pgvector for the most similar existing notes by embedding distance, and show them as a live 'related notes' sidebar, updating as the user types, debounced, not on every keystroke. Support manual [[wiki-links]] too as a fallback for explicit connections, alongside the automatic similarity suggestions. Add a simple 'ask your notes' chat box: embed the user's question, retrieve the most similar notes, and send them as context to an LLM for an answer grounded in the retrieved notes. Do not build a polished mobile app, team collaboration, or automatic tagging beyond similarity suggestions — those are out of scope. Requires an Anthropic or OpenAI API key for embeddings and chat, plus hosting and a Postgres database with pgvector.