Ch

CheMiguel23/MemoryMesh

๐Ÿ“‡ ๐Ÿ  Enhanced graph-based memory with a focus on AI role-play and story generation

#AI role-play#story generation#graph-based memory
PublisherCheMiguel23/MemoryMesh
Submitted date4/19/2025

MemoryMesh Overview

Title

MemoryMesh โ€“ A Knowledge Graph Server for AI Models

How to Use

MemoryMesh is a local knowledge graph server designed to help AI models maintain structured and consistent memory. It is particularly useful for text-based RPGs, interactive storytelling, and other applications requiring structured data management.

Key Steps:

  1. Installation: Follow the installation guide to set up MemoryMesh.
  2. Schema Setup: Define your data structure using schemas (.schema.json files) in the dist/data/schemas directory.
  3. Dynamic Tools: MemoryMesh automatically generates tools (add, update, delete) based on your schemas.
  4. Interact via AI: Use the generated tools to manage nodes (entities) and edges (relationships) in the knowledge graph.

Key Features

  • Dynamic Schema-Based Tools: Auto-generates CRUD tools from schema definitions.
  • Flexible Schema Design: Supports required fields, enumerated types, and relationship definitions.
  • Metadata & Relationships: Helps AI understand context and connections between data points.
  • Event System: Tracks modifications for insights into graph changes.
  • Pre-Built RPG Schemas: Includes 11 ready-to-use schemas for text-based RPGs.
  • SchemaManager Tool: A visual interface for easy schema creation and editing.

Use Cases

  • Text-Based RPGs: Maintain consistent NPCs, locations, and item interactions.
  • Interactive Storytelling: Track character relationships and plot developments.
  • Social Network Simulations: Model connections between users and content.
  • Organizational Planning: Structure data for decision-making and strategy.

Example Applications:

  • NPC Management: Define races, skills, and affiliations for characters.
  • Item Tracking: Track ownership and locations of artifacts.
  • Dynamic World-Building: Connect locations, factions, and events seamlessly.

For more details, explore the SchemaManager Guide and MemoryViewer Guide.


MemoryMesh is open-source (MIT License) and built on TypeScript. Check the CHANGELOG for updates.

Visit More

View All