mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-08 22:21:07 +00:00
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  |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| eslint.config.js | ||
| index.html | ||
| package.json | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Memory Graph Playground
A local development playground for testing the @supermemory/memory-graph package.
Getting Started
-
Make sure the memory-graph package is built:
cd ../memory-graph bun run build -
Start the dev server:
cd ../memory-graph-playground bun run dev -
Open your browser to the URL shown (usually http://localhost:5173)
-
Enter your Supermemory API key and click "Load Graph"
Features to Test
- ✅ API key authentication
- ✅ Data fetching with React Query
- ✅ Graph rendering with PixiJS
- ✅ Interactive pan and zoom
- ✅ Node selection and details
- ✅ Space filtering
- ✅ Legend with statistics
- ✅ CSS auto-injection
- ✅ Error handling
Development
When making changes to the memory-graph package:
- Make your changes in
packages/memory-graph/src - Rebuild:
cd packages/memory-graph && bun run build - The playground will hot-reload automatically
Notes
- This playground uses the workspace version of
@supermemory/memory-graph - CSS is automatically injected from the package
- All dependencies are bundled except React/ReactDOM