Vorflux AI
4750842b00
Use prepack/postpack instead of prepublishOnly/postpublish for export swap
...
prepack/postpack fire for both 'pack' and 'publish', and postpack
always runs after packing regardless of publish success, preventing
the working tree from being left in dist-exports state on failure.
2026-03-27 00:33:54 +00:00
Vorflux AI
96b7f16175
Fix Cloudflare Workers build: use source exports for workspace, dist for npm publish
...
- Package exports now point to source files (./src/index.tsx) for workspace
consumers, allowing Next.js/Turbopack to resolve without pre-building
- Added publishConfig swap script that switches exports to dist/ during
npm publish (prepublishOnly) and back to source after (postpublish)
- Added @supermemory/memory-graph to transpilePackages in web app next.config.ts
so Next.js transpiles the source files correctly
2026-03-27 00:30:47 +00:00
Vorflux AI
3eab287959
Fix biome lint/format errors: aria-hidden on SVGs, Infinity -> Number.POSITIVE_INFINITY, line length formatting
2026-03-27 00:12:50 +00:00
Vorflux AI
e7676763a9
Add comprehensive unit tests for memory-graph package
...
79 tests across 6 test files covering:
- SpatialIndex: grid rebuild, queryPoint hit-testing, boundary cells, hash detection
- ViewportState: worldToScreen/screenToWorld roundtrip, pan, zoomImmediate,
zoomTo animation, fitToNodes, centerOn, inertia decay
- ForceSimulation: init/destroy lifecycle, update hot-swap, reheat/coolDown
- VersionChainIndex: chain building via parentMemoryId, caching, rebuild
- Graph data utils: normalizeDocCoordinates, getMemoryBorderColor,
getEdgeVisualProps, screenToBackendCoords, calculateBackendViewport
- Mock data: deterministic seeded output, correct counts, valid edge references
Also exports pure utility functions from use-graph-data.ts for testability.
2026-03-27 00:06:21 +00:00
Vorflux AI
4dcf3b2a62
Fix review bugs: slideshow re-mount, edges cascade, stale popover, maxNodes
...
- Fix slideshow useEffect: use nodesRef instead of nodes in deps to prevent
interval teardown/recreation on every render
- Fix edges useMemo: compute allNodeIds from normalizedDocs directly instead
of depending on nodes (which changes identity every render)
- Fix popover position: add zoomDisplay to deps so position updates on pan/zoom
- Implement maxNodes prop: limit documents before passing to useGraphData
- Fix SpatialIndex hash: include node IDs and use 10x position granularity
to prevent false cache hits during physics simulation
2026-03-26 18:04:25 +00:00
Vorflux AI
1c5ef7e5ed
Rewrite @supermemory/memory-graph with perf optimizations and consolidate consumers
...
Package changes (packages/memory-graph):
- Spatial grid nearest-neighbor: O(n^2) -> O(n*k) for doc-doc edge rendering
- Zoom-based edge culling: skip low-similarity edges at low zoom levels
- Modular canvas engine from mono repo (renderer, simulation, viewport, hit-test)
- Remove vanilla-extract CSS, use inline styles only
- Add motion/react for slide-in animations
- Export mock data generator for stress testing
- Add performance and integration tests (15/15 pass)
Web app changes (apps/web):
- Remove local graph implementation (~4400 lines deleted)
- Add thin wrapper (memory-graph-wrapper.tsx) using useGraphApi hook
- Keep app-specific graph-card.tsx and use-graph-api.ts
Playground changes (apps/memory-graph-playground):
- Add stress test buttons (50/100/200/500 docs)
- Add mock data generation via package
- Convert DocumentWithMemories to GraphApiDocument format
- Show FPS counter during stress tests
All TypeScript compiles clean. Performance tests: 15/15 pass.
2026-03-26 17:58:28 +00:00
MaheshtheDev
84d0fb802a
feat: bulk delete documents in nova app ( #777 )
...

2026-03-10 15:29:25 +00:00
Vedant Mahajan
9f7f415dd5
perf: Optimize array traversal for empty memory-graph documents ( #770 )
2026-03-07 19:34:25 -08:00
Prasanna721
2bbc7fc7a5
feat(mcp): add interactive memory graph MCP App visualization ( #763 )
...
### feat(mcp): add memory graph visualization MCP App
#### Summary
- Add interactive force-directed graph visualization as an MCP App using `force-graph` + `d3-force-3d`
- Register `memory-graph` and `fetch-graph-data` tools with MCP Apps SDK UI resources
- Add graph API client methods (`getGraphBounds`, `getGraphViewport`) to `SupermemoryClient`
- Set up Vite + `vite-plugin-singlefile` build pipeline to produce a self-contained HTML bundle
- Support light/dark theme, zoom controls, node popups, and legend
#### Files changed
- `apps/mcp/src/server.ts` — register app tools + HTML resource
- `apps/mcp/src/client.ts` — add graph API types and methods
- `apps/mcp/src/ui/mcp-app.ts` — force-graph visualization app
- `apps/mcp/src/ui/global.css`, `mcp-app.css` — styling
- `apps/mcp/mcp-app.html` — entry HTML for Vite
- `apps/mcp/vite.config.ts` — Vite single-file build config
- `apps/mcp/package.json` — add UI deps and build scripts
- `apps/mcp/wrangler.jsonc` — add HTML text import rule
2026-03-05 16:28:34 +00:00
nexxeln
5dd358a939
graph frontend ( #713 )
2026-02-09 07:02:20 +00:00
MaheshtheDev
1423bd7004
feat: mobile responsive, lint formats, toast, render issue fix ( #688 )
...
- Mobile responsive
- new toast design
- web document render issue fix
- posthog analytics
- ui improvements
2026-01-21 03:11:53 +00:00
Dhravya Shah
5bef1b2bbc
chore: bump package version
2025-12-28 19:22:28 -08:00
Vidya Rupak
d93ffbb93f
MemoryGraph - revamped ( #627 )
2025-12-29 00:32:26 +05:30
Dhravya Shah
ff35a6bffc
fix: change support email to the one on slack
2025-12-18 17:50:37 -08:00
Dhravya Shah
27f69e451f
fix: memory graph not visible with just docs
2025-12-17 20:24:57 -08:00
nexxeln
1b9b3012e3
add docs for graph package ( #603 )
2025-12-04 18:56:40 +00:00
nexxeln
dfb0c05ab3
add spaces selector with search ( #600 )
...
relevant files to review:
\- memory-graph.tsx
\- spaces-dropdown.tsx
\- spaces-dropdown.css.ts
2025-12-02 18:37:24 +00:00
nexxeln
895f37ac89
runtime styles injection + let user proxy requests for data in graph package + new playground ( #588 )
2025-11-22 07:04:05 +00:00
nexxeln
5e24eb66c3
package the graph ( #563 )
...
includes:
- a package that contains a MemoryGraph component which handles fetching data and rendering the graph
- a playground to test the package
problems:
- the bundle size is huge
- the styles are kinda broken? we are using [https://www.npmjs.com/package/vite-plugin-libgi-inject-css ](https://www.npmjs.com/package/vite-plugin-lib-inject-css ) to inject the styles

2025-11-19 18:57:56 +00:00