mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-15 23:31:05 +00:00
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.
74 lines
1.8 KiB
JSON
74 lines
1.8 KiB
JSON
{
|
|
"name": "@supermemory/memory-graph",
|
|
"version": "0.2.0",
|
|
"description": "Interactive graph visualization component for Supermemory - visualize and explore your memory connections",
|
|
"type": "module",
|
|
"main": "./dist/memory-graph.cjs",
|
|
"module": "./dist/memory-graph.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/memory-graph.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/memory-graph.cjs"
|
|
}
|
|
},
|
|
"./mock-data": {
|
|
"import": {
|
|
"types": "./dist/mock-data.d.ts",
|
|
"default": "./dist/mock-data.js"
|
|
}
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"dev": "vite build --watch",
|
|
"build": "vite build && tsc --emitDeclarationOnly",
|
|
"check-types": "tsc --noEmit",
|
|
"prepublishOnly": "bun run build"
|
|
},
|
|
"keywords": [
|
|
"supermemory",
|
|
"graph",
|
|
"visualization",
|
|
"memory",
|
|
"interactive",
|
|
"canvas",
|
|
"react",
|
|
"component"
|
|
],
|
|
"author": "Supermemory",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/supermemoryai/supermemory",
|
|
"directory": "packages/memory-graph"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/supermemoryai/supermemory/issues"
|
|
},
|
|
"homepage": "https://github.com/supermemoryai/supermemory/tree/main/packages/memory-graph#readme",
|
|
"peerDependencies": {
|
|
"react": ">=18.0.0",
|
|
"react-dom": ">=18.0.0"
|
|
},
|
|
"dependencies": {
|
|
"d3-force": "^3.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/d3-force": "^3.0.10",
|
|
"@types/react": "^19.2.2",
|
|
"@types/react-dom": "^19.2.2",
|
|
"@vitejs/plugin-react": "^5.1.0",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.2.1"
|
|
}
|
|
}
|