mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-08 03:08:21 +00:00
| .. | ||
| app | ||
| components | ||
| lib | ||
| src-tauri | ||
| .gitignore | ||
| biome.json | ||
| next.config.ts | ||
| package.json | ||
| postcss.config.mjs | ||
| README.md | ||
| tsconfig.json | ||
| turbo.json | ||
supermemory
supermemory desktop app — a Tauri v2 shell around the
Supermemory web UI (Next.js static export), talking to api.supermemory.ai.
Design docs live in /.context/desktop-app-*.md (spec, roadmap, architecture).
Develop
# from this directory — launches the native window and spawns `next dev` on :3003
bun run tauri dev
bun run dev on its own just starts the Next dev server on :3003 (no native window).
In development, the desktop UI and Rust auth commands default to the local API at
http://localhost:8787. Set NEXT_PUBLIC_BACKEND_URL / SUPERMEMORY_API_URL
if you need a different API.
SMFS integration uses the first available binary in this order:
SUPERMEMORY_DESKTOP_SMFS_BIN- bundled sidecar in
src-tauri/binaries smfsonPATH
The desktop-managed filesystem space uses container tags with the fixed
sm_fs_ prefix. The default development tag is sm_fs_desktop.
Build
bun run build # Next static export -> ./out (no Rust needed)
bun run build:native # copy local smfs sidecar, then build native .app / .dmg
Prerequisites for the native build
- Rust toolchain (
rustup) + Xcode Command Line Tools. - SMFS installed locally (
curl -fsSL https://smfs.ai/install | bash) forbun run build:native, or a pinned sidecar copied intosrc-tauri/binariesby CI. - App icons in
src-tauri/icons/— generate once withbun run tauri icon <path-to-1024px.png>.