supermemory/apps/sdk-playground
Dhravya Shah ed15364eb3 feat(sdk-playground): reflect SDK-owned memory block in debug view
Update the playground to display the current deduplicated <supermemory>
replacement block produced by the SDK middleware instead of a browser-side
seen-facts delta. Add memory-dedupe helper and ignore local tsbuildinfo.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-18 08:14:07 -07:00
..
python feat(sdk-playground): add interactive chat playground for SDK testing 2026-08-07 19:40:34 -07:00
src feat(sdk-playground): reflect SDK-owned memory block in debug view 2026-08-18 08:14:07 -07:00
.env.example feat(sdk-playground): add interactive chat playground for SDK testing 2026-08-07 19:40:34 -07:00
.gitignore feat(sdk-playground): reflect SDK-owned memory block in debug view 2026-08-18 08:14:07 -07:00
next-env.d.ts feat(sdk-playground): add interactive chat playground for SDK testing 2026-08-07 19:40:34 -07:00
next.config.ts feat(sdk-playground): add interactive chat playground for SDK testing 2026-08-07 19:40:34 -07:00
package.json feat(sdk-playground): add interactive chat playground for SDK testing 2026-08-07 19:40:34 -07:00
postcss.config.mjs feat(sdk-playground): add interactive chat playground for SDK testing 2026-08-07 19:40:34 -07:00
README.md feat(sdk-playground): add interactive chat playground for SDK testing 2026-08-07 19:40:34 -07:00
tsconfig.json feat(sdk-playground): add interactive chat playground for SDK testing 2026-08-07 19:40:34 -07:00

SDK Agent Playground

Chat with a real agent and switch which Supermemory SDK integration powers it.

Integrations

SDK Style What happens
AI SDK + middleware automatic withSupermemory injects context + saves chat
OpenAI + middleware automatic same, via OpenAI client wrapper
AI SDK + tools explicit model calls 7 memory tools via generateText
OpenAI + tools explicit OpenAI function-calling loop
@supermemory/ai-sdk explicit re-export of tools/ai-sdk
Python OpenAI middleware automatic with_supermemory
Python OpenAI tools explicit SupermemoryTools loop
Python supermemory direct manual profile() + OpenAI + add()

Setup

bun install

cp .env.example .env.local
# Required:
# SUPERMEMORY_API_KEY=...
# OPENAI_API_KEY=...

Run

cd apps/sdk-playground
bun run dev

Opens:

Try:

  • "Remember that I prefer oat milk in coffee"
  • "What do you know about my drink preferences?"
  • "Forget that I like tea" (tools mode)

Env

Variable Required
SUPERMEMORY_API_KEY yes
OPENAI_API_KEY yes
SUPERMEMORY_BASE_URL optional
MODEL_NAME optional (default gpt-4o-mini)