supermemory/apps/sdk-playground
Dhravya Shah 93f92cdd58 feat(sdk-playground): add interactive chat playground for SDK testing
Next.js UI with TypeScript and Python chat backends, context panel,
API key management, tools reference, and middleware configuration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 19:40:34 -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): add interactive chat playground for SDK testing 2026-08-07 19:40:34 -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): add interactive chat playground for SDK testing 2026-08-07 19:40:34 -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)