Back to Projects
Seshat Logo
Web • In Dev

Seshat Narrative Engine

A sophisticated, local-first world-building tool and narrative engine designed for novelists, game designers, and world-builders.

The Vision

"Writers and game designers need a deeply integrated environment for managing complex lore, timelines, and manuscripts without friction."

Seshat provides a deeply integrated environment for managing complex lore, character psychology, interconnected timelines, and manuscript drafting. Built as a highly performant Single-Page Application (SPA), it operates with zero latency by keeping all state in the browser while ensuring robust synchronization with a Git-backed cloud storage system.

Local-First & Offline Resilience

To guarantee zero-latency interactions and massive offline capabilities, Seshat utilizes Legend State coupled with IndexedDB. By bypassing standard 5MB localStorage limits, the application can cache gigabytes of project data locally.

Users experience instant Optimistic UI updates, and can write entire novels without an internet connection.

Git-Backed Cloud Sync

The backend operates entirely on Cloudflare Pages Functions, utilizing the GitHub Trees and Blobs API as a NoSQL document database. Instead of uploading massive payloads, Seshat calculates atomic Git commits via Delta Synchronization.

If a user edits on multiple devices, Seshat performs a deep JSON diff and presents a Git-style interactive merge modal, protecting against data loss.

A Look Inside

Swipe to explore the interface.

Context-Aware Editor

Context-Aware Editor

Interactive Lore Web

Interactive Lore Web

Under the Hood

Key Features

  • Context-Aware Prose Editor with Dynamic Mentions
  • Continuity & Foreshadow Tracking
  • Interactive Lore Web (Knowledge Graph) with Timeline Slider
  • AI Narrative Oracle with Expert Personas
  • Deterministic Combat Simulator
  • Zero-latency Local-First Architecture
  • Git-Backed Cloud Sync with Smart Conflict Resolution

Core Tech Stack

ReactReact
TypeScriptTypeScript
ViteVite
Cloudflare PagesCloudflare Pages
GitHub APIGitHub API
IndexedDBIndexedDB

UI & Tooling

Material UIMaterial UI
TiptapTiptap
React FlowReact Flow
Anime.jsAnime.js
React RouterReact Router
Legend StateLegend State