Codestrand
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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codestrand-0.1.0.tar.gz | 112.2 kB | With provenance | Details for codestrand-0.1.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| codestrand-0.1.0-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details for codestrand-0.1.0-py3-none-win_arm64.whl |
| codestrand-0.1.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for codestrand-0.1.0-py3-none-win_amd64.whl |
| codestrand-0.1.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for codestrand-0.1.0-py3-none-manylinux_2_28_x86_64.whl |
| codestrand-0.1.0-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details for codestrand-0.1.0-py3-none-manylinux_2_28_aarch64.whl |
| codestrand-0.1.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for codestrand-0.1.0-py3-none-macosx_11_0_arm64.whl |
Total release size: 149.6 MB
Release files / codestrand-0.1.0.tar.gz
| Download URL | codestrand-0.1.0.tar.gz |
|---|---|
| Size | 112.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fb2f2654a35d44bda755bfb04720cc49385bef55d97ec5cec5900b5c9523c20
|
|
BLAKE2b-256 checksum How to use checksums |
60380b2c4833d614f2b1539a1820fc66bf48bf083efbe584b35ffb590bdf66bb
|
| 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 6, 2026.
Transparency logRelease files / codestrand-0.1.0-py3-none-win_arm64.whl
| Download URL | codestrand-0.1.0-py3-none-win_arm64.whl |
|---|---|
| Size | 23.5 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
fa56dfcd1595a0ded85074736613f3600ad37177aeae4d88ba05b061bcfea964
|
|
BLAKE2b-256 checksum How to use checksums |
09c99156ae1e093cb1380a6efe47944bc3bc3719c4791092f646f96aa317e787
|
| 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 6, 2026.
Transparency logRelease files / codestrand-0.1.0-py3-none-win_amd64.whl
| Download URL | codestrand-0.1.0-py3-none-win_amd64.whl |
|---|---|
| Size | 24.8 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c7317d2a731cf8937dfc634bee8d284c0532317cea2fad133f7cd86fc0188799
|
|
BLAKE2b-256 checksum How to use checksums |
c1e15e074c4230a619edcf6caf9f5d08e49329200ec761bb911893acc1534e8c
|
| 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 6, 2026.
Transparency logRelease files / codestrand-0.1.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | codestrand-0.1.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 33.7 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
4467145585ffa7991c31b4b314ae0b0fb51e29bb71301fa0756ec6cc427bf533
|
|
BLAKE2b-256 checksum How to use checksums |
b7e9d3d46c21e05c417cae77e2a391115e363ae2ca2d80efc0abb136b2a7dc15
|
| 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 6, 2026.
Transparency logRelease files / codestrand-0.1.0-py3-none-manylinux_2_28_aarch64.whl
| Download URL | codestrand-0.1.0-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 37.9 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
3192e8aa3c0a54c1e94f5f5ae4e4ac7b3a4ce0575336e3632aba8f6ec498a09a
|
|
BLAKE2b-256 checksum How to use checksums |
aaeeed42e726355e046aead750627afad8ea0b125211b55e74e643a922bb6efe
|
| 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 6, 2026.
Transparency logRelease files / codestrand-0.1.0-py3-none-macosx_11_0_arm64.whl
| Download URL | codestrand-0.1.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 29.6 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ff606d5d515cea08d82d79e1d83071a77a73aac5827b5595373869aaa50dd777
|
|
BLAKE2b-256 checksum How to use checksums |
78f0a3146600d6e138f5e1d88ecfca6990e9666ced6cae51fd81975565283069
|
| 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 6, 2026.
Transparency logSecurity for codestrand 0.1.0
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.
Attestation for codestrand-0.1.0.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 6, 2026.
Transparency logA 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.