Memory Chat TemplatePro
A chat that remembers: approval-gated memory writes, a cookie-backed store with no database, and a system prompt that keeps recollection sparse instead of clingy.
What can I help with?
Tell me something about yourself and watch what happens before anything is remembered.
Nothing is remembered unless you approve it. Check the memory panel.
A scripted replay of two turns — the approval card is real and clickable, but it also resolves on its own so the loop continues; there is no model and no route behind this page. In the template, the write happens only on your click.
Every file in it
The full file list, with line counts — nothing is hidden about what you are getting, only the contents are.
25 files, 2,179 lines
Every file below is real and readable once you have Pro — downloaded as a zip, installed with one shadcn command, or read here in the browser. $49 once, for this and every other Pro item.
Built on these components
All free, all documented on their own pages. The template is what wires them together.
The memory panel — every fact the assistant has saved about the user, with the ability to add one or make it forget.
Memory ChipA small inline chip confirming a fact was saved to memory — quiet enough to ignore, clear enough to undo.
Memory ToastThe 'Memory updated' receipt — shows the exact fact that was saved, with one-tap Undo and a quiet link to manage memories.
Approval RequestThe human-in-the-loop confirmation — what the agent wants to do, the exact details, and allow or deny before it acts.
Running it
- Download the zip and unpack it, or install it with the shadcn command above — either way the app lands in its own directory. Then
npm install. - Add an
AI_GATEWAY_API_KEYto.env.local— one key reaches every model the template uses. npm run dev. To use a provider directly instead, install its package and change one line in the chat route.