supermemory/apps/memory-graph-playground
2026-05-06 22:42:34 -07:00
..
public runtime styles injection + let user proxy requests for data in graph package + new playground (#588) 2025-11-22 07:04:05 +00:00
src/app Rewrite @supermemory/memory-graph with perf optimizations + consolidate consumers (#809) 2026-03-28 19:06:27 -07:00
.gitignore runtime styles injection + let user proxy requests for data in graph package + new playground (#588) 2025-11-22 07:04:05 +00:00
next-env.d.ts Rewrite @supermemory/memory-graph with perf optimizations + consolidate consumers (#809) 2026-03-28 19:06:27 -07:00
next.config.ts add spaces selector with search (#600) 2025-12-02 18:37:24 +00:00
package.json use portless 2026-05-06 22:42:34 -07:00
postcss.config.mjs add spaces selector with search (#600) 2025-12-02 18:37:24 +00:00
README.md runtime styles injection + let user proxy requests for data in graph package + new playground (#588) 2025-11-22 07:04:05 +00:00
tsconfig.json add spaces selector with search (#600) 2025-12-02 18:37:24 +00:00

Memory Graph Playground

A demo app showcasing the @supermemory/memory-graph package.

Getting Started

bun install
bun dev

Open http://localhost:3000 and enter your Supermemory API key.

Usage Example

import { MemoryGraph, type DocumentWithMemories } from '@supermemory/memory-graph'

function App() {
  const [documents, setDocuments] = useState<DocumentWithMemories[]>([])

  return (
    <MemoryGraph
      documents={documents}
      isLoading={false}
      isLoadingMore={false}
      error={null}
      hasMore={false}
      loadMoreDocuments={() => {}}
      totalLoaded={documents.length}
      variant="console"
      showSpacesSelector={true}
    >
      <div>No memories found</div>
    </MemoryGraph>
  )
}

Props

Prop Type Description
documents DocumentWithMemories[] Array of documents to display
isLoading boolean Initial loading state
isLoadingMore boolean Loading more documents state
error Error | null Error to display
hasMore boolean Whether more documents can be loaded
loadMoreDocuments () => void Callback to load more documents
totalLoaded number Total number of loaded documents
variant "default" | "console" Visual theme variant
showSpacesSelector boolean Show space filter dropdown