supermemory/apps/docs/index.mdx
MaheshtheDev 672defc08b docs: move SDK snippets to the shipped v5 call shape and finish the namespace rename (#1772)
Rewrites 339 TypeScript calls across 50 pages from the rc.5 `method({ namespace, body })` form to the shipped `method(namespace, { ... })` form, and aligns field names with the live v5 spec: `attach` to `include`, `authUrl` to `authorization`, `lastSync` to `latestRun`, `deletedCount` to `count`, and the paginated `namespaces.list()`.

Renames container tags to namespaces across concepts, connectors, integrations and snippets. The namespace pages keep container tag in the description, search keywords and a rename note so old searches still land, and the v3 reference page points at v5.

The migration guide's SDK table now covers both 5.0.0 SDKs, and the SDK integration page uses the real client options (`baseUrl`, `timeoutInSeconds`, `maxRetries`) and error classes.
2026-10-06 17:06:38 +00:00

115 lines
6 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Introduction"
description: "Context infrastructure for AI agents"
mode: "custom"
---
import { AGENT_PROMPT } from "/snippets/agent-prompt.jsx"
import { HERO_TS, HERO_PY, HERO_CURL } from "/snippets/hero-samples.jsx"
import { AgentMarks, CopyPromptButton, PromptPanel } from "/snippets/agent-prompt-panel.jsx"
export const HomeLink = ({ href, icon, children }) => (
<a className="sm-home-link" href={href}>
<span className="sm-home-link-icon"><Icon icon={icon} size={12} /></span>
<span>{children}</span>
</a>
)
export const PathCard = ({ title, description, href, image, children }) => (
<div className="sm-home-card">
<a className="sm-home-card-media" href={href} aria-label={title}>
<img src={image} alt="" />
</a>
<div className="sm-home-card-body">
<a className="sm-home-card-title" href={href}>{title}</a>
<p className="sm-home-card-desc">{description}</p>
<div className="sm-home-links">{children}</div>
</div>
</div>
)
export const ListCard = ({ title, children }) => (
<div className="sm-home-card sm-home-list-card">
<div className="sm-home-card-body">
<div className="sm-home-card-title">{title}</div>
<div className="sm-home-links">{children}</div>
</div>
</div>
)
<div className="sm-home">
<section className="sm-home-hero">
<div className="sm-home-hero-copy">
<h1 className="sm-home-title sm-home-title-split">
<span>Memory and continual learning</span> <span className="sm-home-title-muted">for the world’s best agents.</span>
</h1>
<p className="sm-home-lede">
Supermemory gives your agent long-term memory of every user. Paste one prompt into your coding agent and it wires memory into your project.
</p>
<div className="sm-home-actions">
<CopyPromptButton prompt={AGENT_PROMPT} label="Copy prompt" copiedLabel="Copied" className="sm-home-btn sm-home-btn-primary" />
<a href="/quickstart" className="sm-home-btn sm-home-btn-secondary">Read the quickstart</a>
</div>
<AgentMarks />
</div>
<div className="sm-home-sample not-prose">
<PromptPanel
tabs={[
{ label: "setup-prompt.md", text: AGENT_PROMPT, kind: "prompt" },
{ label: "TypeScript", text: HERO_TS, kind: "code" },
{ label: "Python", text: HERO_PY, kind: "code" },
{ label: "curl", text: HERO_CURL, kind: "code" },
]}
/>
</div>
</section>
<section className="sm-home-section">
<p className="sm-home-label">Platform</p>
<h2 className="sm-home-heading">Choose how you use supermemory</h2>
<p className="sm-home-sub">Start with the path that fits your app and your team.</p>
<div className="sm-home-grid sm-home-grid-3">
<PathCard title="Developer platform" description="API reference, concepts, and SDKs" href="/overview/what-is-supermemory" image="/images/intro-developer-platform.jpg">
<HomeLink href="/quickstart" icon="/icons/hugeicons/play-circle.svg">Quickstart</HomeLink>
<HomeLink href="/concepts/how-it-works" icon="/icons/hugeicons/layers-01.svg">How it works</HomeLink>
<HomeLink href="/api-reference/overview" icon="/icons/hugeicons/source-code.svg">API reference</HomeLink>
</PathCard>
<PathCard title="Plugins and MCP" description="Drop memory into Claude and coding agents" href="/supermemory-mcp/mcp" image="/images/intro-plugins.jpg">
<HomeLink href="/supermemory-mcp/mcp" icon="/icons/hugeicons/plug-01.svg">Supermemory MCP</HomeLink>
<HomeLink href="/integrations/claude-code" icon="/icons/hugeicons/command-line.svg">Claude Code</HomeLink>
<HomeLink href="/integrations/cursor" icon="/icons/hugeicons/cursor-01.svg">Cursor</HomeLink>
</PathCard>
<PathCard title="Self-hosting" description="Run it locally with zero config" href="/self-hosting/overview" image="/images/intro-developer-platform.png">
<HomeLink href="/self-hosting/quickstart" icon="/icons/hugeicons/play-circle.svg">Local quickstart</HomeLink>
<HomeLink href="/self-hosting/configuration" icon="/icons/hugeicons/sliders-horizontal.svg">Configuration</HomeLink>
<HomeLink href="/self-hosting/providers" icon="/icons/hugeicons/server-stack-01.svg">Model providers</HomeLink>
</PathCard>
</div>
</section>
<section className="sm-home-section">
<p className="sm-home-label">Products</p>
<h2 className="sm-home-heading">Explore features</h2>
<p className="sm-home-sub">Browse memory, retrieval, profiles, and connectors.</p>
<div className="sm-home-grid sm-home-grid-2">
<ListCard title="Memory and retrieval">
<HomeLink href="/concepts/graph-memory" icon="/icons/hugeicons/brain-01.svg">Graph memory</HomeLink>
<HomeLink href="/concepts/super-rag" icon="/icons/hugeicons/search-01.svg">SuperRAG</HomeLink>
<HomeLink href="/recall/search" icon="/icons/hugeicons/file-search.svg">Search memories</HomeLink>
<HomeLink href="/concepts/user-profiles" icon="/icons/hugeicons/user.svg">User profiles</HomeLink>
<HomeLink href="/concepts/filtering" icon="/icons/hugeicons/filter.svg">Filtering</HomeLink>
<HomeLink href="/concepts/memory-vs-rag" icon="/icons/hugeicons/balance-scale.svg">Memory vs RAG</HomeLink>
</ListCard>
<ListCard title="Build and connect">
<HomeLink href="/ingestion/add-memories" icon="/icons/hugeicons/plus-sign.svg">Add memories</HomeLink>
<HomeLink href="/connectors/overview" icon="/icons/hugeicons/plug-01.svg">Connectors</HomeLink>
<HomeLink href="/smfs/overview" icon="/icons/hugeicons/folder-01.svg">SMFS</HomeLink>
<HomeLink href="/concepts/container-tags" icon="/icons/hugeicons/tag-01.svg">Namespaces</HomeLink>
<HomeLink href="/concepts/customization" icon="/icons/hugeicons/sliders-horizontal.svg">Customization</HomeLink>
<HomeLink href="/migration/from-mem0" icon="/icons/hugeicons/arrow-data-transfer-horizontal.svg">Migrate from mem0</HomeLink>
</ListCard>
</div>
</section>
</div>