Skip to main content

Codestrand

Codestrand logo

A Git history visualiser exploring how software takes shape over time.

Codestrand aims to retain Gource's moving developers and growing directory graph, adding restrained 3D depth and animated diff fragments. A repository is a strand of changes, each commit woven into the structure the last ones left behind.

Status: layout study. Playback lays out a local repository or a built-in synthetic history with persistent file positions, gliding contributors, coordinated commit beams, labels and diff fragments. Preview and numbered PNG export share one deterministic simulation. Built-in video encoding is not implemented. Licensed MIT OR Apache-2.0.

Visual goal

  • A mostly planar graph of repositories, directories and persistent file objects.
  • Gentle layout relaxation as files appear, disappear or move, preserving spatial continuity instead of rebuilding the layout for each commit.
  • Developer avatars flying on a plane above the files, gliding toward the centroid of each commit's affected files.
  • One coordinated commit event: translucent connections from the avatar to every touched file, coloured to match the developer.
  • Diff fragments descending into files for additions and rising out for removals. New files assemble; deleted files disappear after their connections are visible.
  • File-type markers, readable labels and less detail at overview scale, with aggregation for large commits and crowded directories.
  • Multiple repositories with shared contributor identities as a longer-term goal.

Explore a Tron-like neon style: steady glow, luminous connections and smooth motion. Aim for a flashy presentation with no strobing and no loss of readability. Preserve crisp file shapes and labels, and restrain brightness where activity overlaps. The probe currently selects the neon theme; additional visual styles remain future work.

Prototype direction

The probe uses Bevy 0.20.1. A short, scripted visual study should guide the final playback architecture; local Git inspection runs independently of the renderer.

Compare avatar motion, beam shapes, diff direction and layout continuity using a small synthetic history, including a deliberately crowded commit. The first study should reveal whether the visual language remains readable in motion.

PNG export uses explicit frame indices, with one outstanding capture at a time and confirmed writes before completion. The probe records logical state in frames.csv. Encode the PNGs with external FFmpeg; streaming raw frames remains future work.

Inspect local history

cargo run --locked -- inspect /path/to/repository --revision HEAD

Inspection reads complete local working or bare repositories without modifying them. The experimental JSON contains parent-before-child commits, raw identities and paths, and first-parent file changes. See the Git import issue for implementation decisions and validation results.

Create a deterministic 100-commit test repository with uv run --script scripts/import_fixture.py NEW_REPOSITORY_DIRECTORY.

Play history

cargo run --locked -- preview
cargo run --locked --release -- preview --repository /path/to/repository
cargo run --locked --release -- export frames --repository /path/to/repository \
  --start 1000 --commits 200 --commit-seconds 0.1

Without --repository, the synthetic history plays, including a move between directories, deletions and a 65-file commit. --start lays out and settles earlier commits before playback; --commits limits what plays after it. Preview loops; Escape closes the window. WASD pans in free-camera mode, right-drag orbits, and the scroll wheel zooms. Tab follows/cycles currently visible contributors; WASD returns to free mode. Follow also returns to free mode when the target fades out. Space smoothly restores the fit-to-scene camera in half a second. The caption shows the camera mode and follow target. Export always uses the default camera and writes 1280×720 frames for the whole playback at 30 fps unless --frames or --fps say otherwise. The output directory must not already exist. Commits touching more than 24 files aim beams at directories instead.

Repository playback caches the latest first-parent timeline and diff counts as JSON under the platform user cache directory (codestrand/), namespaced by a hash of the canonical common Git directory, shared by linked worktrees. A resolved commit ID and a format/import/timeline version identify the snapshot; a different tip replaces the snapshot after a full import. Playback range and speed reuse the complete timeline. Cache failures regenerate without blocking playback; --no-cache skips cache reads and writes. Inspection and repositories using Git replacement objects always import directly. Messages, signatures, blob IDs and hunks are not cached. Bump CACHE_VERSION in src/timeline.rs when cached semantics change.

Rendering changes also need the graphics export check and visual inspection:

cargo test --locked --test render_export -- --ignored

See the video export issue for the verified 10-second MP4 proof and playback results.

To reproduce the proof, install uv and FFmpeg/ffprobe with the libx264 encoder:

cargo build --locked -j 2
uv run --script scripts/video_proof.py target/debug/codestrand video-proof

On Windows, use target/debug/codestrand.exe. The output directory must be new. Run the script with --help for output retention and cleanup instructions.

Contributor aliases

Preview and export read contributors.toml from the user configuration directory:

  • Linux: ~/.config/codestrand/ (or $XDG_CONFIG_HOME/codestrand/ when set).
  • macOS: ~/Library/Application Support/codestrand/.
  • Windows: %APPDATA%\codestrand\.

Override the file with --contributors /path/to/contributors.toml:

