A visual 3D node-graph lorebook editor for SillyTavern. See your lorebook entries as interactive nodes floating in a 3D space, visualize recursion links between them, organize with categories and tags, and edit everything from a single graph workspace.
Built for botmakers and worldbuilders who think visually.
- Liquid glass aesthetic across all surfaces -- frosted blur, translucent backgrounds, inner light shimmer, and per-theme ambient glow
- Animated gradient mesh background -- slowly shifting colorful radial gradients behind all content
- Four visual themes -- Midnight (violet), Nebula (magenta), Ember (amber), Arctic (cyan) -- each with unique glass tints and mesh colors
- Theme selection persists across sessions
- Lorebook entries rendered as floating card nodes in an interactive 3D space powered by WebGL
- Graph canvas pane -- the 3D graph sits in its own resizable glass pane that can be toggled on/off via the toolbar
- Orbit, rotate, and zoom -- click-drag to rotate the graph, scroll to zoom, right-drag to pan
- Two view modes -- toggle between detailed Card view (name + keyword preview + status badges) and minimal Label view for a constellation-like feel
- Automatic recursion detection -- scans entry content for keywords that trigger other entries and draws directed connection lines
- Manual links -- create your own custom connections between entries via connect mode
- Connection highlighting -- clicking a node glows its connected neighbors and dims unconnected nodes; connected edges brighten while others fade
- Color-coded nodes -- nodes inherit category colors, with support for per-entry color overrides, status indicators (◌ ◔ ◑ ✓), pin stars, notes badges, and connection count badges
- Directional arrow edges with labels showing the triggering keyword
- Auto-detected links shown as straight blue lines; manual links as curved pink lines
- Auto-orbit -- toggle slow idle rotation for a living, ambient feel when not interacting
- Click any node to open an entry editor pane alongside the graph -- up to two entries side-by-side for comparison editing
- Editor panes tile in a flex row layout with the graph canvas -- panes never overlap
- Resizable panes -- drag the handle between panes to adjust widths
- When the graph canvas is hidden, editor panes automatically expand to fill the available space
- Full World Info field editing: name, keys, secondary keys, content, position, depth, order, probability, group, and all toggles
- Studio metadata section for managing categories, tags, status, pins, notes, and color overrides
- Create new entries directly from the graph view
- Duplicate entries with one click (copies both lorebook data and studio metadata)
- Delete entries with confirmation
- Right-click context menu on any node for quick actions
- Categories -- create custom color-coded categories (e.g. Characters, Locations, Factions) with a built-in category manager. Node colors on the graph reflect their assigned category.
- Tags -- add freeform tags to any entry with autocomplete from existing tags across the lorebook
- Workflow Status -- track entries through Draft, In Progress, Review, and Complete stages. Status appears as a colored dot on graph nodes.
- Pin / Bookmark -- pin important entries for quick filtering. Pinned entries show a star indicator on the graph.
- Studio Notes -- attach private notes to any entry for development reminders, lore context, or review comments. Notes are studio-only and never affect roleplay.
- Color Override -- override the default or category color with a custom per-entry color for special highlighting
All organizational metadata is stored in extension settings only -- it never modifies SillyTavern's lorebook data or affects roleplay behavior.
- Real-time full-text search across entry names, keys, content, tags, and studio notes
- Non-matching nodes fade out while matches stay highlighted
- Category filter dropdown -- show only entries in a specific category (or uncategorized)
- Status filter dropdown -- show only entries with a specific workflow status
- Pinned filter button -- show only pinned/bookmarked entries
- Orphans filter -- entries with no connections
- Disabled filter -- show only disabled entries
- Filters combine with AND logic for precise results
- Total entry count with enabled/disabled/constant/pinned breakdown
- Category breakdown with color swatches and entry counts
- Workflow status breakdown showing counts per status
- Tag cloud showing the top 10 most-used tags with counts
- Connection counts (auto-detected vs manual, primary vs secondary key links)
- Most connected entries (top 5) -- click to navigate
- Orphan entries list -- click to navigate
- Health checks: empty content warnings, missing keys, duplicate key detection
- Force-Directed 3D -- default, organic force-simulated clustering in 3D space
- 3D Grid -- ordered cubic grid arrangement
- Sphere -- entries distributed on a sphere surface (Fibonacci distribution)
- Helix -- entries arranged along a helical spiral
- Zoom in/out and fit-to-screen controls
- Node positions are saved per lorebook and persist across sessions (drag to pin)
- Full-viewport drawer UI with glassmorphic surfaces and fade/scale animation
- Vertical icon toolbar on the left with popover controls for a clean, minimal layout
- Collapsible entry list panel for quick navigation between entries
- One-click launch from SillyTavern's World Info panel
- Close with ESC key, backdrop click, or the close button
- Auto-refreshes when lorebook data changes in SillyTavern
- All settings saved through SillyTavern's extension settings system
- Keyboard shortcuts: ESC (close cards/drawer), Delete (delete selected node), Ctrl+D (duplicate)
- Open SillyTavern
- Go to Extensions (puzzle piece icon)
- Click Install Extension
- Paste this URL:
https://github.com/hype-hosting/SillyTavern-Lorebook-Studio - Click Install and reload SillyTavern
The extension comes pre-built -- no additional setup required.
- Open any lorebook in SillyTavern's World Info panel
- Click the Lorebook Studio button that appears in the panel header
- The graph view opens as a full-page drawer showing all your entries as 3D nodes
- Select a lorebook from the dropdown if not auto-detected
- Click-drag the background to orbit and rotate the 3D view
- Scroll to zoom in and out
- Click a node to open an editor pane alongside the graph (click a second node to open a second pane for side-by-side editing)
- Drag the resize handle between panes to adjust widths
- Drag nodes to rearrange -- positions are saved automatically
- Use the Cards/Labels button to toggle between view modes
- Use the Eye button to toggle graph canvas visibility -- editor panes expand to fill when hidden
- Use the left toolbar icons to search, filter by category/status/pins, switch layouts, or toggle link visibility
- Click Stats to see category breakdowns, tag usage, connection analysis, and health checks
- In the editor pane, scroll to the Studio section to manage categories, tags, status, pins, notes, and colors
If you want to modify the extension or contribute:
# Clone the repo
git clone https://github.com/hype-hosting/SillyTavern-Lorebook-Studio.git
cd SillyTavern-Lorebook-Studio
# Install dependencies
npm install
# Build for production
npm run build
# Build for development (unminified, with source maps)
npm run build:dev
# Lint
npm run lintThe compiled output goes to dist/index.js.
- TypeScript + Webpack build system
- 3d-force-graph (Three.js / WebGL) for 3D graph rendering
- three-spritetext for billboard text node labels
- d3-force-3d for physics simulation
- SillyTavern extension API for data access and persistence
src/
index.ts # Extension entry point
style.css # Glassmorphism UI stylesheet (themes + animated mesh)
templates/drawer.html # Drawer HTML template
data/
lorebookData.ts # SillyTavern World Info read/write
recursionDetector.ts # Key-in-content scanning algorithm
manualLinks.ts # Manual link storage and CRUD
studioData.ts # Studio metadata (categories, tags, notes, status, pins, colors)
graph/
graphManager.ts # 3d-force-graph instance lifecycle + ResizeObserver
nodeStyles.ts # SpriteText card/label node rendering with glow effects
edgeStyles.ts # Edge styling (auto vs manual links, connection highlighting)
layouts.ts # 3D layout algorithms (force, grid, sphere, helix)
ui/
drawer.ts # Full-page drawer component
toolbar.ts # Search, filters, layout controls
entryCard.ts # Floating entry editor pane (instance-based, up to 2)
cardManager.ts # Orchestrates dual editor pane slots
contextMenu.ts # Right-click context menu
connectMode.ts # Two-click manual link creation
statsPanel.ts # Statistics dashboard with category/tag breakdowns
categoryManager.ts # Category CRUD panel
features/
entryCrud.ts # Create/duplicate/delete operations
utils/
events.ts # Internal event bus + ST events
settings.ts # Extension settings persistence
If you find Lorebook Studio useful, consider supporting development: