mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-16 23:41:12 +00:00
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.
76 lines
No EOL
1.9 KiB
JSON
76 lines
No EOL
1.9 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",
|
|
"test": "vitest run"
|
|
},
|
|
"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",
|
|
"vitest": "^3.2.4"
|
|
}
|
|
} |