supermemory/apps/docs/integrations
Abhijeet Sharma 8d3f7ac8d6 fix(docs): correct stale @supermemory/memory-graph API references
apps/docs/integrations/memory-graph.mdx and apps/memory-graph-playground/README.md
documented an older version of the @supermemory/memory-graph public API. Following
the Quick Start, Props Reference, or Exports section as written produced code that
either fails to type-check or silently drops props the component no longer has.

Verified against packages/memory-graph/src/{index.tsx,types.ts,api-types.ts,mock-data.ts,
constants.ts} and cross-checked the API normalization logic against two independent
real call sites: apps/web/components/memory-graph/hooks/use-graph-api.ts and
apps/memory-graph-playground/src/app/page.tsx.

- Exports section listed Legend, NodeDetailPanel, SpacesDropdown, useGraphInteractions,
  colors, LAYOUT_CONSTANTS - none of these are actually exported. Corrected to the
  real exports and added the previously-undocumented ./mock-data subpath.
- All examples used loadMoreDocuments/totalLoaded/selectedSpace/onSpaceChange/
  showSpacesSelector, none of which exist on MemoryGraphProps. Corrected to
  onLoadMore/totalCount and removed the Controlled Space Selection example
  (that feature no longer exists on the component).
- documents was typed as DocumentWithMemories[] with a fabricated shape; the real
  prop type is GraphApiDocument[]. Added a toGraphDocument mapping example grounded
  in the real production code that talks to /v3/documents/documents.
- Rewrote Props Reference and Data Types to match the real MemoryGraphProps and
  GraphApiDocument/GraphApiMemory interfaces field-for-field, including several
  real props that weren't documented at all before.
- Removed the false 'space selector visible/hidden' claim from the Variants section
  (no such component exists anywhere in packages/memory-graph/src); kept the 0.8x/0.5x
  zoom figures, which checked out against constants.ts.
- Made the Pages Router and Express tabs in Backend API Route self-contained (each
  defines its own toGraphDocument mapping) instead of depending on code shown only
  in the App Router tab, since CodeGroup tabs are alternatives a reader copies
  individually.
- Applied the identical corrections to apps/memory-graph-playground/README.md,
  which had the same drift independently.

Address Graphite automated review feedback:
- Set the content field in all three toGraphDocument mappings (was a valid but
  unpopulated field on GraphApiMemory). Confirmed via use-graph-data.ts that it's
  inert for rendering (always overwritten with mem.memory before draw), so this
  wasn't visible data loss, but it's a free fix that matches the type exactly.
- Replaced the (data.documents as RawDocument[]) cast with a proper
  RawDocumentsResponse type annotation on data in the App Router and Pages Router
  tabs, per the custom TypeScript style rule Graphite flagged. Implemented what
  the comment's prose described rather than its literal suggested diff, which
  would have just deleted the cast and left data as any.

Docs-only change, no .ts/.tsx files touched. This repo's biome.json has no
Markdown/MDX support configured, so format-lint doesn't apply here; checked
fence and MDX-component balance by hand instead (34 fence lines, all CodeGroup/
Note/Warning/Card tags balanced 1:1).
2026-08-05 21:25:01 +05:30
..
agent-framework.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
agno.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
ai-sdk.mdx fix(tools,validation): persist tool-call turns in conversation memory & tidy search thresholds (#1211) 2026-07-10 18:54:56 -07:00
cartesia.mdx Supermemory-Cartesia SDK (#744) 2026-04-15 16:27:23 +00:00
claude-code.mdx fix docs links and assets (#1407) 2026-08-04 00:04:41 +00:00
claude-memory.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
codex.mdx fix docs links and assets (#1407) 2026-08-04 00:04:41 +00:00
convex.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
crewai.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
hermes.mdx fix docs links and assets (#1407) 2026-08-04 00:04:41 +00:00
langchain.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
langgraph.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
mastra.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
memory-graph.mdx fix(docs): correct stale @supermemory/memory-graph API references 2026-08-05 21:25:01 +05:30
n8n.mdx fix docs links and assets (#1407) 2026-08-04 00:04:41 +00:00
openai-agents-sdk.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
openai.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
openclaw.mdx fix docs links and assets (#1407) 2026-08-04 00:04:41 +00:00
opencode.mdx fix docs links and assets (#1407) 2026-08-04 00:04:41 +00:00
pipecat.mdx fix docs links and assets (#1407) 2026-08-04 00:04:41 +00:00
supermemory-sdk.mdx docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
viasocket.mdx Add Supermemory integration for Microsoft Agent Framework (#775) 2026-03-10 01:49:45 +00:00
voltagent.mdx docs: @supermemory/tools v2.0.0 & migration guide (#886) 2026-04-27 18:24:59 +00:00
zapier.mdx docs changes (#678) 2026-01-18 16:55:32 -08:00