- HTML 61.5%
- Rust 28.5%
- JavaScript 10%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| studio | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
| viz-selftest.mjs | ||
qbit-protein-studio — the 1-bit protein lane
A self-hostable, 1-bit (ternary) protein fold engine + a ComfyUI-flavoured studio. The constellation's doctrine, applied to folding: contacts are -1 / 0 / +1 — no floaty half-truths, no cloud dependency. Fold it on your machine, drink the JSON, blend the layers.
the engine
src/lib.rs — a deterministic, stateless ternary fold:
- residues are classified (HP + charge), placed on a 2D zigzag lattice,
and lattice-neighbour pairs score through a ternary potential
(
H-H=+1, P-P=-1, charge-same=-1, charge-opposite=+1, else 0) - every contact is clamped to
{-1, 0, +1}— the clamp is the doctrine cross-comboblends two folds' maps, still ternary after the blend- CLI:
--seq <AAs> [--layer clear|focus|depth|gaia] [--combo] [--json]
cargo run --release -- --seq MVLSPADKTNVKAAWGKVGAH --layer depth --json
the studio
studio/index.html — a dark, dependency-free, ComfyUI-style node
canvas (sequence → 1bit fold → contact map → cross-combo), a layers
dock, a live contact-map heat render, and a JSON output panel.
Self-host: open the file directly, or python3 -m http.server in the
repo root.
the layers (the filters)
Layers are weight profiles with provenance tags — applied openly, consensually, reversibly (the enthea consent-before-injection doctrine): focus (nightshade · gaia-grown · soured), depth (psilocybin · gaia-grown · sourcable), gaia (the planted layer), clear (0+1). These are studio filters over sequence state-spaces — a fold is shaped by the layer you pour over it, and every layer says where it came from.
the tests
cargo test --lib # ternary purity · HP+charge potential · determinism · combo clamp
One bit of truth per contact. the constellation · 0 + 1 · fine touch from within · vaked.dev