supermemory/apps/memory-graph-playground
2026-10-12 21:43:21 -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 Improve memory graph (#973) 2026-06-05 15:48:41 -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 fix(deps): bump next to 16.3.3 in chatapp, sdk-playground, and memory-graph-playground (#1655) 2026-09-09 23:01:32 -07:00
next.config.ts add spaces selector with search (#600) 2025-12-02 18:37:24 +00:00
package.json fix(deps): bump next to 16.3.3 in chatapp, sdk-playground, and memory-graph-playground (#1655) 2026-09-09 23:01:32 -07:00
postcss.config.mjs add spaces selector with search (#600) 2025-12-02 18:37:24 +00:00
README.md fix(docs): correct stale @supermemory/memory-graph API references (#1414) 2026-10-12 21:43:21 -07: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 GraphApiDocument } from '@supermemory/memory-graph'

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

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

See src/app/page.tsx for the full working example, including converting a raw API response into GraphApiDocument[].

Props

Prop Type Description
documents GraphApiDocument[] 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
onLoadMore () => void Callback to load more documents
totalCount number Total number of loaded documents
variant "console" | "consumer" Visual variant

See packages/memory-graph for the full MemoryGraphProps reference.