Skip to content

Commit 91cb598

Browse files
authored
Merge pull request #64 from git-stunts/chore/readme
Resolved 1 CodeRabbit issue + 5 self-review issues; docs-only, no version bump.
2 parents 6a055ec + f0afc04 commit 91cb598

2 files changed

Lines changed: 71 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Added
11+
12+
- **Documentation enhancements in README.md** — Added a high-level Documentation Map, a detailed Graph Traversal Directory, an expanded Time-Travel (Seek) guide, and updated Runtime Compatibility information (Node.js, Bun, Deno).
13+
- **Local-First Applications use-case** — Added git-warp as a backend for LoFi software.
14+
815
## [13.1.0] - 2026-03-04
916

1017
### Added

README.md

Lines changed: 64 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ const result = await graph.query()
6464
.run();
6565
```
6666

67+
## Documentation Map
68+
69+
If you are new to git-warp, start with the **[Guide](docs/GUIDE.md)**. For deeper dives:
70+
71+
- **[Architecture](ARCHITECTURE.md)**: Deep dive into the hexagonal "Ports and Adapters" design.
72+
- **[Protocol Specs](docs/specs/)**: Binary formats for Audit Receipts, Content Attachments, and BTRs.
73+
- **[ADR Registry](adr/)**: Architectural Decision Records (e.g., edge-property internal canonicalization).
74+
- **[Cookbook](examples/)**: Functional examples of Event Sourcing, Pathfinding, and Multi-Writer setups.
75+
6776
## How It Works
6877

6978
```mermaid
@@ -320,6 +329,21 @@ const canReach = await graph.traverse.isReachable('user:alice', 'user:bob', {
320329
// canReach = true | false
321330
```
322331
332+
### Graph Traversal Directory
333+
334+
git-warp includes a high-performance traversal engine with 15 deterministic algorithms:
335+
336+
| Category | Algorithms |
337+
| :--- | :--- |
338+
| **Search** | BFS, DFS, Shortest Path (Unweighted), Reachability |
339+
| **Weighted** | Dijkstra (Weighted Shortest Path), A*, Bidirectional A* |
340+
| **Analytical** | Topological Sort (Kahn's), Connected Components, Levels (DAG) |
341+
| **Ancestry** | Common Ancestors, Root Ancestors |
342+
| **Reduction** | **Transitive Reduction** (v13.1), **Transitive Closure** (v13.1) |
343+
| **Critical Path** | Weighted Longest Path (DAG) |
344+
345+
All algorithms support `maxDepth`, `maxNodes`, and `AbortSignal` cancellation.
346+
323347
## Subscriptions & Reactivity
324348
325349
React to graph changes without polling. Handlers are called after `materialize()` when state has changed.
@@ -526,25 +550,43 @@ git warp history --writer alice
526550

527551
# Check graph health, status, and GC metrics
528552
git warp check
553+
```
554+
555+
### Time-Travel (Seek)
556+
557+
One of git-warp's most powerful features is the ability to query the graph at any point in its history without modifying your Git HEAD.
558+
559+
```bash
560+
# Jump to absolute Lamport tick 3
561+
git warp seek --tick 3
562+
563+
# Step forward or backward relative to your current cursor
564+
git warp seek --tick=+1
565+
git warp seek --tick=-1
529566

530-
# Time-travel: step through graph history
531-
git warp seek --tick 3 # jump to Lamport tick 3
532-
git warp seek --tick=+1 # step forward one tick
533-
git warp seek --tick=-1 # step backward one tick
534-
git warp seek --save before-refactor # bookmark current position
535-
git warp seek --load before-refactor # restore bookmark
536-
git warp seek --latest # return to present
537-
git warp seek --clear-cache # purge persistent seek cache
538-
git warp seek --no-persistent-cache --tick 5 # skip cache for one invocation
567+
# Bookmark and restore positions
568+
git warp seek --save before-refactor
569+
git warp seek --load before-refactor
539570

571+
# Return to the present and clear the cursor
572+
git warp seek --latest
573+
574+
# Purge the persistent seek cache
575+
git warp seek --clear-cache
576+
577+
# Skip cache for a single invocation
578+
git warp seek --no-persistent-cache --tick 5
579+
```
580+
581+
When a seek cursor is active, `query`, `info`, `materialize`, and `history` automatically show state at the selected tick.
582+
583+
```bash
540584
# Visualize query results (ascii output by default)
541585
git warp query --match 'user:*' --outgoing manages --view
542586
```
543587
544588
All commands accept `--repo <path>` to target a specific Git repository, `--json` for machine-readable output, and `--view [mode]` for visual output (ascii by default, or browser, svg:FILE, html:FILE).
545589
546-
When a seek cursor is active, `query`, `info`, `materialize`, and `history` automatically show state at the selected tick.
547-
548590
<p align="center">
549591
<img src="docs/seek-demo.gif" alt="git warp seek time-travel demo" width="600">
550592
</p>
@@ -673,6 +715,7 @@ npm run test:matrix # All runtimes in parallel
673715
- **Audit-critical systems.** Tamper-evident records with cryptographic proof (via Audit Receipts).
674716
- **IoT sensor networks.** Sensors logging readings and relationships, syncing when bandwidth allows.
675717
- **Game world state.** Modders independently adding content that composes without a central manager.
718+
- **Local-First Applications.** A backend for LoFi software that needs Git's robust sync and versioning capabilities without the overhead of a standard Git worktree or a heavy database server.
676719
677720
## When NOT to Use It
678721
@@ -686,6 +729,16 @@ npm run test:matrix # All runtimes in parallel
686729
687730
This package is the reference implementation of WARP (Worldline Algebra for Recursive Provenance) graphs as described in the AIΩN Foundations Series. The papers formalize the graph as a minimal recursive state object ([Paper I](https://doi.org/10.5281/zenodo.17908005)), equip it with deterministic tick-based semantics ([Paper II](https://doi.org/10.5281/zenodo.17934512)), develop computational holography and provenance payloads ([Paper III](https://doi.org/10.5281/zenodo.17963669)), and introduce observer geometry with the translation cost metric ([Paper IV](https://doi.org/10.5281/zenodo.18038297)).
688731
732+
## Runtime Compatibility
733+
734+
Architected with **Hexagonal Ports and Adapters**, git-warp is runtime-agnostic and tested across the following environments:
735+
736+
- **Node.js**: v22.0.0+ (Native Roaring Bitmaps & WebCrypto)
737+
- **Bun**: v1.1+ (WASM Roaring fallback & WebCrypto)
738+
- **Deno**: v2.0+ (WASM Roaring fallback & WebCrypto)
739+
740+
Bitmap indexes are wire-compatible across all runtimes; a graph created in Node.js can be materialized and queried in Deno without modification.
741+
689742
## License
690743
691744
Apache-2.0

0 commit comments

Comments
 (0)