[[contributor]]
name = "Owen Lamont"   # display name
emails = ["owen@personal.example", "owen@work.example"]

Emails match case-insensitively; duplicate emails are errors. Matching names never merge people with different nonempty emails. Unlisted emails keep separate identities, displayed with the name from the last commit in playback order. Commits without an email are grouped by author name. A missing default file is fine; an explicit missing file, unknown key or malformed TOML is an error. Edits take effect on cache hits; original authors and repository history remain unchanged.

Development

Rust 1.99.1, rustfmt and Clippy are pinned in rust-toolchain.toml. Install prek to run the checks shared with CI.

prek install --install-hooks --overwrite
cargo run --locked -- --help
prek run --all-files
cargo test --locked --all-targets

CPU tests cover timing, lifecycle ordering and CLI behaviour without creating a renderer. CI runs the checks on Linux, macOS and Windows. Rendering changes also need a local GPU or software-renderer export and visual inspection.

The lint setup follows ryl: rustfmt, strict Clippy, Markdown and YAML checks, spelling, workflow linting and file hygiene. Changes go through feature branches and pull requests.

Acknowledgements

  • Material Icon Theme (MIT) — file icons.
  • Bevy — rendering and application framework.
  • resvg — startup SVG rasterisation.
  • gix — Git history access.
  • Gource — inspiration for animated Git history.

Metadata

Release files for codestrand 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codestrand 0.1.1
File Size Uploaded Provenance Actions
codestrand-0.1.1.tar.gz 113.1 kB With provenance Details for codestrand-0.1.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for codestrand 0.1.1
File Actions
codestrand-0.1.1-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for codestrand-0.1.1-py3-none-win_arm64.whl
codestrand-0.1.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for codestrand-0.1.1-py3-none-win_amd64.whl
codestrand-0.1.1-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for codestrand-0.1.1-py3-none-manylinux_2_28_x86_64.whl
codestrand-0.1.1-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for codestrand-0.1.1-py3-none-manylinux_2_28_aarch64.whl
codestrand-0.1.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for codestrand-0.1.1-py3-none-macosx_11_0_arm64.whl

Total release size: 110.3 MB

Release files / codestrand-0.1.1.tar.gz

Download URL codestrand-0.1.1.tar.gz
Size 113.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5db251e0cc6a6e57d1d04333c95a1c6c00fff03854df33c3a609c047cb537bc4
BLAKE2b-256 checksum
How to use checksums
9c8fcaa41b4ac8f227af3bc98fc511a0df17198a9b1efbc082d11c3749d2e0fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / codestrand-0.1.1-py3-none-win_arm64.whl

Download URL codestrand-0.1.1-py3-none-win_arm64.whl
Size 21.8 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
fcb2ed807903ee548e8f48a9f9052e430bb1bf153020172ccb98376ee157621d
BLAKE2b-256 checksum
How to use checksums
375b53c23b890c4d266c961a677e88b24e3a1d26942a81f7b5cf587665b15615
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / codestrand-0.1.1-py3-none-win_amd64.whl

Download URL codestrand-0.1.1-py3-none-win_amd64.whl
Size 23.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
18d216c2d4b4e9d780d08de04db863058d8303d8eaa8da13e6544fbe40fede86
BLAKE2b-256 checksum
How to use checksums
4e30ff8167956484cf7be0da94c8c18b5322f52028962f69f9ee5cbb55b6c906
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / codestrand-0.1.1-py3-none-manylinux_2_28_x86_64.whl

Download URL codestrand-0.1.1-py3-none-manylinux_2_28_x86_64.whl
Size 23.0 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f424e323c9e087c582410892a0a99b7c8c6e76569dabde6564418ad45c2454ef
BLAKE2b-256 checksum
How to use checksums
0b4f5172ab942fc2d5bb4f97934321c4e3a48f03e738ca1f0686f78f6b22f976
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / codestrand-0.1.1-py3-none-manylinux_2_28_aarch64.whl

Download URL codestrand-0.1.1-py3-none-manylinux_2_28_aarch64.whl
Size 22.0 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
daec94ea03517cf3fff6f8271261b269ef3afe0060a540373a29e4f7aa422e1c
BLAKE2b-256 checksum
How to use checksums
d63d5b0e52f45863bd7675d5386821d730f15c7a62195a3428a7d36f7676734d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / codestrand-0.1.1-py3-none-macosx_11_0_arm64.whl

Download URL codestrand-0.1.1-py3-none-macosx_11_0_arm64.whl
Size 20.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5d889d34f369895db7834b4ea7c70c2f0fb8758ae44df177fcbf4a67f10f2a07
BLAKE2b-256 checksum
How to use checksums
e4961edfc1ebcdf494fdb972af641340b4570682b3a381bc01224250a396e59e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for codestrand 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for codestrand-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page